Introduction:

In this article we will learn what is Formatting tag in html and how to Formatting tag in html with example.

Description:

HTML Formatting tag used to format text for better look and feel. There are many formatting tags in HTML. These tags are used to make text bold, italicized, or underlined. There are more than 10 html element available to design text appears in HTML.

Here, we are going to learn 11 HTML formatting tags.

1. Bold Text

This tag is use to shown in bold letter content.

Syntax:

<b>............</b>

Example:

<p> <b>Write Your First Paragraph in bold text.</b></p>  

Output:

Write Your First Paragraph in bold text.

2. Italic Text

This tag is use to shown in italic letter content.

Syntax:

<i>............</i>

Example:

<p> <i>Write Your First Paragraph in italic text.</i></p>

Output:

Write Your First Paragraph in italic text.

3. Underlined Text

This tag is use to shown in underlined text.

Syntax:

 <u>.........</u>

Example:

<p> <u>Write Your First Paragraph in Underline text.</u></p>

Output:

Write Your First Paragraph in italic text.

4. HTML Marked formatting

This tag is use to mark or highlight a text.

Syntax:

<mark>.........</mark>

Example:

<h4>  I want to put a <mark> Mark</mark> on your Documnet.</h4>

Output:

I want to put a Mark on your Document.

5. Strike Text

This tag is use to make a thin line which cross the statement.

Syntax:

<strike>.......................</strike>

Example:

<p> <strike>Write Your First Paragraph with strikethrough</strike>.</p>

Output:

Write Your First Paragraph with strikethrough.

6. Superscript Text

This tag is use to shown in superscript format text means it is displayed half a character's height above the other characters.

Syntax:

<sup>..............</sup>

Example:

<p>Hi <sup>Write Your First Paragraph in superscript.</sup></p>

Output:

Hi Write Your First Paragraph in superscript.

7. Subscript Text

This tag is use to shown in subscript format text means it is displayed half a character's height below the other characters.

Syntax:

<sub>..............</sub

Example:

<p>Hi <sub>Write Your First Paragraph in subscript.</sub></p>

Output:

Hi Write Your First Paragraph in subscript.

8. Deleted Text

This tag is use to displayed as deleted text.

Syntax:

<del>..........</del>

Example:

<p>Hi <del>Delete your first paragraph.</del></p>

Output:

Hi Delete your first paragraph.

9. Inserted Text%

0 comments


Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

you may also like