Prev | Current Page 77 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

43).
Note also that a string value in CSS can??™t contain a literal new line. If you need to
include a new-line character inside a string value, use a character escape (\a ).
URIs
URI values are expressed with a functional notation that, for historical reasons, is
named url.11 A URI is expressed using the following syntax: url(URI). For example,
here??™s a background-image declaration that specifies the URI of an image file:
#example {
background-image: url(images/bg.gif);
}
The argument for URI is a string that may be enclosed in quotes; if you choose to
use quotes, they may be double or single quotes.12 Certain characters appearing in
an unquoted URI value??”whitespace characters, single and double quotes,
parentheses, and commas??”must be escaped with a backslash. In some types of
11 In the beginning, web addresses were called Uniform Resource Locators (URL). Later, something
called Uniform Resource Name (URN) was added. A Uniform Resource Identifier (URI) is a URL
or a URN.


Pages:
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89