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

Whitespace

Spaces also can cause browser chokes. They are absolutely necessary in certain instances, absolutely disallowed in some instances, and positively ignored in other instances.

Spaces are absolutely necessary between a tag and an attribute, and an attribute and another attribute. <body bgcolor="#ffffff"> cannot be coded as <bodybgcolor="#ffffff">. A browser won't know what to do with this information, because it can't separate the element name from the attribute name. It will think that you're trying to use a tag it doesn't understand, bodybgcolor, which of course doesn't exist.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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