CSS Quotes
CSS quotes
What are quotation marks
quotes of CSS The quotes attribute allows browsers to render quotation marks around content. CSS quotes can be added to any element. They utilize the ::before and ::after pseudo-elements to insert quotation marks at the beginning and end of the element. These pseudo-elements are defined by the content attribute.
The CSS quotes attribute specifies how browsers render quotation marks added using the open-quote and close-quote values of the content attribute.
CSS Quote Values
The quotes attribute can take one of the following values −
- none : The open-quote and close-quote values of the content attribute do not generate quotes.
-
string string,+ : One or more string pairs are used as the values for open-quote and close-quote . The first pair represents the outermost quote. The second pair represents the quote for the first nested level, the next pair represents the quote for the next nested level, and so on.
-
initial : Depends on the user agent.
-
auto : Uses appropriate quotes based on the language value set for the selected element (e.g., via the lang attribute).
Quote characters
The following table describes the various quote characters:
Quote type | Description | Entity number |
---|---|---|
" |
Double quote |