Monday, October 28, 2024

HTML Text Formatting

 

HTML Text Formatting

HTML Formatting Elements

1. <i> – Italicizes text

Use the <i> tag to display text in italics without implying emphasis.

<i>This is italic text.</i>

2. <small> – Reduces the font size of the text

The <small> tag renders text in a smaller font than the surrounding text.

<small>This text is smaller than the rest.</small>

3. <ins> – Highlights inserted text

The <ins> tag marks text as newly added or inserted, often displayed with an underline.

<ins>This is inserted text.</ins>

4. <sub> – Displays subscript text

Use the <sub> tag for subscripted text, often used in chemical formulas or footnotes.

H<sub>2</sub>O

5. <strong> – Emphasizes important text, often rendered in bold

The <strong> tag is semantically meaningful and indicates that the text is of high importance.

<strong>This text is bold and important.</strong>

6. <b> – Makes text bold

The <b> tag visually makes the text bold but does not imply any special significance.

<b>This is bold text.</b>

7. <mark> – Highlights text with a background color

The <mark> tag highlights text with a background color, similar to using a highlighter on paper.

<mark>This text is highlighted.</mark>

8. <del> – Strikes through text

The <del> tag is used to show that text has been deleted or is no longer relevant.

<del>This text is crossed out.</del>

9. <em> – Emphasizes text, typically italicized

The <em> tag is used for emphasized text and is usually rendered in italics to highlight importance.

<em>This text is emphasized.</em>

10. <sup> – Displays superscript text

Use the <sup> tag to show superscripted text, commonly used in exponents or footnotes.

E = mc<sup>2</sup>


No comments:

Post a Comment

INFORMATION

 VINAYAL SHEET 35 PER SHEET WITH CUTTNG PH-2 PANCHKULA PIXAL  PASSPORT PHOTO SIZE 3.5 X 4.5 ==110 STAMP  SIZE     1.06/ 0.87