Start Validating xhtml code

Validating xhtml code

If you've always created web pages using visual authoring tools, such as Front Page or Dreamweaver, the concept of assembling a web page in a text editor might be new.

A very typical example was the summer 2009 discussion about IE 8 that fixed bad CSS implementation mistakes of IE7.

Some said that IE 8 wasn't compliant with the "IE 7 standard".

Of course it's compliant with standards that IE 7 did render. web developers don't have to create wrong IE-specific CSS mistakes anymore ...

On a side note, originally Microsoft wanted IE8 to behave like IE7 per default (i.e.

The next few sections explore the basics of creating and validating XHTML documents.

Many visual web development tools support XHTML, which means that you can certainly create XHTML web pages without having to rely on a simple text editor.

IMHO, that kind of validation is good enough for most educational sites - Daniel K. The tidy program is the most well know validation and repair program.

Since tidy is an open source library, it is also embedded in many authoring environments as well as browser extensions. (4) Many open source HTML/text editors do have an interface to tidy, but you may need to tell the program where to find this software.

a "p" within a "ul"), identify missing end tags and quotes for attributes etc.

Such tools can't find mistakes that relate to informally spelled out specifications (as opposed to more recent standards that use more powerful schema languages like XML Schemas).

Since HTML code is SGML and XHTML is XML, standard SGML and XML parsers can validate the syntax of (X)HTML pages by comparing it to a DTD.