- From: John Whelan <whelan@itp.unibe.ch>
- Date: Mon, 21 Sep 1998 11:30:55 -0400 (EDT)
- To: www-html@w3.org
Susan Letsch advises, on marking up language changes: > In the next two cases, the CLASS or ID "noten" (an arbitrary name here, > signifying "not English") could be set to display any way you like, > using CSS style (or if no style is specified or stylesheets are turned > off, the Latin will be in the same style and font as the English) [3]: > What Godfrey did not know was that a shield is the > <span class="noten" lang="la">sine qua non</span> of sparring. > Thus, he died. > What Godfrey did not know was that a shield is the > <span id="noten" lang="la">sine qua non</span> of sparring. > Thus, he died. Note that in CSS2 you can also set the style for all instances of a particular language at once, e.g. <http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors>: *[lang="la"] {font-style: italic} or, if you want to include all dialects of latin *[lang|="la"] {font-style: italic} or, equivalently <http://www.w3.org/TR/REC-CSS2/selector.html#lang>: :lang(la) {font-style: italic} John T. Whelan whelan@iname.com http://www.slack.net/~whelan/
Received on Monday, 21 September 1998 11:38:13 UTC