class 3 HTML Headings and Horizontal Line


HTML Headings


HTML includes six levels of headings, which are ranked according to importance.

These are <h1><h2><h3><h4><h5>, and <h6>.
Example:

<html>
<head>
<title>first page</title>
</head>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>
Output:

Headings Are Important :

Search engines use the headings to index the content of your web pages. Headings are important for Search Engine Optimization[SEO] to Rank Website on Google.
AWC services

Bigger Headings :

Each HTML heading has a default size. However, you can specify the size for any heading with the style attribute, using the CSS font-size property:

Example:

<h1 style="font-size:60px;">Heading 1</h1>

Horizontal Lines:

we can create a horizontal line , use the <hr /> tag.
w3shool awc services
<html>
<head>
<title>first page</title>
</head>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
<p>This is a paragraph </p>
<hr />
<p>This is a paragraph </p>
</body>
</html>

What tags are used to indicate headings?
h1 - h6
heading
head
header

Post a Comment

0 Comments