If you go to http://validator.w3.org/, you can upload your webpage to them and they'll validate your page. Basically valid HTML is just HTML set up in the correct format. There are different types, too. Mainly, for example, I use 4.1 Strict. A popular one is XTHML 1.0 Transitional. To define which type you use, you use what is called a DOCTYPE. For the HTML 4.1 Strict that I use, I use the DOCTYPE:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
What this does is tell the browser you're using how to interpret the HTML. Different DOCTYPES well make your webpage(s) look different. When you have sloppy HTML and/or no DOCTYPE, browsers such as Firefox and Internet Explorer interpret your HTML differently. THIS IS BAD! Therefore, with valid html and the proper DOCTYPE, you're assured that every browser sees your website the same, for the most part.
Feel free to correct me if I'm wrong, but that is my understanding of it.
Hope that helped you,
Micah
|