HTML Formatting

Please Share On:

3) <strong> – Strong Text

The <strong> element has opening and closing tag. <strong> … </strong>. Any texts that appears between opening <strong> tag and closing </strong> tag is shown in strong.

Syntax:

<strong> ... </strong>

Code:

<!DOCTYPE html>
<html>
  <head>
    <title>strong Text</title>
  </head>
 
  <body>
    <p>
      This is a <strong>line</strong> using <strong>strong element.</strong>
    </p>  
  </body>
</html>  

Output:

4) <u> – Underline Text

The <u> element has opening and closing tag. <u> … </u>. Any texts that appears between opening <u> tag and closing </u> tag is shown in underline texts.

Syntax:

<u> ... </u>

Code:

<!DOCTYPE html>
<html>
  <head>
    <title>Underline Text</title>
  </head>
 
  <body>
    <p>
      This is a <u>line</u> using <u>underline element.</u>
    </p>  
  </body>
</html>  

Output:

5) <em> – Emphasized Text

The <em> element has opening and closing tag. <em> … </em>. Any texts that appears between opening <em> tag and closing </em> tag is shown in emphasized texts.

Syntax:

<em> ... </em>

Code:

<!DOCTYPE html>
<html>
  <head>
    <title>Emphasized  Text</title>
  </head>
 
  <body>
    <p> This is a normal text.</p> 
    <p><em> This is a emphasized  text.</em></p>
  </body>
</html> 

Output:

Continue Reading on the next page

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @2023. All Right Reserved.


Social media & sharing icons powered by UltimatelySocial