Introduction to different tags.

Program Description

In this code various tags are used to display text in different format

Program
<html>
<body>
<!-- <br> is used for line break -->
<!-- for making text bold <b> tag is used -->
<b>This is in bold</b><br>

<!-- for making text italic <i> tag is used -->
<i>This is in italic</i><br>

<!-- for making text underlined <u> tag is used -->
<u>This is underline</u><br>

<!-- combination of all three i.e bold,italic,underline -->
<b><i><u>This is bold,italic,underline</b></i></u><br>

<!-- Representing any text in quotes <q> tag is used -->
<q>This text is in quotes</q><br>

<!-- This text is in code format.For this <code> id used-->
<code>This is in code format</code><br>

<!-- This tag display the code in paragraph-->
<p>This is a paragraph.</p>

<!-- Superscript <sup> and subscripts <sub>-->
<p>We all know about the famous equation E=MC<sup>2</sup> and chemical formula of water H<sub>2</sub>O</p>

<!--For Using citation we use <cite> tag -->
<p>A <cite>Brief History of Time</cite> by Stephen Hawking</p>

<!-- To show content has been deleted we use <del> tag -->
<del>This text is deleted.</del><br>

</body>
</html>

Output
This is in bold
This is in italic
This is underline
This is bold,italic,underline
This text is in quotes
This is in code format

This is a paragraph.

We all know about the famous equation E=MC2 and chemical formula of water H2O

A Brief History of Time by Stephen Hawking

This text is deleted.

Comments
comments powered by Disqus