PDA

View Full Version : W3C error


spazzer
03-15-2010, 08:22 PM
Hi,
I have used a flash newsticker in my website and have only about 6 errors in the W3C Markup Validation Service one is below, can anyone help as would like website to be validated by W3C, can anyone help ?

here is my HTML Code for the Ticker:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','763','heigh t','30','title','Flash News Ticker','src','Assets/Images/Global/newsticker','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','Assets/Images/Global/newsticker' ); //end AC code
</script>
<noscript>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="763" height="30" title="Flash News Ticker">
<param name="movie" value="Assets/Images/Global/newsticker.swf" />
<embed src="Assets/Images/Global/newsticker.swf" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="763" height="30"></embed>
</object>
</noscript>

This is the Error I get


Line 72, Column 197: there is no attribute "width" …aveFlash" type="application/x-shockwave-flash" width="763" height="30"></embed> ✉ (http://validator.w3.org/feedback.html?uri=;errmsg_id=108#errormsg)
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash (http://validator.w3.org/docs/help.html#faq-flash).

Corrosive
03-16-2010, 12:21 PM
Why is validation so important to you? Do you have display errors?

domedia
03-16-2010, 03:13 PM
What is the problem?
You copy and pasted the whole explanation W3C gave you to explain this and fix it. Did you not read it? :)

spazzer
03-16-2010, 05:14 PM
Well Pardon me for breathing !!!.
I didn't really understand the explanation given so was wondering if someone may explain what it mean't, we are not all Dreamweaver Guru's who understand everything that is in front of us, I thought that designing a site to W3C spec was the norm, obviously not !, no I don't have any display errors as far as I can see, but just wondered if there might be a remedy for this that could be explained simply, never mind !!!!!!

Regards,
NC :(

Corrosive
03-16-2010, 05:23 PM
It is basically telling you that width is not supported by the doctype you are validating to. The doctype is the declaration at the very top of your page.

I didn't mean to be flippant and it IS good practice for you to build a valid site but, honestly, it doesn't matter all that much. Think of WC3 as a tool and not a goal and you'll sleep much easier at night ;)

I know some folks here will have an issue with my stand-point but I'll wheel out the old fail-safe. Try running Google through the validator. 42 errors and 2 warnings.

Corrosive
03-16-2010, 05:24 PM
Oh and...Well Pardon me for breathing !!!.
...you are excused ;)

domedia
03-17-2010, 12:42 AM
Spazzer, read the thing you pasted, please. You'll see what I mean.

The W3C went to an (extreme) length trying to explain it to you.
I doubt anyone can give a better, clearer explanation. It is not an error message, it's a full description of the problem and what you need to do to fix it.
.. And they even throw in a link for more info!

Use validation to find important errors in your document.