Welcome to WebmasterWorld Guest from 54.145.222.231

Forum Moderators: open

Message Too Old, No Replies

Html validation problems in Dreamweaver

how to ensure I set the right Doc Type...

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

10+ Year Member



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.

Thanks Johnor

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

WebmasterWorld Senior Member 10+ Year Member



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.

Cheers

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

WebmasterWorld Senior Member digitalghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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)

10+ Year Member



Thanks a Lot Everyone

Cheers

; Johnor

 

Featured Threads

Hot Threads This Week

Hot Threads This Month