✦ HTML Formatting    |    Bold · Italic · Underline · Colors · Headings · Fonts · Backgrounds · Paragraphs · Line Breaks · Horizontal Rule · Marquee    |    ✦ HTML Formatting

HTML Formatting

A comprehensive reference document · Web Development

1 · Bold Text

Regular text looks like this.
This line uses the <b> tag to make text bold.
This line uses <strong> — semantically important bold text.
You can also make a span bold with CSS font-weight:700.

2 · Italic Text

This uses the <i> tag — stylistic italics.
This uses <em> — emphasis (semantic italics).
A CSS italic span works the same way visually.

3 · Underline Text

This text is underlined using the <u> tag.
This text is underlined via CSS text-decoration.
Combining styles: underlined, bold, and italic all at once.

4 · Text Colors

■ Ruby Red (#9b1c31) — the <font color> attribute or CSS color.
■ Deep Teal (#1a6b6b)
■ Lavender (#8b5cf6)
■ Antique Gold (#c9a84c)
■ Slate (#2e3d4f)

Tags: Ruby Teal Lavender Gold


5 · Headings (h1 – h6)

Heading 1 — h1

Heading 2 — h2

Heading 3 — h3

Heading 4 — h4

Heading 5 — h5
Heading 6 — h6

6 · Font & Font Width

Font Families

Playfair Display — elegant serif display font.

Courier New — fixed-width monospace font.

Georgia italic — classic cursive-style body font.

Font Sizes

Small — 0.82rem: The quick brown fox.

Medium — 1rem: The quick brown fox.

Large — 1.35rem: The quick brown fox.

Extra Large — 1.7rem: The quick brown fox.

Font Weights (Width)

Thin (300) — The quick brown fox jumps over the lazy dog.

Regular (400) — The quick brown fox jumps over the lazy dog.

Semi-Bold (600) — The quick brown fox jumps over the lazy dog.

Bold (700) — The quick brown fox jumps over the lazy dog.


7 · Background Colors

Gold-tinted background — used for warnings or highlights.
Teal-tinted background — used for info or success messages.
Ruby-tinted background — used for errors or alerts.
Dark background with light text — inverted contrast.

8 · Paragraphs

This is the paragraph. The <p> tag creates a block of text with automatic top and bottom spacing. Each paragraph is its own self-contained unit of thought, making documents easier to read and scan.

9 · Line Breaks

Line one — no break tag yet.
Line two — after a <br> tag.
Line three — another break.
Line four — breaks do not add extra vertical space like <p> does; they simply move to the next line within the same paragraph block.

10 · Horizontal Rule

A standard <hr> below — used to separate sections of content:


Content continues after the horizontal rule. You can style <hr> with CSS to change its color, thickness, width, or turn it into a decorative element.

11 · Marquee Text

The scrolling banner at the very top of this page is produced by the <marquee> tag. It accepts direction, behavior, and scrollamount attributes.

← This marquee bounces left and right using behavior="alternate" →
✦ This marquee scrolls from left to right using direction="right" ✦

THE END