HTML Validation
Written by admin on May 12th, 2008 in General.
HTML Validation
HTML validation is kept under maintenance by W3.org.
HTML validation runs through your code to see if your HTML/xHTML coding is perfect and up to scratch.
To make sure your site is validated perfectly Make sure you have the following in your html document.
doc type
html tags
head tags
body tags
ommittags
DOC TYPES give the html document a type.
Example:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
The html tags are included in tis doc type.
Body tags are essential to a document as it keeps all layout coding where it is suppoed to be and lets the page know when to start displaying.
Head tags are for containing Page titles, links to style sheets and hosting css styles.
Ommittags are new to html and are considered xHTML.
They make tags close themselves without having the closing tag.
This is done by a slash “/”.
Examples are sown below:
<br /> instead of <br>
<img src=”" />
Following the steps above will make your html document valid.
You can validate your document by the
following url:
http://www.validator.w3.org