Text Formatting in html |formating kaise de html me 


Youtube


Here are some common text formatting tags in HTML:

1. *Bold* - `<b>` or `<strong>`

    - Example: `<b>This text will be bold</b>`

2. *Italic* - `<i>` or `<em>`

    - Example: `<i>This text will be italic</i>`

3. *Underline* - `<u>`

    - Example: `<u>This text will be underlined</u>`

4. *Strike-through* - `<s>` or `<strike>`

    - Example: `<s>This text will be struck-through</s>`

5. *Superscript* - `<sup>`

    - Example: `<sup>This text will be superscript</sup>`

6. *Subscript* - `<sub>`

    - Example: `<sub>This text will be subscript</sub>`

7. *Font size* - `<font size="number">`

    - Example: `<font size="5">This text will be larger</font>`

8. *Font color* - `<font color="color">`

    - Example: `<font color="red">This text will be red</font>`

9. *Alignment* - `<p align="alignment">`

    - Example: `<p align="center">This text will be centered</p>`

Note:

- The `<b>`, `<i>`, and `<u>` tags are deprecated in HTML5 and should be replaced with `<strong>`, `<em>`, and `<span style="text-decoration: underline;">` respectively.
- The `<font>` tag is also deprecated in HTML5 and should be replaced with CSS styling.
- It's recommended to use CSS for text formatting instead of HTML tags for better control and flexibility.