TheTechHub - Chapter 3: Text Basics

1. Headings: <h1> to <h6>

Code:

<h1>Main Heading</h1>
<h2>Sub Heading</h2>
<h3>Section Heading</h3>
<h4>Small Heading</h4>
<h5>Smaller Heading</h5>
<h6>Smallest Heading</h6>

Main Heading

Sub Heading

Section Heading

Small Heading

Smaller Heading
Smallest Heading

2. Horizontal Rule: <hr>

Code: <hr>

This is before the line

This is after the line

3. Line Break: <br>

Code: Line one<br>Line two

Line one
Line two

4. Emphasized and Strong Text: <em> & <strong>

Code: This is <em>important</em> and <strong>very important</strong>

This is important and very important

5. Abbreviations: <abbr>

Code: <abbr title="HyperText Markup Language">HTML</abbr>

HTML is the language of the web.