Welcome to WebmasterWorld Guest from 107.22.7.35

Forum Moderators: mademetop

Message Too Old, No Replies

H1 tags, H2 tags, H3 tags, ect.

How do you use each type of "H" tag.

     
2:23 am on Aug 21, 2003 (gmt 0)

10+ Year Member



I know how to use H1 tags, but I am at a loss when and where to use H2 and H3 tags or higher number "H" tags. Can someone please explain where on the webpage is the best place to put each type of "H" tag.

Thanks,

2:38 am on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



H tags refelct the document structure. I think of it this way

H1 = Chapter Heading
H2 = Section Heading
H3 = Paragraph Heading

Using this analogy, I suppose I would use H4 and H5 in a cited block of text that contained headings of its own.

WBF

2:47 am on Aug 21, 2003 (gmt 0)

10+ Year Member



H1 = Chapter Heading
H2 = Section Heading
H3 = Paragraph Heading

What I have done is put at the top of each page a bold title for the page and made it in H1 tags.

So I should make a smaller title for different subjects, and above those paragraphs make those smaller titles H2 tags?

On the H3 tags, how do I use those in a paragraph heading?

4:53 am on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use CSS to make it look as you wish. I have done it many ways. Big, small, right aligned, centered, even in-line with a paragraph.

See [w3.org...]

and

[w3.org...]

For some more information about function and form

WBF

7:48 am on Aug 21, 2003 (gmt 0)

10+ Year Member



Thanks very much. I understand now.
7:51 am on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Think of it as an outline with each page starting at H1. The number after the "H" is the level of indentation so to speak.

So this outline:

Polar Bears

I. Regions
....a) North Pole
....b) South Pole

II. Mating Habits

III. Hibernation

...would translate to this HTML:

<h1>Polar Bears</h1>
<p>some text</p>

<h2>Regions</h2>
<p>text about regions</p>

...<h3>North Pole</h3>
...<p>text about north pole</p>

...<h3>South pole</h3>
...<p>text about south pole</p>

<h2>Mating Habits</h2>
<p>text about mating habits</p>

<h2>Hibernation</h2>
<p>text about hibernation</p>

The H1 only appears once per page and usually matches or closely resembles the <TITLE> tag. H2's are the main sections under H1. H3's are the main sections under the H2's, etc...

8:10 am on Aug 21, 2003 (gmt 0)

10+ Year Member



Thanks JamesA,

The example you have shown is great. I just never tried to use anything but the "H1" tags before. Will try to use them very soon.

Thanks everyone for your help.

8:12 am on Aug 21, 2003 (gmt 0)

10+ Year Member



It seesms that XHTML 2.0 [www-106.ibm.com] will address this problem rather neatly.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month