HTML headings are defined by the <h1> to <h6> tags. <h1> is the highest section level and <h6> is the lowest section level.
Example
<!DOCTYPE html>
<html>
<head>
</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
This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5
This is heading 6
HTML Paragraphs
HTML paragraphs are defined by
the <p>
tag.
Example
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>This is the first paragraph. </p>
<p>This is the second paragraph. </p>
</body>
</html>
Output
This is the first paragraph.
This is the second paragraph.
0 Comments