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

The Nonbreaking Space

In HTML code, although spaces count as characters, they're shady ones. Only one simple spacebar-typed space will display in an HTML browser, even if you type 50 of them in a row. (Similarly, typed line breaks in HTML that don't include a <br> tag or other line-breaking code don't break lines in the Web browser. You can use spaces, tabs, and returns to format HTML code without it showing up in the Document window or the Web browser.)

The &nbsp; entity

An entity called the nonbreaking space exists for use where a plain old space won't get the job done. This entity, printed &nbsp; in the code, is part of a family of special characters that you can't type easily with ASCII text; each character is represented by a control code or escape sequence. Of course, you can easily insert these spaces using Dreamweaver. The use of other special characters is described in Chapter 8.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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