Home
XHTML 101
Lesson 1
Basic Tags
Global Structure
HTML vs XHTML
Lesson 2
Using <p>, </p> and <br />
XHTML Headers
Strong and Emphasis
Lesson 3
Using <blockquote> </blockquote>
Lesson 4
Changing the Font with CSS
Email
John Wilfong
|
XHTML 101
Lesson 2 - Part 2
XHTML Headings
Heading tags are the simplest way to divide up your document. If you think of your
site as a newspaper, then the headings are the headlines on the newspaper. The main
headline is an h1 and subsequent headings are h2 through h6.
To create an XHTML heading, surround the text you want as your heading with one of the following heading tags - as demonstrated.
<h1>This is Heading 1</h1>
<h2>This is Heading 2</h2>
<h3>This is Heading 3</h3>
<h4>This is Heading 4</h4>
<h5>This is Heading 5</h5>
<h6>This is Heading 6</h6>
Some things to remember:
- All browsers display headings differently
- Try to keep your headings in a logical order
- Headings put in line breaks for you, so you don't have to worry about using <p></p> and
<br /> tags.
|
|