473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

W3c Validation

Well i have checked my style shit with w3c validating service but it
still showing some error the thing is i dont understand what shall i
do to correct it i want some toool which ll correct my style sheet
well here is the result of w3c
well i dont understand what to coorect my style sheet

------------------Here is what w3c says------------------
W3C CSS Validator Results for file://localhost/C:\Documents and
Settings\Administrator\Desktop\win.css
To work as intended, your CSS style sheet needs a correct document
parse tree. This means you should use valid HTML.

Warnings
URI : file://localhost/C:\Documents and
Settings\Administrator\Desktop\win.css
Line : 0 font-family: You are encouraged to offer a generic family as
a last alternative
-----------------------------------xxx------------------------

Here is my style sheet

----------------------------------Style Sheet---------------------

a:link { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; color: #006699; text-decoration: none}
a:visited { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; color: #006699; text-decoration: none}
a:hover { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; color: #006699; text-decoration: underline}

..tah10 {
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
text-decoration : none;
color : #000000;
}

..tah11 {
font-family : Tahoma ,Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
text-decoration : none;
color : #000000;
}

..ver10 {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
text-decoration : none;
color : #000000;
}

..ver11 {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
text-decoration : none;
color : #000000;
}

..tah9 {
font-family : Tahoma;
font-size : 9px;
text-decoration : none;
color : #000000;
}

..ver9 {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 9px;
text-decoration : none;
color : #000000;
}

..button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
border-color : #ffffff #666666 #666666 #ffffff;
background-color : #ffffff;
border-style : solid;
border-top-width : 1px;
border-right-width : 1px;
border-bottom-width : 1px;
border-left-width : 1px;
}

..bt {
border-left : 1px inset #000000;
border-right : 1px inset #000000;
border-top : 1px inset #000000;
border-bottom : 1px inset #000000;
font-family : verdana, tahoma;
font-size : 12px;
color : #000080;
}

---------------------------------------------xxx------------------

PLease let me know what shall i do to correct it i mean let the w3c
say that its right..
Kaustubh
Jul 20 '05 #1
6 2750
Kaustubh wrote:
Well i have checked my style shit with w3c validating service but it
still showing some error the thing is i dont understand what shall i
do to correct it i want some toool which ll correct my style sheet
well here is the result of w3c
well i dont understand what to coorect my style sheet


font-family: You are encouraged to offer a generic family as
a last alternative

If you check your font-family definitions, you will see that for most of
them you have a generic family ("sans-serif") but for the entry with
Tahoma you do not, I suggest you add "serif" to that entry and the
validator should be happy, too.

--
Klaus Johannes Rusch
Kl********@atmedia.net
http://www.atmedia.net/KlausRusch/
Jul 20 '05 #2
On Sat, 03 Jul 2004 16:38:34 +0000, Klaus Johannes Rusch
<Kl********@atmedia.net> wrote:
Kaustubh wrote:
Well i have checked my style shit with w3c validating service but it
still showing some error the thing is i dont understand what shall i
do to correct it i want some toool which ll correct my style sheet
well here is the result of w3c
well i dont understand what to coorect my style sheet


font-family: You are encouraged to offer a generic family as
a last alternative


but IMO this is very wrong, feel free to ignore it, no-one will be
harmed, and some people may be more likely to get what they want.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3
On 3 Jul 2004 09:33:19 -0700, Kaustubh <ch*********@rediffmail.com> wrote:
Well i have checked my style shit with w3c validating service but it
still showing some error the thing is i dont understand what shall i
do to correct it i want some toool which ll correct my style sheet
well here is the result of w3c
well i dont understand what to coorect my style sheet
...
Warnings
URI : file://localhost/C:\Documents and
Settings\Administrator\Desktop\win.css
Line : 0 font-family: You are encouraged to offer a generic family as
a last alternative
...
.tah9 {
font-family : Tahoma;
font-size : 9px;
text-decoration : none;
color : #000000;
}


There ya go. No generic listed.

Try font-family : Tahoma, sans-serif;
Jul 20 '05 #4
On Sat, 3 Jul 2004, Klaus Johannes Rusch wrote:
font-family: You are encouraged to offer a generic family as
a last alternative
Note that this is only an optional warning from the CSS "validator":
it's not, strictly speaking, an error in the CSS, but rather, a usage
recommendation.

This advice on usage indeed appears in the CSS specification, see e.g
http://www.w3.org/TR/REC-CSS2/fonts....nt-family-prop
and this is still present in CSS 2.1

However, the behaviour of actual browser implementations has been
quite mixed, and readers need to be aware that this advice does not
enjoy universal acclaim. Some contributors would come down in favour
of simply ignoring the advice; others (amongst which I'd count myself)
would usually follow the advice, but be prepared to ignore it in
particular situations. Read around the subject, past discussions
etc., before forming your own considered view on this issue.
If you check your font-family definitions, you will see that for most of
them you have a generic family ("sans-serif") but for the entry with
Tahoma you do not, I suggest you add "serif" to that entry and the
validator should be happy, too.


I'd want to be pedantic here, and deprecate the use of the term
"validation" in reference to what, here, is more in the nature of a
usage recommendation; the term "validation" is properly reserved for a
precise procedure carried out against a formal specification.

These kinds of warnings can be very useful, don't get me wrong: but
I'd prefer them to be categorised in a way which clearly delimits them
from the more formal part of syntax analysis.
Jul 20 '05 #5
Kaustubh wrote:
Well i have checked my style shit with w3c validating service but it
still showing some error .ver9 {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 9px;
}

.button {
font-size : 12px; PLease let me know what shall i do to correct it i mean let the w3c
say that its right..


The font-family issue is dubious. However, you do have problems to
correct. Stop using pixels to size fonts. Use percentages instead.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #6
Kaustubh wrote:
.tah10 {...}
.tah11 {...}
.ver10 {...}
etc...


Can I suggest that you improve your class names? Several people have
already told you how to fix your validation problem, but a bigger
problem is that your class names are very presentational. The purpose
of using CSS is to seperate structure and content from presentation,
however when you include presentational class names, your simply adding
another layer to the mess, and not really seperating anything. What
happens later when you decide that you want a different font or size for
one section? Do you go and change your classnames in all your
documents, or do you just change the style sheet? Ideally, you would
just change the style sheet and it would still make sense, but they way
you have it, it doesn't make sense to change the font family or size
without changing the class name.

This WAI Tip, Use class with semantics in mind [1], has a much better
explanation than I have given.
[1] http://www.w3.org/QA/Tips/goodclassnames

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
2
by: wumingshi | last post by:
Hi, When validating an XML instance, sometimes the schema is not enough to expression the validation rules. Additional validation rules may be expressed in an application-specific way. For...
4
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
6
by: Stephen | last post by:
Hi, the validation controls dont work on Netscape or Mozilla and only on Internet Explorer why? How do i correct this problem? Thanks
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
2
by: dustbort | last post by:
I recently had a problem where my required field validator stopped working. But, the page still posted back and tried to insert a record into the database without performing server-side validation....
6
by: Jon Paal | last post by:
validation doesn't fire what's missing ????? /////// ---- code -----/////////////////////////// Sub btnSubmit_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) 'Handles...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.