HTML Text Formatting
In HTML, we can show lines and words in different ways with the help of elements.
Example
we can bold text using the <b> tag in HTML
<b> Hello Hacktube5 </b>
also, we can use the <strong> element to bold the text
<strong> Hello Hacktube5 </strong>
All examples
TAG | DEFINITION |
---|---|
<b> | Defines bold text |
<em> | Defines emphasized text |
<mark> | Defines marked/highlighted text |
<sub> | Defines subscripted text |
<strong> | Defines important text |
<small> | Defines smaller text |
<del> | Defines deleted text |
<ins> | Defines inserted text |
<sup> | Defines superscripted text |
<i> | Defines a part of text in an alternate voice or mood |