HTML Formatting
HTML Formatting:
HTML contains several Text formatting elements they are:
<i> italic Text
<B> Bold Text
<Strong> important Text
<mark> marked Text
<sub> Subscript Text
<sup> SuperScript Text
<ins> Inserted Text
<del> Deleted Text
<em> emphasized Text
<i> and <em>:
These elements are used for italic text
Example:
<i>my name is lucky</i>>
<em>my name is lucky</em>
Output:
<b> or <Strong>:
These elements are defines bold text, without any extra importance
Example:
<b>my name is lucky</b>
<strong>my name is lucky</strong>
Output:
<mark>:
This element is used to define the text that should be marked or highlighted.
Example:
<p>Don’t come to Office without <mark>formal Dress</mark></p>
Output:
<ins> and <del> elements:
<ins> element defines that text has been inserted into a document and browser will usually underline the inserted text.
Example:
<p>my favorite place to visit <ins>Kerala</ins></p>
Output:
<del> element defined that has been deleted from the document. So browser will show strike line through deleted text.
Example:
<p>my favorite place to visit <del>Kerala</del></p>
Output:
<sub> and <sup>:
<sub> element defines the subscript text that means text appears half a character below the normal line.
Example:
<p> This is my <sub>Phone</sub></p>
Output:
<sup> element defines the superscript text that means text appears half a character above the normal line.
Example:
<p> This is my <sup>Phone</sup></p>
Output: