HTML Headings
An HTML heading tag is used to define headings for a web page. There are six types of heading tags that can be used to modify the appearance of text on the page.
When we enclose text within heading tags, such as <h1>text here</h1>, it is displayed on the browser in bold format and the size of the text depends on the type of heading tag we use.
H1 is the largest and most important heading tag.
Note: The main keyword of the page should be displayed under the heading <h1> tag.
Example Below:
The output of the above example will be as below.
Supporting Browsers
Element |
|||||
Marquee |
Yes |
Yes |
Yes |
Yes |
Yes |