Learn
Objects
HTML headings
HTML headings are basically just headings for your content.
They're usually bold, they're usually larger, and, semantically, they mean they're a kind of heading for the following content.
There are six level headings, meaning there is an <h1>
tag, there is an <h2>
tag, and there is also an <h3>
, an <h4>
, an <h5>
, and an <h6>
.
Each of them has a distinct semantic meaning. Meaning that a level one heading is the most important heading. It is essentially something like the title of the page or the main title of the content.
Here is a heading example:
Instructions
Inside the <body>
tag, add an <h1>
heading that says:
To create a heading, wrap your text in heading opening and closing tags.
For example, to create an <span classname='highlighted-code'><h1>
</span> heading that said "My Site", write the following:
<h1>My Site</h1>
Below the main heading, add an <h2>
heading that says:
On the next line, add one more <h3>
heading that says:
And at the last, in the next line, add one more <h2>
heading that says:
Sign up to start coding
Already have an account?
Sign In