elements

How to use HTML Text Formatting and Formatting Elements

Spread the love

Today we will learn how many formats there are in HTML text and how many elements there are in that format.
HTML There are many forms for defining text with a specific meaning. Let’s see how it is used one by one and I will also give a coded demo of it.

HTML Formatting Elements One By One Learn

< b > and < strong > HTML Elements

How to use < b > and < strong > Elements???

<b> This is b for bold Text </b>
<strong> This is Strong Text </strong>

Output:-

This is b for bold Text
This is Strong Text

Definition:-

< b > or < strong > is used to thicken strong text. For example, < b > a < strong > or element is used to highlight certain words in a paragraph.


< i > and < em > HTML Elements

How to use < i > and < em > Elements???

<i> This is italic Test Style </i>
<em> This is emphasized Text Style </em>

Output:-

This is italic Test Style
This is emphasized Text Style

Definition:-

< i > is used to making the text appear in italic style That is, the element < i > is used to bending the text. Just as the < i > element is used to bend the text, so the HTML < em > element is used. < i > element and < em > element become the same element used to italicize text.


< small > HTML Elements

How to use < small > Elements???

<p> This is a Normal Text </p>
<p> <small>This is a Small Text </small></p>

Output:-

This is a Normal Text

This is a Small Text

Definition:-

Smaller elements are used to make the text < small >. < small > elements are smaller in size than a paragraph.


< mark > HTML Elements

How to use < mark > Elements???

Today i make <mark> cake </mark>  

Output:-

Today i make cake

Definition:-

The < mark > element is used to highlight a word or sentence in a paragraph or title.


< del > HTML Elements

How to use < del > Elements???

This is a Delete Elements <del> Example </del>

Output:-

This is a Delete Elements Example

Definition:-

< delete > is used to line a wrong sentence or word in a paragraph.


< ins > and < u > HTML Elements

How to use < ins > and < u > Elements???

This is <ins>underline</ins> Elements
This is <u> Underline </u> Elements

Output:-

This is underline Elements
This is Underline Elements

Definition:-

< ins > and < u > are used to underline a sentence or word.


< sub > and < sup > HTML Elements

How to use < sub > and < sup > Elements???

This is <sup>superscripted</sup> text.

This is <sub>subscripted</sub> text.

Output:-

This is superscripted text.

This is subscripted text.

Definition:-

< sup >element is used to write superscript text. Superscript text appears half a character above a normal line Superscript text can be used for footnotes such as WWW[1]:

< sub > element is used to write subscript text. The subscript text appears half a letter below the normal line and is sometimes rendered in small fonts. Subscript text can be used for chemical formulas such as H2O:


Spread the love

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *