::before and ::after
These pseudo elements insert generated content before or after an element. The content property is required. Use them for icons, quotes and decoration.
Example
<style>
.q::before { content: "\201C"; color: #f59e0b } .q::after { content: "\201D"; color: #f59e0b }
</style>
<p class="q">Quoted text</p>Exercise
Property needed.
: "*";Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.