diff --git a/files/en-us/web/css/css_values_and_units/index.html b/files/en-us/web/css/css_values_and_units/index.html index c8b8fb92fd0b714..a4cf3891af019f2 100644 --- a/files/en-us/web/css/css_values_and_units/index.html +++ b/files/en-us/web/css/css_values_and_units/index.html @@ -17,7 +17,7 @@
<ident>
Text data types are either <string>
, a quoted series of characters, or an <ident>
, a "CSS Identifier" which is an unquoted string. A <string>
must be quoted with either single or double quotes. CSS Identifiers, listed in the specifications as <ident>
or <custom-ident>
, must be unquoted.
When viewing CSS property value syntax in a CSS specification or the MDN property page, allowable keywords will be listed in the following form. The following values are the pre-defined keyword values allowed for {{cssxref("float")}}.
-left | right | none | inline-start | inline-end+
left | right | none | inline-start | inline-end
Such values are used without quotes:
-.box {
+.box {
float: left;
}
-
+
A {{cssxref("<url>")}} type uses functional notation, which accepts a <string>
that is a URL. This may be an absolute URL or a relative URL. For example, if you wanted to include a background image, you might use either of the following.
A {{cssxref("url()","url()")}} type uses functional notation, which accepts a <string>
that is a URL. This may be an absolute URL or a relative URL. For example, if you wanted to include a background image, you might use either of the following.
-.box { +
+} -.box { background-image: url("images/my-background.png"); -}.box { +.box { background-image: url("https://www.exammple.com/images/my-background.png"); -}
+}
The parameter for url()
can be either quoted or unquoted. If unquoted, it is parsed as a <url-token>
, which has extra requirements including the escaping of certain characters. See {{cssxref("<url>")}} for more information.
The parameter for url()
can be either quoted or unquoted. If unquoted, it is parsed as a <url-token>
, which has extra requirements including the escaping of certain characters. See {{cssxref("url()","url()")}} for more information.
Functional notation is a type of value that can represent more complex types or invoke special processing by CSS. The syntax starts with the name of the function immediately followed by a left parenthesis (
followed by the argument(s) to the notation followed by a right parenthesis )
. Functions can take multiple arguments, which are formatted similarly to a CSS property value.