The <string> CSS data type represents a string. It is formed by a Unicode characters delimited by either double (“) or single (‘) quotes. A double quoted string cannot contain double quotes unless escaped using a backslash (\). The same practice applies for single quoted strings, they cannot contain single quotes unless escaped using a backslash (\). The backslash character must be escaped to be part of the string.
New lines are not accepted unless escaped by using a line feed character such as \A or \00000a. However, strings can span over several lines. In that case, the new line must be escaped using a \ as the last character of the line.
Characters can be described using their Unicode code point in hexadecimal, when escaped using \. \27 represents the single quote (‘).
Examples
01
/* Simple quote escaping */
02
"Awesome string with double quotes"
03
"Awesome string with \" escaped double quotes"
04
'Awesome string with single quotes'
05
"Awesome string with \' escaped single quotes"
06
/* New line in a string */
07
"Awesome string with \Aline break"
08
/* String spanning over two lines (these two strings are exactly the same) */
09
"A really long \
10
awesome string"
11
"A really long awesome string"
Note: Double quoted strings can also be escaped using \22 and single quoted strings can be escaped using \27.