Text Formatting Tags ( underline, bold, superscript, italic, emphasied)

Text formatting tags :-
HTML also defines special elements for defining text with a special meaning.

HTML uses elements like <b> and <i> for formatting output, like bold or italic text.
<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
<u>- underline text

Example:-


<html>
<head>
<title>Index | HTML Text foramtting tags </title>

<head>
<body bgcolor="lightblue" text="black">
<!-- example of formatting tags  -->
<h2>Text formatting Tags</h2>
<b> - Bold text</b><br>
<strong> - Important text</strong><br>
<i> - Italic text</i><br>
<em> - Emphasized text</em><br>
<mark> - Marked text</mark><br>
<small> - Small text<small><br>
<del> - Deleted text</del><br>
<ins> - Inserted text</ins><br>
<sub> - Subscript text</sub><br>
<sup> - Superscript text</sup><br>

<h4>Formatting Tags in the Paragraph</h4>

<b>Notepad</b> is a basic <i>text-editing program</i> and 
it's most commonly used to <mark>view or edit text files.</mark> 
A text file is a file type typically identified by the .
txt file name <u>extension</u>.




<body>


</html>

The output of the above example:-




To download HTML File:- CLICKHERE

Comments

Popular posts from this blog

Body tag < body > < / body>

Heading Tag ( h1 to h6)