Welcome to WebmasterWorld Guest from 22.214.171.124 , register , login , search , subscribe , help , library , PubCon , announcements , recent posts , open posts Accredited PayPal World Seller
Html validation problems in Dreamweaver how to ensure I set the right Doc Type... Johnor msg:936601 4:16 pm on Nov 20, 2002 (gmt 0) Hi
Anyone now how I ensure that whilst using a vendor's program(dreamweaver) to creatwebpages that all of the elements I use are Valid to the Doc Type for eg.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
When I Use a html validator to validate my code I am told that there is 'no attribute left margin'.
My basic grasp is that the software I am using is allowing me to insert code that is not part of the DOCTYPE that it generates.
Am I wrong?
How do fix this, have my html valid?
Any help very much appreciated.
ukgimp msg:936602 4:44 pm on Nov 20, 2002 (gmt 0)
You can alter the default template so that it includes a doctype and I believe there is an extension on the echange that will include a doctype for you if you want to do it that way.
In some cases though you will simply have to not use things like leftmargin and do the same using CSS. Pain in the a## but what can you do.
digitalghost msg:936603 4:45 pm on Nov 20, 2002 (gmt 0)
Leftmargin is an IE/MS proprietary tag. It will NEVER validate. Have to break out the CSS. :) g1smd msg:936604 10:27 pm on Nov 20, 2002 (gmt 0)
HTML validator [ validator.w3.org] to help you correct tag and attribute typing errors, unclosed tags, missing information, and tag nesting errors. Don'y worry if you include a few browser specific tags and attributes in your code, unless you want to get into CSS. Johnor msg:936605 10:01 am on Nov 21, 2002 (gmt 0)
Thanks a Lot Everyone