Topic1: H1 To H6
Introduction
Headings and paragraphs are the basic building blocks of any webpage. They help organize content and make it easy to read and understand.
1.Headings (<h1>to <h6>)
HTML provides 6 levels of headings:
<h1>→ Largest (Main heading)<h2>→ Subheading<h3>→ Smaller heading<h4><h5><h6>→ Smallest
Example:
<h1>Main Heading</h1>
<h2>Sub Heading</h2>
<h3>Section Heading</h3>
<h4>Small Heading</h4>
<h5>Very Small</h5>
<h6>Smallest Heading</h6>
Topic 2: <P> Tag
1.Paragraph Tag (<p>)
The <p> tag is used to write text in paragraph form.
Example:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Topic 3: <P> Tag
1.Line Break <br>
The <br> tag is used to break a line without starting a new paragraph.
Example:
<p>Hello<br>World</p>
Output:
Hello
World
Topic 4: <P> Tag
Horizontal Line (<hr>)
The <hr> tag creates a horizontal line to separate content.
Example:
<p>First Section</p>
<hr>
<p>Second Section</p>
It is useful for dividing sections.
PRTICE TIME!!!!!
Create a simple “My Hobbies” webpage using different HTML text formatting tags in one paragraph only.
Use the following tags:
<b><i><em><u><small><mark>
Notice:
All formatting tags should be used inside a single paragraph.