HTML Formatting

You are currently viewing HTML Formatting

HTML Formatting​

HTML Formatting

HTML Formatting tags are used to format the appearance of the text on your web page.

When you use MS Word processor, you format text as bold, italic, or underlined. Similarly, HTML Formatting tags help you to format text in different ways.

HTML Formatting Tags List

Formatting Tags Example & Syntax
Bold & Strong Tag Text</b> <strong>Sample Text</strong>
Italic & Emphasized Tag <i>Sample Text</i> <em>Sample Text</em>
Small Tag <small>Sample Text</small>
Big Tag <big>Sample Text</big>
Marked (Highlighted) Tag <mark>Sample Text</mark>
Deleted (Removed) Tag <del>Sample Text</del>
Inserted (Added) Tag <ins>Sample Text</ins>
Subscript Tag <sub>Sample Text</sub>
Superscript Tag <sup>Sample Text</sup>

Next, we will cover these HTML Text formatting tags in detail below.

HTML Bold & Strong Text Formatting

HTML Bold Tag: The HTML <b> element defines bold text, without any extra importance.

				
					Here the text is normal.
<b>Here the text is bold.</b>
				
			

HTML Strong Tag: The HTML <strong> element defines strong text, with added semantic “strong” importance.

				
					Here the text is normal.
<strong>Here text is strong</strong>
				
			

HTML Italic and Emphasized Text Formatting

HTML Italic Tag: The HTML <i> element defines italic text, without any extra importance.

				
					This text is normal.
<i>Text is italic</i>
The text is normal.
<i>Text is italic</i>
				
			

HTML Emphasised Tag: The HTML <em> element defines the emphasized text, with added semantic importance.

				
					The text is normal.
<em>Text is emphasized</em>
				
			

HTML Small Text Formatting

The HTML <small> element defines small text.

				
					This is normal text
<small>This is Small Text</small>
				
			

HTML Big Text Formatting

The HTML <big> element defines bigger text. All text placed between this tag will have bigger text as compared to normal.

				
					This is normal text
<big>This is Big Text</big>
				
			

HTML Marked Text Formatting

The HTML <mark> element defines marked text. All content placed inside this tag will be marked (highlighted).

				
					This is normal text
<mark>This is Marked or Highlighted Text</mark>
				
			

HTML Deleted Text Formatting

HTML <del> element defines deleted (removed) text.

				
					This is normal text
<del>This is Deleted or Removed Text</del>
				
			

Leave a Reply