In article <
MPG.2a3022768...@news.demon.co.uk>,
Philip Herlihy <
bounc...@you.com> wrote:
> In article <
dorayme-60526D...@news.albasani.net>,
>
dor...@optusnet.com.au says...
> >
> > In article <
MPG.2a2f432f4...@news.demon.co.uk>,
> > Philip Herlihy <
bounc...@you.com> wrote:
> >
> > > In article <joi7gb$r2f$
1...@dont-email.me>,
jkor...@cs.tut.fi says...
> > > >
> > ...
> > >
> > > Particularly interesting comments, and I think after reflection on this
> > > interesting digression that's going to be my view - that I'll tend to
> > > use tags more for their default rendering than for their notional
> > > semantic significance, although I'll try not to write real nonsense!
> > >
> >
> > What could be nonsensical in your idea of this?
>
> That's a fair question! If I'm really abandoning the idea that HTML
> tags have semantic connotations then it's all nonsense, and tags are
> being used completely pragmatically based on what I expect current
> browsers to do with them (and Devil take the future).
>
> But these are extremes, and to my mind a compromise seems appropriate.
I agree. But note that we all *do* compromise. Almost no one gets to
make their webpages using the elements that seem deemed for the job a
la the W3C HTML 4.01 Specification. The elements are not that good or
not that flexible or the browsers have sadly disappointed. But there
is a central idea which I think is a shame to give up, to use what is
reasonable solid, to separate the markup from the styling as much as
possible and to not over-think or fret about this.
> If I re-style an H1 so that the font is smaller than most, the display
> is inline and the padding and margins match a nearby P tag, and then use
> it as if it were a SPAN then I'm surely weakening the value of my code
> to software (e.g. search bots) which disregard styling and parse
> content.
This is a spectacular case of *not* using elements for their default
styling.
> That would be a wild and foolish extreme.
Doubtless it would be if you really were just wanting what a SPAN
would afford you. But if you were not wanting this, if you were
engaged in styling or restyling or making a fresh alternative look for
your page, if the content of the H was a heading (in spite of not
looking like a trad one) it would not weaken anything. If you pulled
it off and could produce various nice different looks to your page, it
would be a mark of great strength and flexibility.
> On the other hand,
> stressing over whether the word "with" qualifies as a P goes a bit too
> far for me, although I'd surely try BRs next time. I've pondered on how
> (e.g.) a screen reader might be influenced by the markup in thos panels,
> and I have to say I don't think it matters if the word "with" is given
> the extra emphasis appropriate to the beginning and end of a
> "Paragraph" - I can imagine a continuity announcer reading it just that
> way! Meanwhile, I do try to avoid things like class="left" although
> when I'm pushed for time...
>
> I've learned to listen carefully to what you say, and I do respect your
> argument in this. However, I also respect what jkorpela has written,
> and I've certainly been known to use a sock to get the lid off a jam-
> jar.
>
It is right to respect Korpela. But be careful how you interpret him.
With me, it is different. With me you can completely and utterly
trust, your future assured, whether you understand me or not. If an
elderly distant relative leaves you a fortune and I say send me half,
just do it. In fact, my advice is always designed to be right even
when completely misunderstood, that is its dark secret. I bet Korpela
can't match that! His advice *always* needs to be understood correctly
and that is its terrible downside. But he tries his best.
> When we write for the web, we're writing code to be read by machines.
> When I write program code, it needs to go through the compiler but its
> more important to be readily intelligible to the next person to work on
> it (which might be me!). Then I readily make sacrifices in efficiency
> and in "neat" ways of doing things for the save of clarity. If I felt
> web code was going to be read by either a person or a machine in a way
> that meant the semantics of the HTML mattered, then I'd certainly be
> less ready to hijack tags for their likely stylistic treatment.
Very good point indeed and it is a point that reminds me of one made
by Hickson in exchanges with Korpela:
"The use case for most of the "semantic" markup is just easier
authoring and maintenance, in particular for selectors in CSS."
His words rather neatly sum up the idea.
For example in
<
http://old.nabble.com/The-blockquote-element-spec-vs-common-quoting-pr
actices-td32010330i40.html>
And I think Korpela might agree with this, as most reasonable people
would.
All my raving on this need not be read as saying a great deal more.
The bits more I might have added in various exchanges need not be
interpreted as hopeless idealism about browser behaviour. They can be
seen as a more extreme form of what Hickson is saying.
But note something that Hickson relies on which may have not been
brought out into the open in the exchanges with Korpela. The people
who invented the elements had certain meanings and uses in mind and
this has formed a tradition. You cannot simply forget about this
tradition, it is a fait accompli, and that has imbued a certain
meaning to elements. It is *behind* the reasons for the styling
defaults. You can *pretend* later that it is, deep down, all about the
default styling, but this is a sophistical conjuring trick imo.
When I bang on about using OLs for where the author means the order to
be important and ULs for when not, when I say a P is for a paragraph
(slightly stretched in meaning for webpages maybe), think of it as a
particularly consistent recommended discipline for authors taking
their whole intentions into account (human meaning/semantics is all
about human intentions, mostly clear enough; transcendental
meaning/intention is about God's intentions, mostly terribly obscure)
and it provides a rough map for usage, for not having to fret about
what to use when. If it is a word, you want on a separate line, it is
simply not a paragraph, it is nothing like a paragraph and that is
that!
--
dorayme