content
Name: content
Description: Specifies the content to appear either after or before an element.
Browser Compatibility: NN 6+ / O 4+
Inherited: No
Values:
- attr([X])
- [counter]
- inherit
- no-open-quote | no-close-quote
- normal [Initial value]
- open-quote | close-quote
- [string]
- [url]
Code Example:
p.note:before {content: "Note: ";}
Comments: Used with the :before
and :after
pseudo-elements