The HTML headings are used to highlight the important topics of a web page or an article. And headings are very helpful for organizing the content of a web page.
📝 Organized content is very good for user experience, and it can help to rank on search engines. So you can understand the headings are another most important part of web pages or websites.
HTML offers six levels of heading tags, by using these tags you can add HTML headings on the web page. And by default, browsers display the headings in larger and bolder than normal text.
<!DOCTYPE html> <html> <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>
📝 Web Browsers automatically add some space (margin) before and after a heading.