content

Previous- visibility  |  Next-quotes

Description

This property is used with the :before and :after pseudo-elements to generate content in a document.


Initial Value : empty string

Applies to : :before and :after pseudo-elements

Inherited : no

Possible Values
[ <string> | <uri> | <counter> | attr(x) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inherit

Example(s)
img:before { content: attr(alt) }
p.note:before { content: "note: " }

Previous- visibility  |  Next-quotes