You are here: Re: Semantics & <h1>, <h2>, etc « HTML « IT news, forums, messages
Re: Semantics & <h1>, <h2>, etc

Posted by Jukka K. Korpela on 08/10/06 21:57

Spartanicus <invalid@invalid.invalid> scripsit:

> "David Woods" <feed_sheepREMOVETHIS@sbcglobal.net> wrote:
>
>> 1) Is it semantically _incorrect_ to have a header such as:
>> <h1>About Us - Widgets Inc</h1>?
>
> It's redundant if, as it should, "About us - Widgets Inc" is the
> page's title, and redundancy is not a good thing here.

No, it isn't redundant at all. The <h1> element and the <title> element have
different meanings and effects. I'm not sure I see what you point really is
here, since your messages are difficult to see due to _redundant_ quoting in
them (e.g., a fullquote followed by a one-liner), but if you're telling
people to dump <h1> in favor of <title>, you're completely wrong.

> In the audio
> domain a screen reader would read the title followed by the h1
> content,

Perhaps. You cannot know how each browser treats the two distinct elements,
and shouldn't care too much. The <title> element specifies an external title
for the document, suitable for use in a reference outside the document
itself, e.g. in a list of Favorites. It need not be rendered at all by a
browser, and it's practically never rendered as part of the document proper.

>> 2) Going a bit OT: In the context of making parts of a <h1>
>> disappear. Do search engines dislike it when you set display: none;
>> to text?
>
> SE's do not parse stylesheets.

Perhaps they don't, perhaps they do - now or in the future. Actually,
setting display: none has become one of the common methods of keyword
spamming, so search engines might decide to try to detect such tricks. They
surely _could_ parse stylesheets. (Parsing them isn't rocket science, and
even if you add more elaborate analysis to parsing, it's surely manageable.
Browsers can do that, and browsers, too, are just programs.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация