View Full Version : use of strike-through...?

07-29-2011, 06:03 PM
Evenin'! :)

I'm putting together an ePub in Sigil and there is one word in the entire novel that has a strike-through and it's causing the book to fail validation:

ERROR: Roil_fin.epub/OEBPS/Text/Section0029.xhtml(361): element "s" not allowed anywhere; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="")

I'm at a loss... It's within <div> and <i> brackets and I just dunno how to make it valid. Sigil even has a strike-through button so I assumed (yeah, I know...) that it would be fine... :blink:

Any help?

07-29-2011, 06:55 PM
Just checked and the <del> tag does the trick and the epub has validated. Sorted.

07-29-2011, 08:11 PM
The <del> tag must be one of the least used - I don't ever recall noticing it. Thanks for coming back and pointing it out.

07-30-2011, 04:27 AM
or you could use <span class="strike"> with an appropriate CSS definition (text-decoration: line-through).