Some more Tags for
Phrasing elements in HTML 5
1. <mark>:- We use
this tag for giving special effects to some text such as highlighting it.
Syntax:
<mark> text you want to highlight </mark>
Code:
- <!DOCTYPE HTML />
- <html>
- <body>
- <p> I m mark tag</p>
- I m
- <mark> formatting </mark> tag
- </body>
- </html>
2. <q>:- We use
this tag for providing double quotes to a non quoted short line. That means
after using this tag, the line will contain double-quotes. This tag can be used with the cite attribute. Here, cite attribute will indicate a URL from where a line has
come.
Syntax:
<q> Non-quoted line </q>
- <!DOCTYPE HTML />
- <html>
- <body>
- <q cite="http://www.mcnsolutions.net">
- Trusted and Reliable Outsourcing Partner
- </q>
- </body>
- </html>
Output:
3. <s>:- We use this tag for
cutting a text which we have provided by mistake in an HTML 5 document. After
that, we can replace it with the correct text.
Syntax:
<s> a line that will contain cut mark. </s>
- <!DOCTYPE HTML>
- <html>
- <body>
- <p>
- <s>I m q tag</s>
- </p>
- <p>I m s tag </p>
- </body>
- </html>
4. <samp>:- We use this tag to show some output text
generated by the system.
Syntax:
<samp> Text generated by system</samp>
- <!DOCTYPE HTML >
- <html>
- <body>
- <samp> Do you really want to delete all
- files</samp>
- </body>
- </html>
5. <strong>:- We use this tag to give more focus to some
text than <em> tag provides.
Syntax:
<strong> A text to which we want to give focus more than <em>
tag
- <DOCTYPE HTML>
- <html>
- <body>
- I m
- <strong> strong </strong> tag
- </body>
- </html>
Output:
6. <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:
7. <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>
- <DOCTYPE HTML>
- <html>
- <body>
- I m
- <sup> sup </sup> tag
- </body>
- </html>
8. <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:
9. <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>
10. <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>