h Tag
The <h>
tag, defined from <h1>
to <h6>
, is used to define the heading
elements of a document.
h Tags are used to establish a hierarchy on a web page and to indicate the importance of content.
<h1>
denotes the most critical, high-level large heading, while <h6>
represents the least important and smallest heading.
For example, the h1 tag
can be used as follows:
<h1>Hello</h1>
The HTML code example above displays "Hello" as the most prominent heading level.
The opening tag <h1>
signifies the start of a large heading, and the closing tag </h1>
signifies its end.
Note that tag names are case-insensitive. Thus, both <h1>
and <H1>
are recognized the same by web browsers.
However, it is conventional to write tags in lowercase, so it is recommended to write <h1>
rather than <H1>
.
For search engine optimization (SEO), it is best to include only one h1 tag per webpage.
Follow the highlighted sections in the code to practice.
What is the most appropriate content to fill in the blank?
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help