What is HTML text formatting?

Hello Friends, In this blog post, I am going to let you know about HTML Text Formatting/How do you change text format in HTML?

Using this blog post we will cover What is HTML text formatting? How do you change text format in HTML? How is text formatting in text editor different from HTML text formatting? How do I make text italic in HTML? HTML text color, Text formatting tags in HTML with example Program.

However, we have explained to you about the style attribute in the previous blog post where we told you to format the text with the help of the style attribute. but there are some more special HTML element which can be used for formatting the HTML text. See the few examples for HMTL Text formatting below.
htmlformating1


So now we will look for some more element which is used to format the HMTL text. For example, <b> and <i> are some special element which is used to get Bold and Italic formatting output.

This formatting element was designed to get a special type of text formatting. Now we will see a few more elements and their special effect over HTML  text.

Below you can see the list of some special elements.

<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> – Subscript text
<sup> – Superscript text


We will see these special element one by one with one example.

<b>:

<b> defines a bold text where it the text is not considered to be important. this tag is just a way to style the text as bold.

[code]
<b>This text is bold</b>
[/code]


<strong>:

this tag is display the text as strong formate which looks alike <b> but there is difference between these two tag. <strong> tag is used for the text which is important.

[code]
<strong>This text is strong</strong>
[/code]


<i>:

this tag is used to define the italic tag which is not considered to be more important.

[code]
<i>This text is italic</i>
[/code]


<em>:

this element is defines emphasized text, which has some important mearnning.

[code]
<em>This text is emphasized</em>
[/code]


<small>:

This element is used to get smaller text.

[code]
<h3>HTML <small>Small</small> Formatting</h3>
[/code]


<mark>:

This element is used to highlight or mark any particular html text.

[code]
<h3>HTML <mark>Marked</mark> Formatting</h3>
[/code]


<del>:

This element defines the text which has been (deleted)removed from the html text.

[code]
<p>My favorite color is <del>blue</del> grey.</p>
[/code]


<ins>:

This element defines inserted(addded) text.

[code]
<p>My favorite <ins>color</ins> is blue.</p>
[/code]


<sub>:

This element used to define the <sub>subscripted</sub> text.

[code]
<p>This is <sub>subscripted</sub> text.</p>
[/code]


<sup>:

This element is used to define <sup>superscripted</sup> text.

[code]
<p>This is <sup>superscripted</sup> text.</p>
[/code]


Conclusion:

So, here in this blog post we have learned What is HTML text formatting? How do you change text format in HTML? How is text formatting in text editor different from HTML text formatting? How do I make text italic in HTML? HTML text color, Text formatting tags in HTML with example Program.

In case of any queries, you can write to us at [email protected] we will get back to you ASAP.

Hope! you would have enjoyed this post about HTML text formatting.

Please feel free to give your important feedbacks in the comment section below.

Have a great time! Sayonara!

Anurag

I am a blogger by passion, a software engineer by profession, a singer by consideration and rest of things that I do is for my destination.