Azale
08-14-2006, 10:10 PM
I want a certain line of text to have strikethrough, as in I finished something off a list of things to do and I want to cross it off. What do I put in front of the sentence to do that? Thanks in advance.
|
View Full Version : Rather noob-ish html question Azale 08-14-2006, 10:10 PM I want a certain line of text to have strikethrough, as in I finished something off a list of things to do and I want to cross it off. What do I put in front of the sentence to do that? Thanks in advance. WebBaka 08-14-2006, 10:16 PM You can use use <s> or <strike>, but the best way is to use <span style="text-decoration: line-through">. Azale 08-14-2006, 10:19 PM thank you, thank you WebBaka 08-14-2006, 10:23 PM You're quite welcome. Glad to help. :) djou 08-16-2006, 01:27 AM Actually, the best way is <del>text</del> :D http://www.w3schools.com/tags/default.asp Both <s> and <strike> are deprecated, and using the span will make browser who do not support CSS ignore the addition completely. J to the izzosh 08-16-2006, 01:32 AM Aaaaactually... the "best" way would be to use a combination of the two... del { text-decoration:line-through; } <del>This text is stricken through.</del> ...as one should rely on HTML strictly for semantical markup while styling should be delegated to CSS. ;) General MJ 08-16-2006, 01:39 AM the text isn't stricken through.. J to the izzosh 08-16-2006, 02:02 AM It is if you use it properly. ;) And MJ, I'll happily argue semantics with you until the proverbial cows come home, but please try to stop making posts which don't contribute to a question's answer. For facetious posts we have the chat and fiction sections; let's try to keep this section as helpful as possible. |