/    Sign up×
Community /Pin to ProfileBookmark

Does anyone know where I can find a complete list of CSS rules that apply only to HTML (but not to XHTML)?

to post a comment
CSS

7 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 15.2005 — I didn't know there were any. Do you have any examples?
Copy linkTweet thisAlerts:
@amazing_andr3authorApr 15.2005 — don't know any such rule, but w3c says they exist

http://www.w3.org/MarkUp/2004/xhtml-faq#css

CSS has a lot of special rules that only apply to HTML. Do these also apply to XHTML?

No. CSS rules that apply only to HTML, apply only to documents that are delivered as text/html.[/quote]
Copy linkTweet thisAlerts:
@KorApr 18.2005 — Does anyone know where I can find a complete list of CSS rules that apply only to HTML (but not to XHTML)?[/QUOTE]

I hope you don't confound CSS with XSL....
Copy linkTweet thisAlerts:
@amazing_andr3authorApr 18.2005 — I hope you don't confound CSS with XSL....[/QUOTE]
I sure don't, there's no XSL for HTML. See that link i gave above.
Copy linkTweet thisAlerts:
@Robert_WellockApr 20.2005 — CSS depends on the markup in context and XHTML is case sensitive and styles from the <html> element other than that there is little difference.

Unless you mean how you use XHTML Style Sheet links though that’s markup; <?xml-stylesheet href="" type="text/css"?>
Copy linkTweet thisAlerts:
@amazing_andr3authorApr 20.2005 — CSS depends on the markup in context and XHTML is case sensitive and styles from the <html> element other than that there is little difference.[/QUOTE]
That's just common sense to me, doesn't sound like much of a difference.

Besides, that sounds like exactly the opposite of what I was sayng (applies to XHTML but not to HTML)

The CSS specification doesn't mention anything about this supposed difference (or at least I wasn't able to find it), so I guess the "a lot of rules" expression in the document I mentioned is... well... simply wrong.
Copy linkTweet thisAlerts:
@AdamGundryApr 20.2005 — From the XHTML [url=http://www.w3.org/TR/xhtml1/#C_13]HTML Compatibility Guidelines (C.13)[/url]:
In tables, the tbody element will be inferred by the parser of an HTML user agent, but not by the parser of an XML user agent. Therefore you should always explicitly add a tbody element if it is referred to in a CSS selector.[/quote]Perhaps this is the kind of thing they are referring to? It's the only example I have been able to find, however.

Adam
×

Success!

Help @amazing_andr3 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...