O
O
Odisseya2018-02-01 09:42:42
HTML
Odisseya, 2018-02-01 09:42:42

Where is it more semantic to put H1 - in HEADER or in MAIN?

Where is it more semantically logical to put <h1>the , in the title of the page or in the body of the page?
Where is yours most often <h1>?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
alvvi, 2018-02-01
@Odisseya

In a simplified video, usually either

<header><nav></nav></header>
<main> 
  <section class="hero"><h1></h1></section>
</main>

or
<header>
   <nav></nav> 
   <section class="hero">
     <h1></h1> 
   </section>
</header>

For me personally, it depends on whether the hero sections on the pages are different or the same. I don't see much difference in smeantike between the two options.

D
Dimonchik, 2018-02-01
@dimonchik2013

well, in what header? always in text

E
eirenka, 2020-11-07
@eirenka

In the header, according to html5 standards. Such info was in Yandex Practicum

L
Lone Ice, 2018-02-01
@daemonhk

Where is this in the title? In the title or what? And what is MAIN? The title must be in the body of the document.

W
Well here again 25, 2018-02-01
@TT55EE

There is no such word: More
semantic The semantics of html elements is their role, purpose.
The title can be anywhere.

A
Alex-1917, 2018-02-01
@alex-1917

The heading should title something, so definitely at the beginning of the text.
And your header or main is nothing at all, what is it in your situation ?? it looks like a typical WP template - there are these sections who are in the woods who are firewood, I even saw H1 somehow before the crumbs, but in the MAIN section ...)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question