Forum Moderators: open

Message Too Old, No Replies

which doctype?

         

natty

3:58 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



hi folks,

ive been messing with my webby for a bit now on and off, and am trying to make it work well, and look nice etc.
i was wanting to validate it with the w3c(?) validator but ...
i cant do this because i dont know what sort of 'code' ive been writing..
ie xhtml 1.0 trans or whatever..
none of these mean anythig to me. my site uses css and , now i come to thjink about it, not alot else.

<sorry, no urls>

any ideas what ive been doing so that i can set the doctype correctly for whatever reasons this needs to be done for.
confused..? well think how i feel ;)

cheers as ever

nat

[edited by: tedster at 6:17 pm (utc) on April 3, 2003]

leoo24

4:24 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



looks like you have plain old html 4.01 trans, try:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

and this is the most common enctype

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

WebJoe

4:24 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



your page would probably go as

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd">

add content-type also while you're at it:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

but it still has too many errors to validate as such.

natty

6:30 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



why does it hate all the flash html lines.. these are what flash generated. are they wrong?!?!?

and there is a opening form tag, and i thought you could use the same id to position stuff with css..?

thanks

nat

g1smd

10:45 pm on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What sort of error messages are you getting, and for which lines of code?

natty

11:51 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



Line 40, column 15: there is no attribute "SRC" (explain...).
<EMBED src="menu.swf" quality=high bgcolor="#FFFFFF" WIDTH="125" HEIGHT="12
^
Line 40, column 34: there is no attribute "QUALITY" (explain...).
<EMBED src="menu.swf" quality=high bgcolor="#FFFFFF" WIDTH="125" HEIGHT="12
^
Line 40, column 47: there is no attribute "BGCOLOR" (explain...).
... src="menu.swf" quality=high bgcolor="#FFFFFF" WIDTH="125" HEIGHT="122" NAME
^
Line 40, column 64: there is no attribute "WIDTH" (explain...).
...uality=high bgcolor="#FFFFFF" WIDTH="125" HEIGHT="122" NAME="menu" ALIGN=""
^
Line 40, column 77: there is no attribute "HEIGHT" (explain...).
...gcolor="#FFFFFF" WIDTH="125" HEIGHT="122" NAME="menu" ALIGN="" TYPE="applica
^
Line 40, column 88: there is no attribute "NAME" (explain...).
...FFFF" WIDTH="125" HEIGHT="122" NAME="menu" ALIGN="" TYPE="application/x-shoc
^
Line 40, column 101: there is no attribute "ALIGN" (explain...).
..."125" HEIGHT="122" NAME="menu" ALIGN="" TYPE="application/x-shockwave-flash"
^
Line 40, column 109: there is no attribute "TYPE" (explain...).
...IGHT="122" NAME="menu" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSP
^
Line 40, column 153: there is no attribute "PLUGINSPAGE" (explain...).
...ation/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashpl
^
Line 40, column 198: element "EMBED" undefined (explain...).
...www.macromedia.com/go/getflashplayer"></EMBED>

natty

9:46 am on Apr 4, 2003 (gmt 0)

10+ Year Member



also having changed the doctype to the above, now stuff is not centering as it used to .. arrrggg

lorax

12:55 pm on Apr 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



natty,
I believe the EMBED tag is not a valid (read: standard) element tag as far as HTML 4.01 is concerned. Try using the OBJECT tag instead - like this:
<OBJECT data="menu.swf" type="application/x-shockwave-flash"> </OBJECT>

W3C's DTD on HTML 4.01 Transitional [w3.org]

[edited by: lorax at 1:01 pm (utc) on April 4, 2003]

gingerbreadman

1:01 pm on Apr 4, 2003 (gmt 0)

10+ Year Member



Do a search on google for 'flash satay' if you want to know about flash code that validates.

I found it quite useful.