Some more Tags for
Phrasing elements in HTML 5
Output:
-
<sub>:- We use this tag to provide a text at below in
HTML 5 document.
Syntax:
<sub> Text which we want to provide in
subscript form
</sub>
Code:
<!DOCTYPE HTML />
<html>
<body>
I m <sub> sub</sub> tag
</body>
<html>
Output:
- <sup>:- We use this tag to provide a text at above in
HTML 5 document.
Syntax:
<sup> Text which we want to provide a text
at above in HTML
5 document. </sup>
Code:
<DOCTYPE HTML>
<html>
<body>
I m <sup> sup
</sup> tag
</body>
</html>
Output:
- <time>:- We can use it to show a date
or time in our document. We can also show date and time both using this tag.
Syntax:
<time> time we want to show </time>
Code:
<!DOCTYPE HTML>
<html>
<body>
I m time tag. Time is <time> 5:30 </time>
</body>
</html>
Output:
-
<u>:- This tag is used to show a text
which is underlined.
Syntax:
<u> Text we want to show </u>
Code:
<!DOCTYPE HTML>
<html>
<body>
<u> I m u tag </u>
</body>
</html>
Output:
- <var>:- We use this tag for formatting name of text
which stores some value.
Syntax:
<var> variable name </var>
Code:
<!DOCTYPE HTML>
<html>
<body>
<v> I m var tag </v>
</body>
</html>
Output: