HOW TO USE FORMATTING TAGS

          

HTML provides various formatting tags to style and format text. Here are some commonly used formatting tags in HTML:

1.<b>: Bold text.

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

2.<i>: Italic text.

Example: <i>This text is italicized.</I>

3.<u>: Underlined text.

Example: <u>This text is underlined.</u>

4.<s>: Strikethrough text.

Example: <s>This text is strikethrough.</s>

5.<sup>: Superscript text.

Example: E = mc<sup>2</sup>

6.<sub>: Subscript text.

Example: H<sub>2</sub>O

7.<mark>: Highlighted text.

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

8.<strong>: Strong emphasis (similar to <b>).

Example: <strong>This text is strongly emphasized.</strong>

9.<em>: Emphasized text (similar to <i>).

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

Example: <small>This text is smaller.</small>

11.<big>: Larger text size.

Example: <big>This text is larger.</big>

12.<pre>: Preformatted text, maintaining whitespace and line breaks.

Example:

<pre>

This text

maintains whitespace

and line breaks.

</pre>


     These are just a few examples of text formatting tags in HTML. It's important to note that the visual appearance of these tags may vary depending on the CSS styles applied to the page.

Comments

Popular Posts