HTML HEADINGS
HTML Headings: Structuring Your Content
What are HTML Headings?
HTML headings are used to create a hierarchical structure for web content. They range from <h1> (the highest level) to <h6> (the lowest level), with each level providing a different degree of emphasis.
Using Headings in HTML
Headings help in organizing content, making it easier for readers to navigate and understand the structure of a web page. Here’s how you use them:
- <h1>: Main heading, typically used for the page title.
- <h2>: Subheading, used for major sections.
- <h3>: Subsection heading, used for smaller divisions under <h2>.
- <h4>, <h5>, <h6>: Used for even smaller subsections.
Example: HTML Headings
Here’s an example of how to use headings in HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Headings Example</title>
</head>
<body>
<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Subsection Heading</h3>
<p>This is a paragraph under the subsection heading.</p>
</body>
</html>
No comments