![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In a couple of projects (one in each book), EM has HTML like this (air code, so it's not exactly what he had)... div id="links" a href="fred.html">Fred</a><b>|</b a href="john.html">John</a><b>|</b a href="jim.html">Jim</a><b>|</b /div |
|
My question is as to the wisdom of this approach. I thought that <b> was not a good tag to use as it is presentational, and the idea was to get the HTML free of any presentation. |
|
I know he hides them, but would it not have been better to do something like... span id="linkseparator">|</span |
#3
| |||
| |||
|
|
b> is a non semantic element. span> is also non semantic, there is no advantage in using one over the other, other than that elements like <b> and <i> are shorter. |
#4
| |||
| |||
|
|
I thought that <b> was not a good tag to use as it is presentational, and the idea was to get the HTML free of any presentation. |
#5
| ||||
| ||||
|
|
Alan Silver <alan-silver (AT) nospam (DOT) thanx.invalid> wrote: In a couple of projects (one in each book), EM has HTML snip Eric Meyer is renowned for his poor HTML, |
|
use an unordered list instead with a border. |
|
My question is as to the wisdom of this approach. I thought that <b> was not a good tag to use as it is presentational, and the idea was to get the HTML free of any presentation. b> is a non semantic element. |
|
I know he hides them, but would it not have been better to do something like... span id="linkseparator">|</span span> is also non semantic, there is no advantage in using one over the other, other than that elements like <b> and <i> are shorter. |
#6
| |||
| |||
|
|
Alan Silver wrote: I thought that <b> was not a good tag to use as it is presentational, and the idea was to get the HTML free of any presentation. No, the real idea is to avoid stuff that is _purely_ presentational. b>, <i>, <em> have sufficient precedent and implied historical use to them that they can be argued to have as much semantic merit as anything else in HTML. |
#7
| ||||
| ||||
|
|
b> is a non semantic element. Aren't "presentational" and "non semantic" the same thing? |
|
What I mean is that both imply that the mark-up in question is not there for the purposes of giving meaning to the content. |
|
span> is also non semantic, there is no advantage in using one over the other, other than that elements like <b> and <i> are shorter. But <b> and <i> are deprecated aren't they? |
|
Presumably they would be a bad choice if you were to move towards a strict doctype. |
#8
| |||
| |||
|
|
Alan Silver <alan-silver (AT) nospam (DOT) thanx.invalid> wrote: b> is a non semantic element. Aren't "presentational" and "non semantic" the same thing? Usually. What I mean is that both imply that the mark-up in question is not there for the purposes of giving meaning to the content. Usage of markup such as div and span is required to achieve certain stylistic effects. There's no intrinsic harm in that provided that the elements that are used are not semantic, and used minimally. span> is also non semantic, there is no advantage in using one over the other, other than that elements like <b> and <i> are shorter. But <b> and <i> are deprecated aren't they? They are valid under HTML 4 Strict and it's reformulation in XML. Presumably they would be a bad choice if you were to move towards a strict doctype. Transitional doctypes should only be used for legacy documents when the rest of the code cannot be updated. |
#9
| |||
| |||
|
|
That you're throwing <em> in with <b> and <i> shows that you're missing part of the story. The <em> and <strong> tags *are* semantic and no one suggests that they be avoided. |
|
It's <b> and <i> that are purely, or almost purely, presentational, |
|
and a large part of the time <strong> and <em>, respectively, should actually be used *instead*. ^^^^^^? |
#10
| |||
| |||
|
|
On Thu, 16 Mar 2006, Harlan Messinger wrote: That you're throwing <em> in with <b> and <i> shows that you're missing part of the story. The <em> and <strong> tags *are* semantic and no one suggests that they be avoided. ...right... It's <b> and <i> that are purely, or almost purely, presentational, ...right... and a large part of the time <strong> and <em>, respectively, should actually be used *instead*. ^^^^^^? Then <i> or <b> were being seriously MISused - because if there's one thing that <i> or <b> can NOT mean, when properly used, it is emphasis (otherwise the author would have USED the appropriate emphasis markup). |
|
And the same goes for <cite>, or <var> ... |
|
So, if <i> and <b> are properly used, they necessarily mean something for which there exists no proper structural markup in HTML. But for which the use of a particular rendering is so universally agreed as to support the use of <i> or <b> markup, as opposed to merely <span> with an associated stylesheet proposal. For example, genus or species name, in scientific usage. |
![]() |
| Thread Tools | |
| Display Modes | |
| |