Skip to content

Outdated website code

When a page uses tags HTML retired long ago, such as <font> and <center>, lays itself out with tables, or was exported from Microsoft Word, it shows its age.

Why it matters

Visitors take them for a site nobody has looked after in years.

How to fix it

  1. Rebuild the page with current HTML: headings, paragraphs and lists for the content, and one style sheet for its fonts, colours and layout.
  2. Keep tables for data only, with header cells (<th>), and lay the page out with CSS.
  3. If the whole site was made in Word or an old editor, move it to a maintained website builder rather than patching each page.
In code (HTML, CSS or Tailwind)
  1. Replace <font> and <center> with rules in one style sheet: font-family, color and text-align: center (Tailwind: text-center and your theme’s font and colour classes).
  2. Lay the page out with CSS grid instead of a table: display: grid; grid-template-columns: 1fr 3fr (Tailwind: grid grid-cols-[1fr_3fr]).

MDN: <center> (opens in a new tab)

Common mistakes

  • Swapping <font> for a style attribute on each line: the old tag is gone, but the styling is still scattered across the page.

Check your fix

Once the change is live, check the page again.

Want it done for you?

We’re a product design studio. We can make this fix, and check the rest of your site while we’re at it.

Book a call (opens in a new tab)