HTML provides six levels of headings, which are defined with the <h1>
to <h6>
tags. The <h1>
tag defines the most important heading, while the <h6>
tag defines the least important heading.
<h1>This is a Heading Level 1</h1>
<h2>This is a Heading Level 2</h2>
<h3>This is a Heading Level 3</h3>
<h4>This is a Heading Level 4</h4>
<h5>This is a Heading Level 5</h5>
<h6>This is a Heading Level 6</h6>
A paragraph is defined with the <p>
tag. It is a block of text that is separated from other blocks by a blank line.
<p>This is a paragraph of text in HTML.</p>
<p>This is another paragraph.</p>
HTML provides several tags for formatting text, including:
<b>
- Bold text<i>
- Italic text<u>
- Underlined text<mark>
- Highlighted text<small>
- Smaller text<del>
- Deleted text (strikethrough)<ins>
- Inserted text (underlined)<b>Bold Text</b>
<i>Italic Text</i>
<u>Underlined Text</u>
<mark>Highlighted Text</mark>
<small>Smaller Text</small>
<del>Deleted Text</del>
<ins>Inserted Text</ins>