Created
September 11, 2021 11:33
-
-
Save rajkumar060301/7e5493167e620bedeedd03edb776a5bc to your computer and use it in GitHub Desktop.
HTML tags for text formatting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title> Tage Example</title> | |
</head> | |
<body> | |
<!--Explain the HTML tags for the following text formatting with example. | |
a) Superscript b) Subscript c) Strike through | |
d) Super bold e) Underline (other than <U> </U>) --> | |
<p> | |
a) Superscript : This tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. | |
Example : | |
<p>Hello Raj Kumar <sup>How</sup> are you ,(a+b)<sup>2</sup></p> | |
b) Subscript : this tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. | |
Example : | |
<p>Hello Gagan what are <sub>you</sub> doing, H<sub>2</sub>O</p> | |
c) Strike through :The tag was used in HTML 4 to define strikethrough text. Not Supported in HTML5. | |
Example : | |
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p> | |
d) Super bold : The tag is used to define text with strong importance. The content inside is typically displayed in bold. | |
Example : | |
<p><strong>This text is important!</strong></p> | |
e) Underline : This tag represents some text that is | |
unarticulated and styled differently from normal text, | |
such as misspelled words or proper names in Chinese text. | |
The content inside is typically displayed with an underline. | |
Eexample : | |
<p>I am <u>handsome</u>boy.</p> | |
<p>I am <u>good</u> boy.</p> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment