Jukka K. Korpela wrote: > Tudor Hariton wrote: > >> If you use CSS the sequence /*<font face="Helvetica" size="3"> */must >> not be written in you html code... > > That's incorrect. The use of CSS does not affect the least the issue > what you are allowed to write in your HTML code. Some people and > organizations, including the W3C, say that you should not use such > presentational markup and should use CSS instead, but this is _not_ a > "must not" thing and it's not _because_ of the use of CSS.
Jukka, it is *very* correct. If you want the CSS to change the font face of a paragraph, *you cannot have a <font> tag inside it setting the font.* It has nothing to do with whether or not you're using presentational markup vs CSS. Browsers render things according to the *most specific rendering instructions* that apply at a given point in a document - and *nothing* is more specific than a font tag enclosing a piece of text. Or the CSS equivalent, a <span style='font:BlahBlahWoofWoof;">text I want to change using my stylesheet,</span> construction that could also be enclosing the text in a paragraph. But I think even that would be overridden by a <font> tag inside the span. It is wrong in one sense - it's not a "must not" thing to mix CSS and presentational markup in the HTML - but it does make it impossible to use CSS to completely control the rendering. -- David [EMAIL PROTECTED] authenticity, honesty, community ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
