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 textHTML Tag <b>
defines bold text without any importance. Just bold text.
<b>This is bold text</b>
HTML Tag <strong>
defines text with more importance, usually displayed as bold text
<strong>This is strongtext</strong>
HTML Tag <i>
defines text as italic or cursive.
<i>This is italic text</i>
HTML Tag <em>
defines emphasized text usually displayed as italic text.
<em>This is emphasized text</em>
HTML Tag <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>
HTML Tag <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 20:14:49
Source: developer.mozilla.org/