Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deprecated <s> tag question

Status
Not open for further replies.

JackBoughson

IS-IT--Management
Sep 17, 2001
2
US
We have a horde of legal-type HTML documents that must use the <s> (strike-out or strike-through), tag to display verbage that has been deleted/removed from the document.

I'm attempting to convert our site to be XHTML compatible (moving toward XML), but everything I've read with regards to XHTML (and XML) tells me that the <s> tag is &quot;deprecated&quot;.

My question is, what do I use in place of it?

I've scoured several CSS books and documents, but can't find anyway to get &quot;strike through&quot; text on an XHTML compliant document via styles.

Any suggestions would be greatly appreciated.

I'm also curious if anyone has suggestions for the <sub> and <sup> tags, which from what I read are deprecated as well.
 
<span style=&quot;text-decoration: line-through&quot;>This is striken</span> Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
It appears <s> is one of the casualties in the crusade against physical style tags, the idea being that tags should indicate the content of the text rather than the way it is rendered. You are supposed to say &quot;this bit of the document is deleted&quot; rather than &quot;this bit of the document has a line through the middle of it&quot; (even if the latter is actually what you want for legal reasons).

Apparently there's a <del> tag to indicate deletions, which browsers will probably render in the same way as <s> (you could reinforce this behavior by explicitly requesting it in a style sheet). -- Chris Hunt
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top