HighDots Forums  

Re: Whic DOCTYPE should I use?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Whic DOCTYPE should I use? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dross202
 
Posts: n/a

Default Re: Whic DOCTYPE should I use? - 11-09-2004 , 12:56 PM






I was the link http://gutfeldt.ch/matthias/articles/doctypeswitch.html> But, i
figured it out - there was an extra > on the end. Also, I tried the strict
doctype, validated it and it came back with a couple errors - 1st was about
the javascript line - next was about borders of 0 on the navigation buttons -
So, I changed to the transitional doctype and it validated perfectly. -David


Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Whic DOCTYPE should I use? - 11-09-2004 , 01:48 PM






.oO(dross202)

Quote:
I was the link http://gutfeldt.ch/matthias/articles/doctypeswitch.html> But, i
figured it out - there was an extra > on the end.
OK, looks like a webforum issue again, if the '>' becomes part of the
link ...

Enclosing a URL with <> is allowed (and sometimes necessary to keep
newsreaders from breaking lines, that's why I use it), since these
characters are delimiters and not allowed inside a URL.

Quote:
Also, I tried the strict
doctype, validated it and it came back with a couple errors - 1st was about
the javascript line
The language-attribute is deprecated.

Quote:
- next was about borders of 0 on the navigation buttons -
Also possible with CSS and the 'border' property:

a img {border: 0}

Quote:
So, I changed to the transitional doctype and it validated perfectly. -David
Fair enough, but you should at least try to be strict. It's cleaner code
and better markup.

OK, sometimes it could be necessary to stay with the transitional DTD to
take care of some older browsers (I don't know if JavaScript will work
without the language-attribute in NN4 for example). But personally I
would always go with the strict DTD, as long as the site is still usable
in older browsers (even if some additional features might be missing).

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.