Emphasizing the Text

The Bold Tag

<b> </b> or <strong> </strong>
Creates bold text

Example Code:
The quick <b>brown fox</b> jumps over the <strong>lazy dog</strong>.

The Result:

The quick brown fox jumps over the lazy dog.

 

The Italic Tag

<i> </i> or <em> </em>
Creates italicized text

Example Code:
The quick <i>brown fox</i> jumps over the <em>lazy dog</em>.

The Result:

The quick brown fox jumps over the lazy dog.

 

The Preformatted Text Tag

Go here for information about this tag.

 

The Headline Tag (block element)

<h1 | 2 | 3 | 4 | 5 | 6> </h1 | 2 | 3 | 4 | 5 | 6>
Creates “headlines” making the text bold, changes the size, and includes a double-spaced line break.

Example Code:
<h1>Headline 1</h1>
<h2>Headline 2</h2>
<h3>Headline 3</h3>
<h4>Headline 4</h4>
<h5>Headline 5</h5>
<h6>Headline 6</h6>

The Result:

Headline 1

Headline 2

Headline 3

Headline 4

Headline 5
Headline 6

 

The Font Tag

Go here for information about the <font> tag.

 

See the simple effects of these tags in the browser window. Make sure to view the source code.
(Note: This will open a new browser window)

 

<Text Flow ^Top of Page Creating Links>

XHTML Basics Workshop
© 1996-2005