HTML (Hypertext Markup Language) provides various elements and tags for formatting content on the web. Here are some common HTML formatting elements:
1. Headings (<h1> to <h6>): Used to define headings. <h1> is the largest and <h6> is the smallest.
<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<!-- ... -->
<h6>This is a Heading 6</h6>
2. Paragraph (<p>): Represents a paragraph of text.
<p>This is a paragraph of text.</p>
3. Bold (<strong> or <b>): Indicates strong importance or emphasis. By default, browsers render this text as bold.
<p>This is <strong>strong</strong> or <b>bold</b> text.</p>
4. Italic (<em> or <i>): Represents emphasized text. By default, browsers render this text as italic.
<p>This is <em>emphasized</em> or <i>italic</i> text.</p>
5. Underline (<u>): Represents underlined text. While <u> is a formatting tag, it's often recommended to use CSS for underlining.
<p>This is <u>underlined</u> text.</p>
6. Strikethrough (<s>, <strike>, or <del>): Represents text that has been struck through.
<p>This is <s>struck through</s> or <del>deleted</del> text.</p>
7. Superscript (<sup>): Represents superscript text (text appearing above the baseline).
<p>This is <sup>superscript</sup> text.</p>
8. Subscript (<sub>): Represents subscript text (text appearing below the baseline).
<p>This is <sub>subscript</sub> text.</p>
9. Line Break (<br>): Inserts a line break within text.
<p>This text is on the first line.<br>This text is on the second line.</p>
10. Horizontal Rule (<hr>): Represents a thematic break or horizontal line.
<p>This is some text above the line.</p>
<hr>
<p>This is some text below the line.</p>
These elements help structure and format content on a web page.