Syntax:
<b>
Text you want to display in bold </b>
Code:
- <!DOCTYPE HTML>
- <html>
- <body>
- <p> I m
- <b> b </b> tag
- </p>
- </body>
- </html>
Output:


Code:
- <!DOCTYPE HTML>
- <html>
- <body>
- <p> I m
- <i> i </i> tag
- </p>
- </body>
- </html>
3. <pre>:- This tag
is used to set formatting in such a way, that the way
Syntax:
browser. </pre>
- <!DOCTYPE HTML>
- <html>
- <body>
- <p>
- <pre> This tag is used to set formatting in a way </pre>
- </p>
- </body>
- </html>

4. <small>:- This
tag is used to display text in small in a browser.
- <!DOCTYPE HTML>
- <html>
- <body>
- <p>
- <small> I m </small>
- <b>
- small</b>
- <i> tag </i>
- </p>
- </body>
- </html>

After that a tag on which you want to define an attribute: an attribute
value}</style>
- <!DOCTYPE HTML>
- <html>
- <head>
- <style type="text/css">
- h1 { color:Purple}
- h2 { color:Orange}
- </style>
- </head>
- <body>
- <h1> I m style tag </h1>
- <h2> I provide style to document </h2>
- </body>
- </html>

Join the conversation! Your thoughts help the community grow.