In this article we will learn what is headline text in html or how to defining a line of text as a headline or subheading with example.
The HTML h tag use to defined as a title or a subtitle which you want to display on the webpage. When you place the text within the heading tags <h1>.........</h1>, it is displayed on the browser in the bold format and size of the text depends on the number of heading.
There are six different HTML headings which are defined with the <h1> to <h6> tags.
h1 is the largest heading tag and h6 is the smallest one. So h1 is used for most important heading and h6 is used for least important.
Let’s see an example of h tag:
<title>Example of h tag</title>
<h1>h1 tag Heading</h1>
<h2>h2 tag Heading</h2>
<h3>h3 tag Heading</h3>
<h4>h4 tag Heading</h4>
<h5>h5 tag Heading</h5>
<h6>h6 tag Heading</h6>
I hope this article will help to you after reading.