Testing an HTML page means checking that its markup is valid, that it works in real browsers and that people using keyboards and screen readers can use it. You can cover most of this with a validator, browser developer tools, automated accessibility checks and a few simple manual passes.
This tutorial gives a short checklist you can run on any page before publishing it.
Invalid HTML is parsed differently by different browsers. Paste your page into the W3C Nu HTML Checker, or run it locally:
Typical findings are unclosed elements, duplicate id values, missing alt attributes and block elements placed inside inline ones. Fix errors first, then warnings.
Open the page in current Chrome, Firefox and Safari, and in the responsive mode of developer tools. Check layout at narrow and wide widths and with browser zoom at 200 percent. Confirm the viewport meta tag is present:
Lighthouse in Chrome DevTools and the axe browser extension report missing labels, low colour contrast and invalid ARIA. You can also run axe in a test:
Automated tools find only part of the problems, so add the manual checks below.
Confirm each page has a unique <title>, a meta description, a lang attribute and a canonical link when needed. Broken internal links hurt both users and search engines, so run a link checker on the built site.
Run the validator and the axe test on every pull request so regressions are caught early. Keep a small set of pages, such as the home page, a form page and an article, as your regression sample.
Browsers recover from many errors, but results vary. Valid markup is more predictable, more accessible and easier to maintain.
No. Automated tools catch many mechanical issues, but keyboard use and screen reader behaviour need a human check.
Test current Chrome, Firefox and Safari, plus a real phone if your audience is mobile. Check your analytics for others.
Test on every change in CI and do a manual pass before major releases.
Validate the markup, test in several browsers and screen sizes, run axe or Lighthouse, then finish with keyboard and screen reader checks. Automate the repeatable parts in CI.