Topic: Validating XHTML Pages that link to <a href="https://ozoneasylum.com/backlink?for=29591" title="Pages that link to Topic: Validating XHTML" rel="nofollow" >Topic: Validating XHTML\

 
Author Thread
Radical Rob
Paranoid (IV) Inmate

From: Lost Angeles Kalifornia, via Hawaii....
Insane since: Jun 2001

IP logged posted posted 10-03-2007 22:36 Edit Quote

So I've begun the process of debuging my site to be complient with W3C and it's taken me all after noon to get to where I'm at now.
I've gone from like 80 errors down to 2 and can't figure out how to eliminate these two errors using CSS.

Here is the Markup Report:



Validation Output: 2 Errors

1. Error Line 44, Column 11: there is no attribute "align" .

<div align="center">

&#9993;

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.
2. Error Line 60, Column 68: there is no attribute "target" .

?ermons.php?secID=65&amp;mp=2" target="_self"> <img src="http://www.caicc.net/

&#9993;

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.


On the line that has the div align="center" that is the only way I could figure out how to center the calendar element. I tried using margin-left: auto, margin-right: auto but it doesn't work as I need a 30px margin on the left.

flazza
Paranoid (IV) Inmate

From:
Insane since: Jan 2005

IP logged posted posted 10-03-2007 22:44 Edit Quote

link to the actual page?

Radical Rob
Paranoid (IV) Inmate

From: Lost Angeles Kalifornia, via Hawaii....
Insane since: Jun 2001

IP logged posted posted 10-03-2007 23:15 Edit Quote

I actually figured it out! WHOOHOO!! VALID AT LAST!!!

www.caicc.net

Thanks though flazza!

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 10-03-2007 23:19 Edit Quote

Indeed there is no attribute align in XHTML. Use CSS for that: text-align:center; You can also use margin:auto; if the element is in display:block;

&#9993; Do you really need to use unicode for that ? Not all/many fonts have include the dingbats characters. It won't hurt to remove this character, and maybe use a background image and a padding to get a similar effect.

But as Flazza said, a link would help.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu