answersLogoWhite

0

By validating HTML against the W3C's published standards, you can assure that a browser that complies with those standards will be able to properly understand the code you have written.

Non-standard code causes modern browsers to go into "Quirks Mode." In quirks mode, the browser takes a best guess at what the author of the HTML document intended. Because this is just a guess, different browsers can arrive at drastically different interpretation of the non-standard code. Worse yet, a new version of the same browser might arrive at a different way of seeing the broken code.

Validation let's you rely (in theory) on the fact that standards compliant browsers will display standardized code the same way. It also ensures that future changes to the browsers themselves will not have a negative impact on your existing code.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra

Add your answer:

Earn +20 pts
Q: What are the reasons for validating a HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp