Text Formatting Tags

This page demonstrates the usage of various HTML tags for text formatting and structure.

Headings

HTML provides six levels of headings, from <h1> to <h6>:

Heading Level 1 (<h1>)

Heading Level 2 (<h2>)

Heading Level 3 (<h3>)

Heading Level 4 (<h4>)

Heading Level 5 (<h5>)
Heading Level 6 (<h6>)

Paragraph and Line Break

The <p> tag defines a paragraph:

This is a paragraph of text.

The <br> tag inserts a line break without starting a new paragraph:

This is the first line.
This is the second line after a line break.

Bold and Italic Text

The <b> tag displays text in bold:

This is bold text.

The <i> tag displays text in italics:

This is italic text.

Underlined Text

The <u> tag underlines text:

This is underlined text.

Blockquote

The <blockquote> tag is used for longer quotations:

This is a blockquote. It is used to indicate a section that is quoted from another source.

Horizontal Rule

The <hr> tag inserts a horizontal rule:


Lists

HTML supports ordered and unordered lists:

Unordered List (<ul>)

Ordered List (<ol>)

  1. First item
  2. Second item
  3. Third item

Table

The <table> tag defines a table:

Sample Table
Header 1 Header 2
Data 1 Data 2
Data 3 Data 4

Image

The <img> tag embeds an image:

Description of image

Iframe

The <iframe> tag embeds another HTML page within the current page:

Homepage