There are six levels of headings defined by HTML. These six heading elements are H1, H2, H3, H4, H5, and H6; with H1 being the highest level and H6 the least.
Importance of Heading :
- Search Engines use headings for indexing the structure and content of the webpage.
- Headings are used for highlighting important topics.
- They provide valuable information and tell us about the structure of the document.
Using headings :
Changing size of HTML Headings :
The default size of HTML headings can be changed using the style attribute.
Horizontal rule in HTML :
The “hr” tag which stands for the horizontal rule is used to define a thematic break in an HTML page. It is basically used to separate content.
The head element in HTML :
The HTML head element acts as a container for metadata. Metadata is the data about the HTML document which is not displayed. The head element has nothing to do with headings.
The head element is placed between the “HTML” tag and “body” tag.
Supported Browser: The browser supported by <heading> tag are listed below:
- Google Chrome
- Internet Explorer
- HTML | DOM Heading Object
- HTML | <html> Tag
- HTML Course | Structure of an HTML Document
- HTML Course | Basics of HTML
- HTML | DOM HTML Object
- HTML | <html> xmlns Attribute
- What is the difference between <html lang="en'> and <html lang="en-US'> ?
- Inline HTML Helper - HTML Helpers in ASP.NET MVC
- HTML | scoped Attribute
- HTML | DOM lang Property
- HTML | <section> Tag
- HTML | DOM Style backgroundClip Property
- HTML | DOM Style borderTop Property
- HTML | <th> valign Attribute
- HTML | <col> align Attribute
- HTML | DOM Meter max Property
- HTML | poster Attribute
- HTML | DOM fullscreenerror Event
- HTML | DOM onvolumechange Event
- HTML | DOM Input Hidden value Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.