HTML contains several tags for formatting text:
<b>- Bold text
<i>- Italic / Cursive text
<strong>- Important text
<em>- Emphasized text
<mark>- Marked text
<small>- Smaller text
<del>- Deleted text
<ins>- Inserted text
<sup>- Superscript text
<sub>- Subscript text
<b> defines bold text without any importance. Just bold text.
<b>This is bold text</b>
<strong> defines text with more importance, usually displayed as bold text
<strong>This is strongtext</strong>
<i> defines text as italic or cursive.
<i>This is italic text</i>
<em> defines emphasized text usually displayed as italic text.
<em>This is emphasized text</em>
<sub> specifies inline text which should be displayed as subscript for solely typographical reasons. Subscripts are typically rendered with a lowered baseline using smaller text. This element can be use for example in chemical formula: H2O.
<sub>This is subscripted text</sub>
<sup> specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text. Usually used in mathemtical formulas as example: a2
<sup>This is emphasized text</sup>
By: Tomas Silny
Edited: 2020-11-06 21:14:49