View Full Version : Missing Comma Seperator?
Cball
03-13-2007, 03:53 PM
I used the W3C CSS Validator (http://jigsaw.w3.org/css-validator/) and I only get this one error and I can't seem to figure it out. Any ideas? Thank you.
48 Missing comma separator. : url('img/test.ani')
Here is my html.
<p><a style="CURSOR:url(img/test.ani)" , href="index.html" target="_self"><font size="3" face="Arial Black"><b><i>Home</i></b></font></a><hr>
coothead
03-13-2007, 07:55 PM
Hi there Cball,
your line...
<p><a style="CURSOR:url(img/test.ani)" , href="index.html" target="_self"><font size="3" face="Arial Black"><b><i>Home</i></b></font></a><hr>
...will validate with...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
...if the highlighted comma is removed. ;)
coothead
CURSOR is not a property, you've used a lot of deprecated presentational markup, and that comma inside the HTML tag is just plain wrong. You probably want:
<p>
<a
style="
cursor: url(img/test.ani);
font-family: 'Arial Black', Arial, sans-serif;
font-size: 90%;
font-weight: bold;
font-style: italic;
"
href="index.html"
target="_self"
>
Home
</a>
<hr>Don't use point font sizes. Point font sizes don't scale well between different resolutions (they're designed to describe text on printable media, not flexible media like the Web). Use a percentage instead, where 100% refers to the font size of the parent element, and 100% of the root element is the user's default font size. The 3 in a <font> tag (which is deprecated) is probably about 80% on an average resolution, if I remember correctly. Don't use deprecated presentational markup. Presentational markup is contrary to the spirit of the standards. Even if your page validates, it's still not much good unless you ditch the "old ways" of doing things. You should use HTML 4.01 Strict, and avoid any tags or attributes that describe how something should look rather than what information it contains; aside from a few of the table-related ones like cellspacing and cellpadding, they've all been replaced by CSS. The target attribute is also deprecated, on the grounds that you shouldn't be using frames or popup windows anyway.
Cball
03-14-2007, 04:04 PM
Woohoo!!!
Thanks Twey
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.