homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

Html validation problems in Dreamweaver
how to ensure I set the right Doc Type...

 4:16 pm on Nov 20, 2002 (gmt 0)


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.

Thanks Johnor



 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.



 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. :)


 10:27 pm on Nov 20, 2002 (gmt 0)

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.


 10:01 am on Nov 21, 2002 (gmt 0)

Thanks a Lot Everyone


; Johnor

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved