HTML: What's the HTML code to do the 1-click spoiler alert thing (hide/show)?

James

New member
Hi everybody I'm just learning HTML and I am creating my first little web page and I need help on one issue, I dont know what it is exactly called so I cant search it online, but I can easily describe it and hopefully one of you can give me an answer.

I want to know the HTML code on how to do this thing where you click it and then it reveals (in the same page so its not an external link) a small area right below it.

I've seen this on forums talking about movies where there is a link called "Spoiler Alert" or "Hide/Show" and once you click on it, it simply expands a small area revealing some text.

Thanks so much
 
You can't achieve this with HTML alone; it needs javascript. I found a full code here though I'm not positive on how well it works: http://www.willmaster.com/blog/css/show-hide-floating-div.php
 
Back
Top