HTML Text Formatting



Numerous tags are available in HTML (Hypertext Markup Language) for text formatting. You may manage how text appears on a webpage with these tags. Several popular HTML tags for text formatting are as follows:

1. Title Tags (<h1>–<h6>):

  • On a webpage, headings are defined by these tags. The biggest element is <h1>, while the smallest is <h6>.

2. Tag for Paragraph (<p>):

  • The paragraph is defined by the <p> element.

3. Bold Text (<strong> or <b>):

  • The <strong> and <b> tags are used to bold text.

4. Text in italics (<i> or <em>):

  • Text may be made italic by using the <i> and <em> tags.

5. Text Underlining (<u>):

  • Text can be underlined by using the <u> element.

6. Text with strikethrough (<s> or <del>):

  • Strikethrough text is made with the <s> and <del> tags.

7. <sup> and <sub>, or superscript and subscript,:

  • For superscript text, use the <sup> element; for subscript text, use the <sub> tag.

8. Line Break (<br>):

  • To add a line break, use the <br> element.

9. Linear Horizontal (<hr>):

  • A horizontal line is created with the <hr> element.

10. Font Size (<font>):

  • You may set the color and size of text with the <font> tag, albeit this is not advised for current web construction.


These are the fundamental HTML tags for text formatting. Remember that HTML is meant to be used for content structure and CSS (Cascading Style Sheets) for style and formatting in current web development.


Post a Comment

Previous Post Next Post

Popular Items

HTML Table Sizes :

HTML Fevicons

CSS Syntax :