Dt. 02-02-23
HTML Text Formatting:
<b> is used to bold text, making it stand out from the surrounding text. For example:
<b>This text is bold.</b>
<i> is used to italicize text, which can be used to indicate a different tone or style of a text. For example:
<i>This text is italicized.</i>
<emp> is used to indicate text that is more important than the surrounding text, and is often displayed with an emphasized style. For example:
<emp>This text is important.</emp>
<u> is used to underline text, which is typically used to indicate a hyperlink or to draw attention to a specific piece of text. For example:
<u>This text is underlined.</u>
<strike> is used to strike through text, indicating that it is no longer relevant or has been removed. For example:
<strike>This text has been removed.</strike>
<sub> is used to create subscript text, which is the smaller text that appears slightly below the main text. For example:
<sub>2</sub>O
<sup> is used to create superscript text, which is the smaller text that appears slightly above the main text. For example:
10<sup>2</sup>
<small> is used to create smaller text, which can be used to de-emphasize text or to create additional visual hierarchy. For example:
<small>This text is smaller.</small>
<big> is used to create larger text, which can be used to emphasize text or to create an additional visual hierarchy. For example:
<big>This text is larger.</big>
<mark> is used to highlight text, indicating that it is important or relevant. For example:
<mark>This text is highlighted.</mark>
<abbr> is used to define an abbreviation, with the title attribute used to provide the full form of the abbreviation. For example, the following code:
<abbr title="Hypertext Markup Language">HTML</abbr>
Would display as "HTML", with a hover effect that shows the full form "Hypertext Markup Language".
<dfn> is used to indicate the defining instance of a term, meaning the first time it is used in a document. For example:
<dfn>HTML</dfn> is a markup language used to create web pages.
<strike> is used to strike through text, and can be used to indicate text that has been removed or is no longer relevant. For example:
This text is <strike>no longer</strike> relevant.
<ins> is used to indicate text that has been inserted into a document, and is typically used in conjunction with the <strike> tag. For example:
This text is <strike>no longer</strike> <ins>relevant</ins>.
By using these HTML text formatting tags, you can add emphasis, change the size and appearance of text, you can provide additional context and styling to your text content, and create a more visually appealing and easily readable document.