×
   ❮     
HTML CSS MySql Javascript SQL PYTHON JAVA C++ C# BOOTSTRAP REACT XML NODEJS ANGULAR DJango Rust Android VUE
     ❯   

HTML Formatting


What is Formatting in HTML?

Refers to the use of HTML tags to control the appearance and structure of text and other elements on a web page.

HTML Formatting

There are greater than 13 HTML formatting tags provided to us. HTML formatting tags permit us to style text without using CSS.

Bold Text

The HTML <b> element defines bold text in HTML

Example

<p>This is a <b>bold text</b></p>
<p>This is a <strong>strong text</strong></p>
Try it Yourself »

Italic Text

The <i> tag defines a part of text in an alternate voice or mood.

Example

<p>This is an <i>italic text</i></p>
<p>This is an <em>emphasized text</em></p>
Try it Yourself »

Underlined Text

The <u> tag represents some text that is unarticulated and styled differently from normal text,

Example

<p class="underlined">This is underlined text with a custom color.</p>
<u>Another way of underline</u>
Try it Yourself »

Strike Text

The <s> HTML element renders text with a strikethrough, or a line through it

Example

<p class="strikethrough">This is strikethrough text with a custom color.</p>
<s>Another way of Strike Text</s>
Try it Yourself »

monospace

The <tt> HTML element creates inline text which is presented using the user agent's default monospace font face.

This element was created for the purpose of rendering text as it would be displayed on a fixed-width display such as a teletype, text-only screen, or line printer.

Example

<p class="monospace">This is monospace text with a custom color.</p>
<tt>Another way of Monospace example</tt>
Try it Yourself »

Superscript

The <sup> tag defines superscript text.

Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font.

Example

<p>This is <sup>superscript text</sup> with a custom color.</p>
Try it Yourself »

Subscript

The <sub> tag defines subscript text.

Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font.

Example

<p>This is paragraph <sub>subscript</sub> text with a custom color.</p>
Try it Yourself »

Inseted

The <ins> tag defines a text that has been inserted into a document.

Example

<p>This is paragraph <ins>inserted</ins> text with a custom color.</p>
Try it Yourself »

Deleted

The <del> tag in HTML stands for delete and is used to mark a portion of text which has been deleted from the document.

Example

<p>This is paragraph <del>deleted</del> text with a custom color.</p> <p>This is paragraph <del>Example Delete Text</del> text</p>
Try it Yourself »

Larger

The <big> tag in HTML is used to increase the selected text size by one larger than the surrounding text.

Example

<p>This is paragraph <big>larger</big> text with a custom font size and color.</p>
Try it Yourself »

Smaller

The <small> element represents side-comments and small print, like copyright and legal text, independent of its styled presentation.

Example

<p>This is paragraph <small>smaller</small> text with a custom font size and color.</p>
Try it Yourself »

Hey there! Let's go for Learn fasta then! It is more than just coding; it is to have the superpower that can solve any problem. Through simple and easy-to-grasp examples you will sail through the learning process. In addition, it is not just about coding– you will acquire competencies on how to solve complex problems, analyze data, and come up with efficient solutions. Shall we start this wonderful journey together! learnfasta.com terms of use, Copyright 2025 All Rights Reserved.