Headings

0

 HTML Headings

Html headings are defined with the <H1> to <H6> tags.

<H1> defines the most important heading.<H6> defines the least important heading.


Output of the Code
<!doctype html>

    <html>

        <head>

        </head>

        <body>

                <H1>Heading 1</H1>

                <H2>Heading 2 </H2>

                <H3>Heading 3 </H3>

                <H4>Heading 4 </H4>

                <H5> Heading 5 </H5>

                <H6> Heading 6 </H6>

        </body>

</html>


 

NOTE:- Browser automatically adds some white space ( a margin) before and after a heading.


why are we reading about Headings HTML? Why headings are important?

 

Search engines use the headings to index the structure and content of your web pages.


Users often skim a page by its headings. It is important to use headings to show the document structure.

<H1> headings should be used for main headings, followed by <H2> headings, then the less important <H3>, and so on.


NOTE: Use HTML headings for headings only. Don't use headings to make text BIG or Bold.



Post a Comment

0Comments

We you have any doubt let me know :)

Post a Comment (0)
To Top