In article <jnb8ha$8f6$
1...@dont-email.me>,
"Jukka K. Korpela" <
jkor...@cs.tut.fi> wrote:
> 2012-04-26 10:34, dorayme wrote:
>
> >> <NOBR>...</NOBR> :-) .
> >
> > Put this toy through a wind tunnel and measure relative lengths in a
> > commonplace and likely scene.
>
> A nice little story you told us, but in fact it is much faster to slap
> the tags around things that are to be kept on one line.
In some common scenes it is not a fact. There is a general point worth
making: we should not be too sure that using elements and attributes,
or even inline css styles, is quicker or shorter or more efficient.
Sometimes it is and sometimes it is not, it depends on how one-off it
really is going to be in a website.
Some of us often (perhaps too often) blaze away with 'style' elements
including the style one and later remove them and make do with a more
central and logical stylesheet for easier maintenance and for the
styles to apply more generally.
Isolated tactical interventions are not all that interesting, who
cares what we all do here and there? The main interesting thing about
the practice of keeping the styles separate is longer term and
strategic.
This is a CSS group, why should I not needle the suggestion that
sticking in elements is quicker, why shouldn't I say: don't be so
sure, look at a few deeper issues? Why should I not fly a few
patriotic CSS flags? I hum a CSS tune and get lumps in my throat just
like humans do for their countries.
> There is a lot
> of time that people spend in explaining how time could be saved.
>
Like that it is a waste of time to wonder for too long about how to
save time by putting a couple of html tags on a line instead of an
inline style.
> > hey, while he is at this
> > activity, he adds a little "white-space: no wrap;" in the style sheet.
>
> You forgot the need to have an element to attach it to.
If the style applies to lots and lots of things in a webpage, the
style could be well worth it, no matter how long it was. How long can
a style be anyway? We know there are not many limits on how many
elements and pages one style can apply to. So in consideration of this
larger point, I did not really forget to mention the need for an
element. I was making a larger point.
...
> Well, you can slap <span class=...> and </span> around that. What class
> name you would use there? You can't write what you really mean,
> class=nobr, since your Semantic Purist's License would be revoked
> immediately.
Let it be revoked! You *can* write what you mean. Semantic purism is
something I have always thought to be directed at the meanings of HTML
elements. Some people extend this idea to some sort of
"literal-cum-general" naming of classes. Without the generality, it is
often thought not purely semantic. Well, I disagree. It
overcomplicates and confuses two concepts, I say you *can* forget
generality and still sleep at night.
Take class="left", it can be quite literal for an *actual* use. It is
often condemned as not being general enough. The generality must
encompass all the possible worlds where the content that one author at
one time puts on the left, the same or different author, later puts on
the right or several miles out elsewhere. Yes, yes... But you still
said what you meant, the client still pays and you still have it do
what you want and mostly it actually helps a stranger to see what is
going on. He or she can change the word to suit his or her actual and
practical intention. I call this sensible naming. In fact, given our
national day yesterday, allow me to call it Anzac Naming (AN).
> In a fortnight or so, you might eventually decide on using
> class="combination-of-input-control-and-associated-label">.
So change it already!
--
dorayme