HTML Formating

HTML Formating formatting includes the font style, bold, italic, strong, small, code, Mark.

The  MARK  element is used to mark or highlight the text in an HTML document for reference purposes. The style attribute of the MARK element is used to set the color with which you want to highlight the text. You can also change the font style and font size of the marked text. If the style attribute is not defined , then no highlighted text is displayed.


HTML uses physical style elements to change the appearance of text. if you want your text to appear in a particular style, such as bold or italic, you must use physical style elements.

  • The B Element – Displays the text in bold
  • The I Element – Displays the  text in italics
  • The SMALL Element – Displays the text  in small font size.
  • The SUB Element- Displays the text as subscript
  • The SUP Elements – Displays the text as superscript


Example of Physical style elements.

</head><title>HTML Formatting.</title></head>
<p><b>Displays the text in bold.</b></p>
<p><i>Displays the text in italics.</i></p>
<p><small>Displays the text in small font size.</small></p>
<p><sub>Displays the text as subscript</sub></p>
<p><sup>Displays the text as superscript</sup></p>

Display keyboard Text:

HTML uses the KBD element to specify that the enclosed text refers to a key on the keyboard. The exact appearance of the enclosed text depends upon the the web browser.

Strong Element:

The STRONG element makes the enclosed text thicker and slightly bigger than the surrounding.

Text. The text written in the STRONG  element appears similar to the text written with the B Element.

<HEAD><TITLE> The Strong Element.  </TITLE>



<P>The strong is used to give thickness . HTML is very easy  learning Language.For web page design we use STRONG The HTML Language. Which play a important Role.


< /BODY>


Result is:


Follow Us

Contact Us

Back to Top