News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

XHTML validation

Started by Seph|roth, September 04, 2003, 05:53:17 PM

Previous topic - Next topic

Seph|roth

When are you allowed to claim your site to be Valid XHTML?

Because when you use the validator on W3C's site, you encounter a lot of problems.
For instance, it doesn't recognise the flash attributes (like quality=high), and tells you it's bad XHTML...

Normally i wouldn't really care, i write my stuff in Dreamweaver MX, so i assume the prog writes valid XHTML, but this is for a school project, and it HAS to be valid XHTML  ;D

So if anyone can tell me how to know for sure... thanks!


[Unknown]

You can still use quality="high", etc.... you just have to do it correctly :P.

http://validator.w3.org/

-[Unknown]

bostasp

I just usually throw the page through the validator, and then see the source and problems it throws back at me and check them, see if that works and just go through like that over and over until I get valid XHTML.


Seph|roth

Quote from: [Unknown] on September 04, 2003, 05:58:08 PM
You can still use quality="high", etc.... you just have to do it correctly :P.

http://validator.w3.org/

-[Unknown]
... meaning? ???

Spaceman-Spiff

make sure all single tags are closed with />
make sure all attributes are enclosed in double quotes

if u post your flash html code, we can tell you what's wrong with it

Seph|roth

<td width="498"><div align="center">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="490" height="150">
        <param name="movie" value="img/flash_banner.swf" />
        <param name=quality value=high />
        <embed src="img/flash_banner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="490" height="150"></embed>
      </object>
    </div></td>
.
This is how DW MX writes the code for it... i could just enclose some attributes with the required double quotes, but there are still some errors in the validator, like "there is no attribute pluginspage" and the same for height, width, type etc...

Tim

Because flash code will never be valid (arguement between Macromedia and the W3C).

Try using javascript to display the flash html, that works for me :)

Seph|roth

Quote from: Tim on September 05, 2003, 05:55:53 AM
Because flash code will never be valid (arguement between Macromedia and the W3C).

Try using javascript to display the flash html, that works for me :)
uhm... and how do you do that? ;)

Tim


Spaceman-Spiff

Quote from: Seph|roth on September 05, 2003, 05:15:08 AM
<td width="498"><div align="center">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="490" height="150">
        <param name="movie" value="img/flash_banner.swf" />
        <param name=quality value=high />
        <embed src="img/flash_banner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="490" height="150"></embed>
      </object>
    </div></td>
.
This is how DW MX writes the code for it... i could just enclose some attributes with the required double quotes, but there are still some errors in the validator, like "there is no attribute pluginspage" and the same for height, width, type etc...
not all the attributes in the code above are enclosed in double quotes
like: value=high and quality=high

Acf

my flash is valid ;) (www.theclash.nl)
Sigh...

Seph|roth

Quote from: Spaceman-Spiff on September 05, 2003, 11:17:53 AM
Quote from: Seph|roth on September 05, 2003, 05:15:08 AM
<td width="498"><div align="center">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="490" height="150">
        <param name="movie" value="img/flash_banner.swf" />
        <param name=quality value=high />
        <embed src="img/flash_banner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="490" height="150"></embed>
      </object>
    </div></td>
.
This is how DW MX writes the code for it... i could just enclose some attributes with the required double quotes, but there are still some errors in the validator, like "there is no attribute pluginspage" and the same for height, width, type etc...
not all the attributes in the code above are enclosed in double quotes
like: value=high and quality=high
i know, like i said earlier, that's the way DW MX writes flash html, but enclosing them still leaves the flash html invalid.

But Tim's post solves the problem as far as i can see, Thanks!

Advertisement: