In HTML, headings are defined with <h1> to <h6> tags.
<h1> defines the most important heading while <h6> defines the least important heading.
EXAMPLE:
<h1>heading one</h1>
<h2>heading two</h2>
<h3>heading three</h3>
<h1> defines the most important heading while <h6> defines the least important heading.
EXAMPLE:
<h1>heading one</h1>
<h2>heading two</h2>
<h3>heading three</h3>
Headings Are Important
Use HTML headings for headings only. Don't use headings to make text BIG or bold.
Search engines use your headings to index the structure and content of your web pages.
H1 headings should be used as main headings, followed by H2 headings, then the less important H3 headings, and so on.
HTML Lines
To create a horizontal line in a HTML page, we use the tag <hr>.
The hr element can be used to separate content.
EXAMPLE:
<p>First paragraph</p>
<hr>
<p>Second paragraph</p>
<hr>
<p>Third pragraph</p>
<hr>
<p>Second paragraph</p>
<hr>
<p>Third pragraph</p>
OUTPUT IN BROWSER:
First paragraph
Second paragraph
Third paragraph
Second paragraph
Third paragraph
HTML Comments
Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed.
Comments are written like this:
<!-- COMMENT -->
NOTE:There is an exclamation point after the opening bracket, but not before the closing bracket.
No comments:
Post a Comment