Should h1-h6 labels always be used sequentially or randomly?

I'm wondering if I should always use tags h1

- h6

(i.e. always start with h1

and for each nested subheading use an adjacent tag hx

) or as long as the order is correct, it's okay (e.g. start with h2

and jump straight to h4

ok).

+3


source to share


2 answers


In the HTML5 spec



4.3.10 Headings and Sections

h1

- the h6

elements are headers.

The first element is the content title in the element section content represents the title for this section. Subsequent headings equal to or higher than rank start new (implied) sections, lower rank headings start implied subsections that are part of the previous one. In both cases, the element represents the title of the implied section. [...]

Sections can contain headers of any rank , and authors are strongly encouraged to use headers of the appropriate rank for the section nesting level.

+1


source


Title tags should be used in order of importance in relation to your content.

When thinking about a general ecommerce site, you may want to follow the following structure:

h1 tags used for category name or page title

h2 tags used for each element name specified in the category

h3 tags used to describe each element



Title tags are used primarily to encourage search engine crawlers / sites to rank importance for specific content in the h1 - h6 order. In general (not always true) the h4-h6 markers do not have such a great importance compared to h1-h3.

I am wondering if one should always use h1-h6 tags sequentially (i.e. always start with h1 and for each nested subheading use the adjacent hx tag

Header titles should never be nested within each other, for example. <h1>content<h2>more content</h2></h1>

... They should always be kept separate from each other.

or as long as the order is correct, that's okay (e.g. starting at h2 and jumping straight to h4 is okay).

Going from h2 to h4 is ok and using h4 before h2 is ok, as long as your content tells you it's ok.

0


source







All Articles