How to mark up subheadings, subtitles, alternative titles and taglines | HTML5 Doctor

How to mark up subheadings, subtitles, alternative titles and taglines
Friday, May 3rd, 2013 by Steve Faulkner.

Tweet

If you don’t already know, the hgroup element is obsolete in HTML5.

Advice is now provided in the HTML spec on how to mark up subheadings, subtitles, alternative titles and taglines using existing and implemented HTML features.

Russian Translation of this article: Разметка для подзаголовков by Frontender magazine

Advice for marking up subheadings and the like

The important question for developers is: How do I mark up these buggers???

To answer this advice and requirements have been added to the HTML specification on how to mark up subheadings, subtitles, alternative titles and taglines:

h1–h6 elements must not be used to markup subheadings, subtitles, alternative titles and taglines unless intended to be the heading for a new section or subsection.

Note: Example below added 10/5/2013

In the following example the title and subtitles of a web page are grouped using a header element. As the author does not want the subtitles to be included the table of contents and they are not intended to signify the start [...]

Read article at html5doctor.com

Article Taxonomies

Categories: , Terms: , , , , , , ,