![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
You refuted the principle of using logical markup instead of semantically empty <span>, |
#22
| |||
| |||
|
|
A real net-nanny... |
#23
| |||
| |||
|
|
If <span class="foo" > is semantically meaningless, then you implicitly limit the only expressible semantics of a HTML document to those expressed in the DTD itself. |
#24
| |||
| |||
|
|
Scripsit Andy Dingley: If <span class="foo" > is semantically meaningless, then you implicitly limit the only expressible semantics of a HTML document to those expressed in the DTD itself. In reality, a DTD has absolutely nothing to do with semantics; it is pure syntax by definition. |
#25
| |||
| |||
|
|
Of course the DTD by and of itself is pure syntax, |
|
For one thing, your original comment was that <strong> was somehow meaningful when <span> wasn't. This only holds if you accept that the DTD (in combination with the HTML recommendation) conveys semantic meaning. |
|
Semantics aren't a publishing problem, they're a communication problem. Publish what you want, how you want, but if no-one else can understand it, then there's little point in doing it. |
#26
| |||
| |||
|
|
Scripsit Andy Dingley: Of course the DTD by and of itself is pure syntax, Please stop babbling. It's pure syntax, period. |
|
You seem to have completely missed the fact that browsers have, in fact, recognized <strong> as something that should be rendered in some highlighted manner, even in the absence of CSS (and even before CSS was available). I mentioned this as a particularly good practical reason to use semantic markup and not a dummy element |
#27
| |||
| |||
|
|
You _could_ mark up emphasised text with SPAN, |
#28
| |||
| |||
|
|
According to the HTML4.01 specification, STRONG is emphasis stronger than EM, and SPAN is a grouping element with no associated "presentational idiom". In other words, while visual user-agents generally render STRONG in bold text, it's reasonable to assume that user-agents applying only their own stylesheets don't render SPAN distinctly. |
#29
| |||
| |||
|
|
"John Dunlop" <usenet+2004 (AT) john (DOT) dunlop.name> writes: According to the HTML4.01 specification, STRONG is emphasis stronger than EM, and SPAN is a grouping element with no associated "presentational idiom". In other words, while visual user-agents generally render STRONG in bold text, it's reasonable to assume that user-agents applying only their own stylesheets don't render SPAN distinctly. FWIW, as someone who's "wrong" answer started this debate, I should add that this is precisely why I chose span instead of em or strong. For a stylesheet-aware browser, you can suggest distinctive presentations for both span-highlighted keywords and ordinary em or strong elements, so that it's clear to the user which is which Without stylesheets, the use of em or strong would make no distinction between emphasised text in the original document vs. text that's empha- sised by virtue of being a found keyword. That would be a potential source of confusion for the end user. So, I figured it would be better to highlight the keywords in a way that would be less likely to cause confusion for users of non-stylesheet user agents. |
#30
| |||
| |||
|
|
Sherm Pendley escribió: Without stylesheets, the use of em or strong would make no distinction between emphasised text in the original document vs. text that's empha- sised by virtue of being a found keyword. That would be a potential source of confusion for the end user. So, I figured it would be better to highlight the keywords in a way that would be less likely to cause confusion for users of non-stylesheet user agents. Perhaps it could be <strong class="keyword"> instead of <span class="keyword">. At least this makes explicit the intention of being emphasized. |
![]() |
| Thread Tools | |
| Display Modes | |
| |