HTML defines the different style of Text Formatting and every single Element have a special meaning. Like, <b> Elements in used to define Bold text and <i> Elements is used to define Italic text. HTML contains many elements to useÂ in text formatting.
In the Source Code, Comments is used to write the description. It is much helpful to read the source code. Comments in HTML start withÂ Â Â <!– Â Elements and End with –>. Browser ignores the comments at runtime. TheÂ Browser does not show it in the output result. You can also use multiline comments in HTML.
The source code of Text Formatting | Comments
<!-- This is Comments -->
<!--Bold Text -->
<b> This is <mark>Bold</mark> text </b><br>
<!-- Italic Text -->
<i> This is Italic Text </i><br>
<!-- Strong Text -->
<strong> This is strong Text </strong><br>
<!-- To Show Deleted Text -->
<p> This <del>text</del> is Deleted </p><br>
<!-- Superscripts -->
<p> This is <sup>superscripts</sup> text </p>
<!-- Subscripts -->
<p> This is <sub>suberscripts</sub> text </p>
The HTML Tag <sub> is used to define subscripts Text.
<p> This Â <sub> text </sub> is subscripts. </p>
Output: This Â text is subscripts.
To get the list of Text formatting Elements, write simple query at your search engine as â€œHTML Text Formatting Listâ€.
HTML Text Formatting and Comments LEC 7 in Urdu/Hindi
I hopeful, this article is very helpful to understand the basic concept of â€œHTML Text Formatting | Comments â€œ. You can also learn about CSS3, PHP7, and Computer Graphic. Give your Feedback. Thanks.