How To Get an Extra White Space

Q

How To Get an Extra White Space? - XHTML Tutorials - Introduction To Element Content Syntax

✍: FYIcenter.com

A

As you know that white space characters will be ignored in elements like "p". So how to get some extra white space to show up in your text paragraphs? On easy solution is to use XHTML entity: " ", which stands for "non-breaking space".

Here is an example of using "nbsp":

  <!-- 4 white spaces at the beginning of the paragraph -->
  <p>&nbsp;&nbsp;&nbsp;&nbsp;There was once upon a time
    a peasant-woman who had a daughter and a step-
    daughter.</p>

2007-05-12, 4643👍, 0💬