This is the source code from the HTML5 Tutorial For Beginners. In this source code, you are going to learn about Text Formatting tag in HTML 5 such as Emphasis, small, delete and insert tags.
In the last article, we discuss some important text formatting tags. Now we are going to discuss more text formatting tag like emphasis, small, delete and insert tags.
When we use emphasis tag in our HTML document it marks the text as an important element of the document. We use emphasis tag when we address some important text on the web page such as address and phone number. It is defined by em.
<em> is opening tag and </em> is closing tag.
<em> This is an example of emphasis tag</em>
This is an example of emphasis tag
When we have to make some text in small font in that case we use the small tag.
<small>This is the small tag<small>
This is the small tag
Delete and Insert tag
To delete some text on the webpage we use delete and to insert some text on the webpage we use insert tag.
<del>This is an example of delete tag</del>
This is an example of delete tag
<ins>This is an example of insert tag</ins>
Subscript and Superscript
<!DOCTYPE html> <html> <head> <title>My First Web Page</title> </head> <body> // superscript tag <p>3<sup>rd</sup> DEC, 2017</p> // subscript tag <p>The formula of water is H<sub>2</sub>O</p> </body> </html>