MDN The contentCSS property replaces content with a generated value. It can be used to define what is rendered inside an element or pseudo-element. For elements, the content property specifies whether the element renders normally (normal or none) or is replaced with an image (and associated "alt" text). For pseudo-elements and margin boxes, content defines the content as images, text, both, or none, which determines whether the element renders at all.
<p class="topic-games">Game News: A new inFamous is not planned</p><p class="topic-weather"> Weather for Today: Heat, violent storms and twisters</p><p class="topic-hot">Trending Article: Must-watch videos of the week</p>
PropertyBaseline: widely availablesince October 2023
MDN The CSSquotes property sets how the browser should render quotation marks that are automatically added to the HTML <q> element or added using the open-quotes or close-quotes (or omitted using the no-open-quote and no-close-quote) values of the of the CSS content property.
Live previewExample from MDN
q { font-size: 1.2rem;}
<section id="default-example"> <q id="example-element" >Show us the wonder-working <q>Brothers,</q> let them come out publicly—and we will believe in them!</q ></section>
Syntax
auto | none | bikeshed-this | [ <string> <string> ]+
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
Initial
auto
Applies to
all elements
Inherited
yes
Percentages
n/a
Computed value
the keyword none, the keyword auto, a content language, or a list, each item a pair of string values
Canonical order
per grammar
Animation type
discrete
Browser support
First browser version supporting quotes
Chrome
11
Edge
12
Firefox
1.5
Safari
9
Chrome Android
18
Safari iOS
9
First version with support, from MDN browser-compat-data.
FunctionBaseline: widely availablesince January 2018
MDN The <string>CSSdata type represents a sequence of characters. Strings are used in numerous CSS properties, such as content, font-family, and quotes.
Syntax
string( <custom-ident> , [ first | start | last | first-except ]? )
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Browser support
First browser version supporting string()
Chrome
1
Edge
12
Firefox
1
Safari
1
Chrome Android
18
Safari iOS
1
First version with support, from MDN browser-compat-data.