Skip to content

URL Slug

Entry #101 / 700 · Chapter 3 · 3.1 Core HTML tags and clean URLs
In one sentence

The final segment of the URL, the part you choose, usually derived from the title.

Analogy Mental model

The label on a folder. One glance tells you what is inside without opening it.

In practice What you actually do

Keep only what identifies the page. A headline reading ten best coffee makers of 2026, expert tested becomes best-coffee-makers. The number, the year and the adjectives belong in the title, not the address.

Where people get burned Pitfalls

Filler words and years age badly. A slug ending in 2024 reads as stale in 2026, and changing it later breaks every link and share. Leave the year out unless the page is genuinely rebuilt on a new URL each year.

This entry was written in English from the Chinese original, not machine-translated. Read the Chinese version →