Bill Cummings wrote:How about a, strike through line?
Yes
sir master your highness your eminence Bill!
In HTML there are at least 2 tags for strikethrough: <s> and <del>. The <del> version seems to be preferred, and that's the one we use here on the U.S. Hawks. Here's how it might be used:
To get this:
I like love hang gliding!Type this:
I [del]like[/del] [ins]love[/ins] hang gliding!You may notice that the underlining of the word "love" wasn't done with the [u] tag. Instead, I used the [ins] tag. This points out a subtle shift in the historical usage of HTML. In the early days, HTML was seen as a presentation language. In other words, if I wanted something to be
presented as underlined, then I would use the [u] tag. The same with
strikethrough being
presented with [s].
But over time, HTML has moved from being purely presentational to being more semantic. So tags with meanings (or intentions) began to be preferred over tags that specified a particular presentation. Since the strikethrough font is generally intended to show deletion, the <s> tag became less preferred than the <del> tag which expressed the intention of deleting text rather than just showing text with a line through it. So the pair of tags <del> and <ins> became the preferred way to express deletion and insertion respectively (preferred over <s> and <u>).
Personally, I have mixed feelings on the intention/presentation issue. On one hand, I like the direct control of simply specifying that I want a line through my text without implying anything about what it means. On the other hand, using something like <ins> and <del> allows automated updating of text based on those intentions. It also allows for different kinds of presentation (maybe
red for delete and
green for insert) as well as better presentations for people with disabilities (screen readers, etc).
But regardless of my preferences (either way), the trend seems to be toward semantic mark up, and that's what we currently have on this forum.
P.S. After having said all of that, I decided to just go ahead and implement a
real strikethrough using
[s].
This is a strikethrough using
[s]:
strikethrough This is a strikethrough using
[del]:
strikethroughSo now we have both. They look about the same here, but use the
[s] version when you want to force a strikethrough regardless of context, and use the
[del] when you want to indicate deletion regardless of how it might be presented in someone else's browser.
I hope that helps Bill. Thanks for making the U.S. Hawks better!!!!