Headings, Paragraphs, and Text Formatting in HTML

Headings

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.

Example of Headings

<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>

Paragraphs

A paragraph is defined with the <p> tag. It is a block of text that is separated from other blocks by a blank line.

Example of Paragraph

<p>This is a paragraph of text in HTML.</p>
<p>This is another paragraph.</p>

Text Formatting

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)

Example of Text Formatting

<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>
What Are People Saying About Us

Read These Life Changing Stories From People Just Like You!