Information Type Examples

Each example includes segments of text marked up by the tag listed:

<EM>Emphasized text</EM> :
Emphasized text

<STRONG>Strong emphasis</STRONG> :
Strong emphasis

<CITE> HTML 2.0 Specification</CITE> :
HTML 2.0 Specification

<DFN> HTML stands for HyperText Markup Language</DFN> :
HTML stands for HyperText Markup Language

<CODE>for (i=0; i<10; i++) { printf("Count = %d",i); } </CODE> :
for (i=0; i<10; i++) { printf("Count = %d",i); }

<SAMP>Count = 1 Count = 2</SAMP> :
Count = 1 Count = 2

Enter <KBD>Q</KBD> to quit :
Enter Q to quit

<VAR>Percent</VAR> :

Sometimes browsers don't render the content of these types of tags differently. But it is a good idea to use these tags anyway. Some user might rely on the <CITE> tag to build a list of references, another might use <DFN> to construct a glossary. You are always adding value when you tag structures, even if seems to be invisible!

Next Slide