Block Content Warning
Set type to describe the content before someone
reveals it.
Code
<content-warning type="violence spoilers" hidden>
<p>This content contains graphic violence and spoilers.</p>
<p>The scene describes a battle and its aftermath.</p>
</content-warning>
Live example
This content contains graphic violence and spoilers.
The scene describes a battle and its aftermath.
Inline Content Warning
Add inline to place a warning within a
sentence.
Code
<p>The character dies in
<content-warning type="spoilers" inline hidden>episode 5</content-warning>.
</p>
Live example
The character dies in