- HTML Tutorial
- HTML Introduction
- HTML Editors
- HTML Basic
- HTML Comments
- HTML Elements
- HTML Attributes
- HTML Id & Classes
- HTML Skeletal Tags
- HTML Heading Tags
- HTML Paragraph Tag
- HTML Line Break Tag
- HTML Pre Tag
- HTML Anchor Tag
- HTML Image Tag
- HTML Horizontal Line Tag
- HTML Inline & Block
- HTML Inline
- HTML Block
- HTML LInks
- HTML Images
- HTML Formatting
- HTML Head
- HTML Head
- HTML Title
- HTML Meta Elements
- HTML Favicon
- HTML Style
- HTML List
- HTML Lists
- HTML Unordered List
- HTML Ordered List
- HTML Description List
- HTML Table
- HTML Tables
- HTML Table Headers
- HTML Table Styling
- HTML Table Colgroup
- HTML Form
- HTML Forms
- HTML Form Elements
- HTML Form Attributes
- HTML Input Types
- HTML Input Attributes
- HTML Form Actions
- HTML Semantic
- HTML Semantics
- HTML Graphics & Media
- HTML Canvas
- HTML SVG
- HTML Video & Audio
- HTML Plug-ins
- iFrames in HTML
- HTML Miscellaneous Tags
- HTML Code Tag
- HTML Entities
- HTML Quotation
- HTML Global Attributes
- HTML Obsolete Tags
- HTML Emojis
- HTML Symbols
- HTML Events
- HTML Colors
HTML Formatting
HTML formatting refers to the ways you can style and structure your content within an HTML document. Here are some common HTML formatting elements along with examples:
- Headings (<h1> to <h6>):
<h1>This is a Heading Level 1</h1>
<h2>This is a Heading Level 2</h2>
<h3>This is a Heading Level 3</h3>
<!-- and so on up to <h6> -->- Paragraphs (<p>):
<p>This is a paragraph of text.</p>- Bold Text (<strong> or <b>):
<strong>This text is bold using <strong>.</strong>
<b>This text is bold using <b>.</b>- Italic Text (<em> or <i>):
<em>This text is italicized using <em>.</em>
<i>This text is italicized using <i>.</i>- Underlined Text (<u>):
<u>This text is underlined using <u>.</u>- Strikethrough Text (<s> or <del>):
<s>This text has a strikethrough using <s>.</s>
<del>This text has a strikethrough using <del>.</del>- Superscript and Subscript (<sup> and <sub>):
X<sup>2</sup> <!-- X squared -->
H<sub>2</sub>O <!-- Water (H2O) -->- Inline Code (<code>):
Use the `<code>` element for inline code snippets.- Blockquote (<blockquote>):
<blockquote>
This is a blockquote. It is often used for quoting text from another source.
</blockquote>- Horizontal Rule (<hr>):
<p>Some text above</p>
<hr>
<p>Some text below</p>- Line Break (<be>):
This is<br>a line<br>break example.These HTML formatting elements allow you to structure your content visually and semantically. You can combine these elements and use CSS for more advanced styling and customization.