Professional Documents
Culture Documents
FORMATTING TEXT”
Presented By:
Miani Shea Eparwa
Irish Claire Paniterce
Introduction:
In web development, "heading tags for formatting text" are
the cornerstone of content structure. These HTML elements
are crucial for organizing information, guiding readers, and
improving overall web accessibility. This overview will
delve into the importance and practical application of
heading tags, illustrating their role in creating well-
structured and visually appealing web content.
WHAT IS “HEADING
TAGS FOR FORMATTING
TEXT”
<body>
<h1>Main Heading</h1>
<p>The Main Content.</p>
</body>
</html>
Heading 2 <h2>:
Represents subheadings that are of lower importance than the main heading but
still important within their respective sections. You can have multiple <h2> tags on
a page.
EXAMPLE:
<html>
<head>
<title>Sample Page</title>
</head>
<body>
<h1>Main Heading</h1>
<b>The Main Content.</b>
<h2>Subheading</h2>
<p>Content that related to subheading.</p>
</body>
</html>
Heading 3 <h3>:
<body>
<h1>Main Heading</h1>
<b>The Main Content.</b>
<h2>Subheading</h2>
<p>Content that related to subheading.</p>
<h3>Sub-subheading 1</h3>
<p>Content related to sub-subheading 1.</p>
</body>
</html>
Heading 4 <h4>:
Represents a lower level heading than <h3> and is used for further
subdivisions of the content.
EXAMPLE:
<html>
<head>
<title>Sample Page</title>
</head>
<body>
<h1>Main Heading</h1>
<b>The Main Content.</b>
<h2>Subheading</h2>
<p>Content that related to subheading.</p>
<h3>Sub-subheading 1</h3>
<p>Content related to sub-subheading 1.</p>
<h4>Sub-subheading</h4>
</body>
</html>
Heading 5 <h5>:
<body>
<h1>Main Heading</h1>
<b>The Main Content.</b>
<h2>Subheading</h2>
<p>Content that related to subheading.</p>
<h3>Sub-subheading 1</h3>
<p>Content related to sub-subheading 1.</p>
<h4>Sub-subheading</h4>
<h5>Sub-subheading</h5>
</body>
</html>
Heading 6 <h6>:
<body>
<h1>Main Heading</h1>
<b>The Main Content.</b>
<h2>Subheading</h2>
<p>Content that related to subheading.</p>
<h3>Sub-subheading 1</h3>
<p>Content related to sub-subheading 1.</p>
<h4>Sub-subheading</h4>
<h5>Sub-subheading</h5>
<h6>Sub-subheading</h6>
</body>
</html>
Why is it Important to know?
It's important to note that headings
should be used in a logical and
hierarchical manner to ensure proper
readability and accessibility.
THANK YOU FOR
LISTENING!!!