HTML Text Formatting Tags: In HTML, content designing is utilized to separate the unique kind of content. Right now, will find out about various sorts of content arranging components utilized in the HTML programming language.
HTML Text Formatting Tags
Content designing is the way toward characterizing the content in some exceptional kind like striking, Italic, underlined, which changes shading, and so forth which make the content uncommon look extraordinary when contrasted with others.
Organizing components in HTML
HTML gives predefined exceptional components (labels) for characterizing these unique writings. These are, <br>
Tag | Formatting Done |
---|---|
<b> | Bold text |
<strong> | Important text |
<i> | Italic text |
<em> | Emphasized text |
<mark> | Marked text |
<small> | Small text |
<del> | Deleted text |
<ins> | Inserted text |
<sub> | Subscripted text |
<sup> | Superscripted text |
<u> | Underlined text |
and <strong> Tags Both the components characterize a striking book yet in the event of solid a solid significance (semantically) is added to the content.
Example:
<!DOCTYPE html>
<html>
<body>
<p>I love to learn programming from <b>JustTechReview</b></p>
<p>I love to learn programming from <strong>JustTechReview</strong></p>
</body>
</html>
Output:
<i> and Tags and <em> Tags
Both the components characterize an italic book yet if there should arise an occurrence of underscored significance (semantically) is added to the content.
Example:
<!DOCTYPE html>
<html>
<body>
<p>I love to learn programming from <i>JustTechReview</i></p>
<p>I love to learn programming from <em>JustTechReview</em></p>
</body>
</html>
Output:
The <small>component is utilized to characterize content with littler content when contrasted with the remainder of the content.
Example:
<!DOCTYPE html>
<html>
<body>
<p>I love to learn programming from <small>JustTechReview</small></p>
</body>
</html>
Output:
The <mark> Tag imprint component is utilized to characterize a checked or featured book.
Example:
<!DOCTYPE html>
<html>
<body>
<p>I love to learn programming from <mark>JustTechReview</mark></p>
</body>
</html>
Output:
<del> and <ins> Tags
The del component is utilized to characterize content which is erased or expelled from the content. The ins component is utilized to characterize content which is embedded (underlined).
Example:
<!DOCTYPE html>
<html>
<body>
<p>I love to learn programming from <del>JustTechReview</del></p>
<p>I love to learn programming from <ins>JustTechReview</ins></p>
</body>
</html>
Output:
The <sub> and <sup> Tags-component is utilized to characterize content which is to be written in subscript or underneath the content. The sup component is utilized to characterize content which is to be written in superscript of the content.
Example:
<!DOCTYPE html>
<html>
<body>
<p><b>Algebraic formula:</b> (A+B)<sup>2</sup> = A<sup>2</sup> + 2AB + B<sup>2</sup></p>
<p>The <b>molecular formula for water</b> is H<sub>2</sub>O</p>
</body>
</html>
Output:
<u> Tag
The <u> component is utilized to characterize content which is underlined.
Example:
<!DOCTYPE html>
<html>
<body>
<p>I love to learn programming from <u>JustTechReview</u></p>
</body>
</html>
Output: