philgyford / pepysdiary

Code for PepysDiary.com
https://www.pepysdiary.com
15 stars 6 forks source link

Tidy up the HTML? #803

Open jameshibbard opened 1 month ago

jameshibbard commented 1 month ago

Running the site's main pages through the W3C validator throws up a couple of validation errors that would be relatively easy to fix.

Example for the "All diary entries" page: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.pepysdiary.com%2Fdiary%2F

This also highlights a couple of semantic issues (e.g. multiple h1 elements in the footer) that would likewise be easy to address.

I'm not sure how important HTML validation is in 2024, but as we are using templates, fixing the low-hanging fruit would improve things across the site.