HTML Formatting

Please Share On:

6) <mark> – Marked Text

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

Syntax:

<mark> ... </mark>

Code:

<!DOCTYPE html>
<html>
  <head>
    <title>Mark Text</title>
  </head>
 
  <body>
    <p> This is a normal text.</p> 
    <p><mark> This is a mark text.</mark></p>
  </body>
</html>

Output:

7) <small> – Smaller Text

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

Syntax:

<small> ... </small>

Code:

<!DOCTYPE html>
<html>
  <head>
    <title>Small Text</title>
  </head>
 
  <body>
    <p> This is a normal text.</p> 
    <p><small> This is a small text.</small></p>
  </body>
</html>    

Output:

8) <big> – Larger Text

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

Syntax:

<big> ... </big>

Code:

<!DOCTYPE html>
<html>
  <head>
    <title>Big Text</title>
  </head>
 
  <body>
    <p> This is a normal text.</p> 
    <p><big> This is a big text.</big></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