9

The spoiler syntax (>! …) produces this HTML:

<blockquote class="spoiler">
  <p>…</p>
</blockquote>

However, spoilers are not (necessarily) quotes. The blockquote element must only be used for "content that is quoted from another source".

As HTML5 provides no other appropriate element for this purpose, a div element should be used instead:

<div class="spoiler">
  <p>…</p>
</div>
2
  • 6
    Solution: stop using spoilers.
    – Shog9
    Apr 13, 2015 at 22:25
  • 4
    Solution: stop using StackExchange. (joke—but seriously, how can a member of the team actually suggest not using a feature that they provide as a solution to an accessibility problem???)
    – eggyal
    Jul 17, 2016 at 14:18

0

You must log in to answer this question.

Browse other questions tagged .