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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strikethrough text 1

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
I am trying to figure out how to strikethrough certain bits of text. I thought I could make a custom tag:

<style>
strikethrough {text-decoration: line-through;}
</style>

<strikethrough>Ed Mozley</strikethrough>

I want to avoid having to write <font style="text-decoration:line-through;">Ed Mozley</font> if possible.

What is the best way of doing this please?

cheers

Ed
 
You cannot make custom tags. You can either use generic inline tag for styling specific words (<span>) or use one of the special markup elements like <strong> or <em> and style them.
 
Grasping at straws here, but I could say that it's deprecated since html4? [blush]
 
Jeez. Just use <del>Your text</del> to get Your text. It's not deprecated and usable in XHTML as well.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Excellent traingamer. I thought there might be a tag for that, but I guess I missed it. Oh well, we did html coding with just a couple of tags for way too long.
 
Thanks all - I used <s> and it has worked but if I run into any problems I will use <del>.

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top