Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
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.
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.
Use the 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.