B.1 HTML Character Entities

To insert special characters into your document, use the icons in the Objects panel's Characters category, as shown in Figure B-1, or the Insert figs/u2192.gif Special Characters menu. (See Chapter 2 for details on using the Characters category of the Objects panel.)

Figure B-1. Objects panel's Character category and the Insert Other Category dialog box

Other special characters and foreign characters, such as umlauts and accents, are inserted using the Insert Other Character dialog box (shown in Figure B-1). Open the Insert Other Character dialog box using the Other Characters icon in the Objects panel or Insert figs/u2192.gif Special Characters figs/u2192.gif Other. If you use special characters frequently, Section in Chapter 19 demonstrates how to add a custom character icon to the Objects panel.

If the built-in characters entities are insufficient, you can enter so-called HTML character entities in the Insert field of the Insert Other Character dialog box, as seen in Figure B-1 (or you can hand-edit the HTML code). The Entity column of Table B-1 shows three-digit HTML character entity codes (of the form &# nnn ; ) for commonly needed characters. For example, > represents the greater-than sign (>). Note the leading &# characters and the terminating ; character. Also note the zero used to pad numbers under 100 to three digits. If a more convenient name , such as > , exists for the character entity, it is shown in the Named Entity column. Notice that named entities start with & and end with ; but do not include a # symbol.

You don't always need to use an HTML character entity code to display a character, even though a code exists. Common characters, such as letters , numbers, !, and %, are displayed properly when entered directly into the Design pane of the Document window. Conversely, not all character entity codes are supported in all browsers. Dreamweaver displays unrecognized characters as a square box. Browsers typically display unrecognized characters literally. For example, Ž is displayed as a greater-than-or-equal-to sign in some browsers, but many browsers display it as "Ž".

The entities shown in Table B-1 work in the latest version of the major browsers (although the character displayed by the browser may depend on the font and language coding in use). Table B-1 groups characters according to their similarity. Tables of HTML character entity sorted by the entity number are available widely, including in Webmaster in a Nutshell , HTML/XHTML: The Definitive Guide , and XML in a Nutshell . However, many special characters are difficult to reproduce accurately in print, so you may notice errors in printed versions.

A complete table of HTML character entities, both for reference and for testing with different browsers, is available at http://www.dwian.com/. An extended discussion of HTML character entities is available at http://www.bbsinc.com/iso8859.html.

Table B-1. Commonly needed HTML character entities


Named entity





Invisible space

Nonbreaking space






Registered trademark








Left double quotes (curly)




Right double quotes (curly)




Straight double quotes (also indicates inches)




Straight single quote or straight apostrophe (also indicates feet)




Left single curly quote




Right single curly quote (curly apostrophe)




Hash mark




Dollar sign



Cent sign


& pound ;

Pound (money)



Yen (money)



See Figure B-1

Euro (money)




Exclamation point




Percent sign








Less-than sign




Greater-than sign




Equals sign



Division sign




Fraction one-fourth




Fraction one-half




Fraction three-fourths








Plus sign



Plus/minus sign (+/-)




Hyphen or minus sign




Soft hyphen




En dash



Em dash
















Left parenthesis




Right parenthesis




Left square bracket




Right square bracket




Left curly brace




Right curly brace







Middle dot




Superscript 1




Superscript 2




Superscript 3



Degree sign (temperature)

Dreamweaver in a Nutshell
Dreamweaver in a Nutshell
Year: 2005
Pages: 208

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net