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 @@

Textual data types

  • {{cssxref("<custom-ident>")}}
  • Pre-defined keywords as an <ident>
  • {{cssxref("<string>")}}
  • -
  • {{cssxref("<url>")}}
  • +
  • {{cssxref("url()","url()")}}
  • 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.

    @@ -55,14 +55,14 @@

    Pre-defined keyword values

    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;
     }
    -
    +

    CSS-wide values

    @@ -76,18 +76,18 @@

    CSS-wide values

    URLs

    -

    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.

    Numeric data types

    @@ -414,12 +414,12 @@

    Position

    Functional notation

    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.

    @@ -493,5 +493,5 @@

    See also