Advertisement:

Author Topic: XHTML validation  (Read 13555 times)

Offline Seph|roth

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
  • Final Fantasy VII: Advent Children
    • Ultimate Weapon Fantasy Gaming Network
XHTML validation
« on: September 04, 2003, 05:53:17 PM »
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!


Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,142
  • Gender: Male
Re:XHTML validation
« Reply #1 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]

Offline Bouminok

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,205
Re:XHTML validation
« Reply #2 on: September 04, 2003, 06:16:36 PM »
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.


Offline Seph|roth

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
  • Final Fantasy VII: Advent Children
    • Ultimate Weapon Fantasy Gaming Network
Re:XHTML validation
« Reply #3 on: September 04, 2003, 06:42:05 PM »
You can still use quality="high", etc.... you just have to do it correctly :P.

http://validator.w3.org/

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

Offline Spaceman-Spiff

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,524
  • Gender: Male
Re:XHTML validation
« Reply #4 on: September 04, 2003, 07:23:55 PM »
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

Offline Seph|roth

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
  • Final Fantasy VII: Advent Children
    • Ultimate Weapon Fantasy Gaming Network
Re:XHTML validation
« Reply #5 on: September 05, 2003, 05:15:08 AM »
Code: [Select]
<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...

Offline Tim

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,857
  • Gender: Male
  • Marketing Consultant
    • tim.ceuppens on Facebook
    • http://www.linkedin.com/in/timceuppens on LinkedIn
    • @timcbe on Twitter
    • Tim Ceuppens
Re:XHTML validation
« Reply #6 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 :)

Offline Seph|roth

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
  • Final Fantasy VII: Advent Children
    • Ultimate Weapon Fantasy Gaming Network
Re:XHTML validation
« Reply #7 on: September 05, 2003, 07:47:49 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? ;)

Offline Tim

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,857
  • Gender: Male
  • Marketing Consultant
    • tim.ceuppens on Facebook
    • http://www.linkedin.com/in/timceuppens on LinkedIn
    • @timcbe on Twitter
    • Tim Ceuppens
Re:XHTML validation
« Reply #8 on: September 05, 2003, 09:51:55 AM »
here's a not useful tool, but you'll get the idea
http://javascriptkit.com/script/script2/jstohtml.shtml

Offline Spaceman-Spiff

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,524
  • Gender: Male
Re:XHTML validation
« Reply #9 on: September 05, 2003, 11:17:53 AM »
Code: [Select]
<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

Offline Acf

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,966
  • Gender: Male
  • Some people never complete there
Re:XHTML validation
« Reply #10 on: September 05, 2003, 11:24:26 AM »
my flash is valid ;) (www.theclash.nl)

Offline Seph|roth

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
  • Final Fantasy VII: Advent Children
    • Ultimate Weapon Fantasy Gaming Network
Re:XHTML validation
« Reply #11 on: September 05, 2003, 04:12:24 PM »
Code: [Select]
<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!