Guides · HTML

Naming HTML pages properly

A well-named page leads to URLs that are easier to read, more stable over time, and clearer for both users and search engines.

Why a page name matters

The name of an HTML file often shapes the final URL. A label that is confusing, too long, or filled with special characters can make a page less clear, more fragile technically, and less pleasant to share.

A clean page name will not improve rankings on its own, but it strengthens the overall consistency of the site and makes the link easier to read in a browser, a SERP, or an analytics tool.

Rules worth applying

Choose a clear and explicit name

The name should summarise the main topic of the page. Someone reading only the URL should already understand what the page is about.

Use hyphens and lowercase

Hyphens are easier to read than underscores, and lowercase reduces the risk of inconsistencies between environments or servers.

Avoid accents, spaces, and special characters

Accented characters, spaces, apostrophes, or symbols make URLs harder to encode and increase the risk of errors during sharing or deployment.

Keep it short, but descriptive

There is no need to stack keywords. Aim for a short, useful phrase that stays consistent with the rest of the project.

Keep one naming logic across the whole site

When every page follows the same naming convention, maintenance becomes simpler and the site feels more readable.

Good and bad examples

Good examples

audit-express-site-web.html

Clear, readable, and consistent.

optimisation-on-page.html

Simple, descriptive, and easy to share.

contact.html

Short, standard, and instantly understandable.

Avoid

Page finale V2.html

Spaces, uppercase letters, and an unstable naming logic.

seo_page_pour_google.html

Underscores and wording that feels too heavy.

à-propos!!.html

Unnecessary accents and special characters.

Mini checklist before publishing

  • The name is understandable without opening the page.
  • Everything is in lowercase.
  • Words are separated with hyphens.
  • There are no accents, spaces, or special characters.
  • The file name stays short and consistent with the rest of the site.

Conclusion

Naming an HTML page properly is a small decision with very concrete effects: cleaner URLs, simpler maintenance, and stronger SEO consistency. It is a discreet foundation, but a structuring one.