Re: [WSG] Default style declaration?
On 14 Jan 2011, at 18:40, Richard R. Hill wrote: > > Yet, the W3C validation tolls never flag a missing default CSS language > declaration as an issue when validation XHTML. The W3C Validation Service is a generic SGML/XML validator, not an HTML conformance checker. It doesn't check for things that are not expressed in the DTD (which this isn't, and couldn't be). > Should we make sure our pages declare the default CSS type as we do for > Javascript? If you use style attributes (which you shouldn't) or fiddle the style.* properties with JavaScript (which you shouldn't unless you need to deal with a wide range of values, such as when you are animating), then the spec requires that you do so. (Although this will, IIRC, change for (X)HTML 5). > Like: > > since you said XHTML. -- David Dorward http://dorward.me.uk *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] Default style declaration?
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 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: ––– 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: memberh...@webstandardsgroup.org ***