• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

6.4. Strings

“String” is a programming term that relates to displaying or manipulating functions based on text. The string equivalent of the hexadecimal color value #FF0000 is “red”, and both are equally understood by browsers when used in either XHTML objects or as values within a given CSS property.

Normally, quote marks are not used when specifying text values in CSS. The sole exception to this rule is when you need to set a specific font value. The font-family property allows Web authors to select a particular font on a user's system by placing it within quotes, for example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint