Character Entity References
Article ID: KB101449
So, how do you insert an extra space in your text?
In the HTML code, type this code for each extra space that you want:
This will insert a non-breaking space into your text so that the
browser knows to insert a space there.
Please note that "non-breaking space" means that these spaces will not "wrap"
- that is, they will not break off onto another line. So if you put enough
spaces all in a row, you might force your page to be too wide for the browser
window, and users will get a horizontal scrollbar.
Other Character Codes...
There are other special characters that have a special meaning in HTML. For
example, the angle brackets ("<" and ">") are used to help define an HTML tag.
But, if you want to actually display an angle bracket in the browser window, you
will have to learn the character code into your HTML.
Below are some of the most common character entity codes. For a longer list,
see our
reference sheet.
| Common Character Entity
Codes |
|
Code |
Display |
Description |
| |
|
non-breaking space |
| < |
< |
less-than sign |
| > |
> |
greater-than sign |
| " |
" |
quotation mark |
| & |
& |
ampersand |
| © |
© |
copyright symbol |
back to top
Putting it all together...
Here is an example of how to use character codes in your text...
<p>"I like math," said the girl.</p>
<p>"Really?" said the boy. "I personally have a hard time with
inequalities."</p>
<p>"They're easy!" said the girl. "3 < 5."</p>
<p>© Copyright 2002</p>
See live example!
In the next tutorial, we'll look at how to make bulleted, numbered, and other
kinds of lists.
Was this helpful?
Please rate this article:
Email address: (not required)
(Please provide your email address if you would like PixelMill support to follow-up with you about your comment. You're email address is NOT REQUIRED to submit a comment.)
Comments: (How can we improve this article?)
Clicking "Submit" will not clear this page.
link to this page:
http://www.pixelmill.com/support/al1065/kb101449.htm
permalink to this article:
http://www.pixelmill.com/support/kb101449.htm
Back to top