HTML - Text Logical Style
What are Logical Text Tags
Given below are examples of text related tags that are classified as logical tags:
<em> - add emphasis to text
<strong> - add emphasis to text
<big> - increase text size
<small> - decrease text size
<sub> - display text as subscript
<sup> - display text as superscript
Examples of logical tags
Always ensure that logical tags are embedded within paragraph tag, this also provides compatibility with XHTML 1.1
<p>with <em> emphasis </em> to text </p> <p>with <strong> strong emphasis </strong> to text </p> <p>with <big> increased </big> text size </p> <p>with <small>decreased </small> text size</p> <p>with <sub> subscript </sub> text </p> <p>with <sup> superscript</sup> text </p> |
This is how it will appear in a browser |
with emphasis to text with strong emphasis to text with increased text size with decreased text size with subscript text with superscript text |
View above example output in a new browser window |