How to define an HTML heading in HTML5 ?
An HTML heading tag is used to define headings of a page. Headings are defined with the <h1> to <h6> tags. The size of the text depends upon the type of heading tag. h1 is the largest heading tag and h6 is the smallest one (h1 > h2 > h3 > h4 > h5 > h6).
<h1></h1> <h2></h2> <h6></h6>
Example 2: Each HTML heading has a default size, but user can change its size as given below.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.