homepage Welcome to WebmasterWorld Guest from 54.197.215.146
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
H1 Tag: What W3C says about it
Quite nice to hear it from the authority
martinibuster




msg:568149
 7:13 am on Nov 26, 2002 (gmt 0)

<h1> is the HTML tag for the first-level heading of a document.

The title is generally duplicated in an <h1> element towards the top of the page. Unlike the title, this element can include links, emphasis and other HTML phrase elements.

Often, webmasters will use an <h2> element instead, to make the heading smaller. This is incorrect, Cascading Style Sheets should be used to create this effect

The CSS part has been a topic of discussion here for a long time. This is as authoritative an opinion as you can get on it.

It's a "tip of the day" that I found here [w3.org].

 

pageoneresults




msg:568150
 7:19 am on Nov 26, 2002 (gmt 0)

Man, I really wish they wouldn't publish that stuff! ;)

I've been designing this way for years. There is a lot to be learned from the W3C and I've been spending at least an hour a week reading. Not to mention all the 5 and 10 minute visits throughout the week.

SuzyUK




msg:568151
 10:10 am on Nov 26, 2002 (gmt 0)

Thanks for reference...

Somewhere back in the deep distant past I learnt that a document should be produced by using the <h#> tags in their logical order, I think it was because that is what a "searchbot" expects to see (though I'm no expert!)

i.e.
<h1> for your main heading, and probably only used once in a document, as you would generally only have one main title per page

<h2> for topic headings/categories
then
<h3> for your category subheadings

in fact I think it said there was probably very little use for the others (h4, 5 & 6)!

I don't know where I learned this (it was a while back ;))

So it's nice to see your post as it's a reminder that it's easy to resort to bad habits along the way (it's a bit like driving really)..it's OK if it works and you don't have to sit your test again, but in these days of HTML optimisation for SE's it's a point to note

Suzy

shanz




msg:568152
 11:22 am on Nov 26, 2002 (gmt 0)

I also learned that at Uni..

Gusgsm




msg:568153
 2:49 pm on Nov 26, 2002 (gmt 0)

Good afternoon, folks.

Bear me a question, please. I agree 100% with what you say but... Let's say you have a set of pages about one issue (Psychology) and then each page is devoted to one subject (The mind, The brain, Behaviour...).

How would you do that (in each page):

Option 1:

<h1>Psychology</h1>
<h2>The Mind</h2>
....
Then the other pages "reversed":

<h2>Psychology <sub>(2)</sub></h2>
<h1>The Brain</h1>

Option 2:

<h1>Psychology</h1>
<h2>The Mind</h2>
...
Then the other pages "the same way"

<h1>Psychology</h1>
<h2>The Brain</h2>

Thanks in advance

moonbiter




msg:568154
 3:26 pm on Nov 26, 2002 (gmt 0)

I'd choose option 2. Or I'd do:

Page 1 <h1>Psychology: The Mind</h1>
[... rest of page here ...]

Page 2 <h1>Psychology: The Brain</h1>
[... rest of page here ...]

and so on.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved