The W3C HTML 4.01 standards specify when style attributes are used the default 
style sheet language should be specified using a Content-Style-Type HTTP header 
or <meta> tag. See http://www.w3.org/TR/html401/present/styles.html#h-14.2.1 .

One of the validation tools I use (TotalValidator) always flags this as an 
issue in XHTML as well. The author of the toll says:
_______________________________________
The XHTML 1.0 standard is very short because it is just an extension of HTML 
4.01. The clue is in the title of the XHTML 1.0 standard: "A Reformulation of 
HTML4 in XML 1.0". So all the requirements of HTML4.01 must be met unless 
specifically excluded or changed in the XTHML 1.0 standard.

"XHTML 1.1  redefines XHTML 1.0 based on a modular design, with support for 
Ruby Annotation". That's why the XHTML 1.1 standard is even shorter than XHTML 
1.0.

Note that HTML5 is different and explicitly defines a default language (java 
script), so you don't have to.
–––––––––––––––––––––––––––––––––––––––

Yet, the W3C validation tolls never flag a missing default CSS language 
declaration as an issue when validation XHTML.  So, which is it?  Should we 
make sure our pages declare the default CSS type as we do for Javascript? Like:

<META http-equiv="Content-Style-Type" content="text/css">

–––––––––––––––––––––––––––––––––––––––

Rick Hill, Web CMS Administrator
University Communications, UC Davis




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to