Headings in HTML
Headings in HTML
Headings are the most vital part of any webpage. It gives you a summary of the whole topic. These are the titles that you want to show before any Paragraph or Content.
Example:
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
In HTML the heading are briefed with the help of <h1> to <h6> tags. Whereas <h6> is the very small case heading, other than <h1> is the most important and big size heading. Our internet browsers by default add some white space Previous and next to the heading.
Example:
<h1>hello folks</h1>
<h2>hello folks</h2>
<h3>hello folks</h3>
<h4>hello folks</h4>
<h5>hello folks</h5>
<h6>hello folks</h6>
hello folks
hello folks
hello folks
hello folks
hello folks
hello folks
In an Internet world, the heading is used as an index by search engines. Heading should be used in such a way that the top and main heading <h1> should be used and use other heading as working importance.
Heading with CSS:
If you use the heading on your web page it has its default size but we can also customize it with the help of style attributes and its properties.
Example:
<!DOCTYPE html>
<html>
<body>
<h6 style="font-size:34px;">I am super man</h6>
</body>
</html>
I am super man
See the Pen Headings in HTML by Jehal Desai (@my-dreamzlive) on CodePen.
