property
content — CSS reference
Controls generated content and can replace element contents in certain supported cases. On ::before and ::after, normal computes to none; an empty string generates an empty box that can still be styled. Do not use it as the sole source of meaningful text.
Formal Syntax & Structure
css syntaxcss
content: normal | none | "text";Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a::before {content:"";display:inline-block;width:8px;height:8px;background:#006050}</style><body><p id="a">Available</p></body></html>