<!-- !
Heading Tag -->
- Heading Tags are used in HTML to define headings and
subheadings on a webpage.
- They range from <h1> to <h6>, where <h1> is the
highest (or most important) level heading and <h6> is the
lowest (or least important).
Default Font Sizes for Heading Tags
- The default font size for each heading tag is defined
in terms of em units.
- 1 em is equivalent to 16 pixels (px), which is the
standard size of normal text in web browsers.
. Default Sizes for Each Heading Tag
- <h1>: 2 em (32px)
- <h2>: 1.5 em (24px)
- <h3>: 1.17 em (18.72px)
- <h4>: 1 em (16px)
- <h5>: 0.83 em (13.28px)
- <h6>: 0.67 em (10.72px)
- Example:
<h1>Front-End Development</h1>
<!-- ! paragraph tag (<p> </p>) -->
- The <p> tag in HTML stands for paragraph.
- It is used to define and group a block of text as a
paragraph, separating it from other blocks of text on a
webpage.
Syntax of the <p> Tag
- The <p> tag is a paired tag, meaning it has both an
opening tag and a closing tag.
-
<p>Content of the paragraph goes here.</p>
- Example:
<p>This is an example of a paragraph in HTML.
Paragraphs are used to group related sentences
together.</p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>heading tag</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 paragraph tag </p>
</body>
</html>