A web page will have validation errors because it deviates from the spec. Some of the most common errors will be listed here along with how to fix them.

If you would like to explore further, we can recommend the HTML Living Standard hosted by the WHATWG and HTML: The Markup Language hosted by the W3C