HTML: The Spoiler “Tag”

By Daniel Miessler on August 18th, 2006: Tagged as HTML | Internet | Programming
  • Tim
    I don't think it would be easier to write black text on a black background since that's what IE does anyway -- allowing the user to highlight the block to see the text. True, not as snazzy as in FF, but it gets the job done.
  • Nope, I didn't know that. But I do now...thank you. LOL

    I have to disagree that it's "easier" for users to highlight text. Most would consider that "work" and get annoyed. But I agree it's kludgy. I'll work on a more elegant solution.
  • Jem
    Your example spoiler code will not work in IE, you do know this.. right? It'd be easier to write black text on a black background and have visitors highlight it. Alternatively, a little JavaScript and you can hide/display content as much as you like.
blog comments powered by Disqus

 

twitter_icon

Sample Original Content


Information Security

Tutorials and Primers

Culture & Society

Technology & Science

Politics

Philosophy & Religion

Miscellaneous

Tools & Projects


Blog Archives