How to properly use h1 in HTML5?

 h1 is a heading and not a title. Youcan gives own heading element to each sectioning element. h1 cannot be the title. It can be the heading of that particular section of the page. Each article can have its own title.

defines the most important heading. The first

element is considered the label for the entire document. 

It is perfectly fine to use as many

tags as your document calls for; that is one per sectioning root or content section. Use one set of

tags per sectioning root or content section. There should always be an

level heading between the opening tag and the first content section, to label the overall document.

Example

   

Heading 1

   

My content

   

Heading of a subsection

   

My content

   

Another subsection

   

content

Updated on: 2020-03-04T05:06:02+05:30

307 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements