<h1>element content</h1>
Note: Search engines and other user agents usually index page content based on heading elements, for example to create a table of contents, so using the correct structure for headings is important
Note: Don't use headings to make text BIG or bold. heading is just to represent heading .
to make text bold or increase size use css font-weight and font-size .
Learn more about css here
The <hr> tag known as thematic break in an HTML page, and is most often displayed as a horizontal rule. The <hr> element is used to separate content (or define a change) in an HTML page:
Info: By default heading have some white space (a margin) before and after a heading.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<!-- some text -->
<p>This is some text.</p>
<!-- Horizontal Rules example -->
<hr>
<h2>This is heading 2</h2>
<hr>
</body>
</html>
Share TDB SCHOOL
Share this E-Learning Website on social media platforms with your friends and followers