An example showing how to use the spoiler tag is actually provided all over the forum, including the
bbcode FAQ. I'm surprised you've not seen it
...
Anyway, as you haven't... let me show you here:
This bbcode:[spoiler=title]Don't forget to use a title for the spoiler![/spoiler]
...becomes...