Curricular Support Home / Resources / Tips and Guides / Displaying Special Characters (Macintosh)

Inserting Special Characters into Web Pages

This tutorial will explain how to insert mathematical equations and special characters into web pages using Microsoft Windows XP. The modules of Microsoft Office X - including FrontPage - offer the user a limited equation editor, but the equations produced with the editor may not display as desired in a web browser, especially a browser other than Internet Explorer.

To avoid displaying the equations incorrectly, this tutorial will show you how to turn your equation into an image and insert it into a web page. In addition, for advanced users, we will show you how to insert special characters directly from FrontPage, and how to insert them manually using HTML code.

Creating a Mathematical Equation

  1. Display the equation.
    • Create a new blank document in Microsoft Word.
    • To insert a special character into the equation, under the Insert menu, choose Symbol....
      characters/mac01.gif
    • In the Symbol dialog box that appears, click on the symbol you wish to add, and click the Insert button.
      characters/mac02.gif

    Note: If a certain symbol does not display in the list, it may not be available for the given font you are using. You can change the current font with the Font drop-down menu at the top of the dialog box.

    • Repeat this step for every special character you are adding to the equation. Once you have finished, click the Close button.
    • Add any additional characters to the equation that you need as if you were working with a normal text document.
    • Format the equation as necessary using the Formatting toolbar.
    • If colored lines appear under the equation that you have created, you will have to disable spelling and grammar checking. Under the Tools menu, choose Preferences... to display the Options window.
      characters/mac03.gif
    • Click the Spelling and Grammar tab at the top of the window. Uncheck the Check spelling as you type and Check grammar as you type boxes, and click the OK button.
      characters/mac04.gif

  2. Capture the equation.

    After you have finished assembling the equation of Microsoft Word, take a screen capture of it, and save that screen capture. The screen capture tutorials are available below:


  3. Edit and save the equation.
    • Open the screen capture in Adobe Photoshop Elements. Any other image editor can be used, but this tutorial will only list the instructions for Photoshop Elements.
    • On the Tools toolbar, click the Crop icon.
      characters/mac05.gif
    • Crop the image so that it contains only the equation. To use the crop tool, click the mouse and drag it until the dotted rectangle encompases the part of the image that you wish to keep. Press [Return] to complete the crop.
      characters/mac06.gif
    • Under the File menu, choose Save for Web....
      characters/mac07.gif
    • Under the Settings heading, click on the drop-down menu shown below, and choose GIF from the available options.
      characters/mac08.gif
    • Click the OK button in the upper-right corner, and save the image.
      characters/mac09.gif
    • Insert the equation into your web page as you would any other image.

Inserting a Special Character using Macromedia Dreamweaver MX 2004

  1. Position your cursor at the location in your web page where you wish to insert a special character.
  2. Under the Insert menu, choose Special Characters → and then Other... to display the Insert Other Character dialog box.
  3. Locate the symbol that you wish to add from the list, and click on it. Click the OK button to add it to the document.

Inserting a Special Character Manually into HTML Code

Due to the nature of the HTML (the language that defines what most web pages will look like), inserting a special character normally - i.e., using the Character Palette feature in Mac OS X or a similar "insert character" feature in a text editor - will not always display properly in some web browsers. Fortunately, one of the capabilities of HTML is to use special codes to represent these characters.

While the codes may appear to be a random string of letters, numbers, and symbols when viewing the HTML code, they will appear as the character they represent when viewed in a web browser. Each code begins with an ampersand (&) and ends with a semicolon (;), and there are two different sets of codes - one using the text decription of the character, and another using a numerical identifier. To use these codes, simply insert them into your web page code where you want the character to appear.

For example, consider the following code:

<p>O&ugrave; est la biblioth&egrave;que?</p>

If this phrase was viewed in a web browser, it would appear as follows:

Où est la bibliothèque?

Note that the text codes and the number codes are interchangable. The following code - which uses the number codes - produces the same results:

<p>O&#249; est la biblioth&#232;que?</p>

These codes can be used for on any page, regardless of style or layout. However, if a specific character is not available for a given font, it will be replaced by a blank square. If this occurs, you will have to add additional code to change the font for that specific character.

Special Character HTML Codes 1
Symbol Description Name Code Number Code
Left Single Quote &lsquo;
Right Single Quote &rsquo;
Single Low-9 Quote &sbquo;
Left Double Quote &ldquo;
Right Double Quote &rdquo;
Double Low-9 Quote &bdquo;
Dagger &dagger;
Double Dagger &Dagger;
Permillion &permil;
Single Left-Pointing Angle Quote &lsaquo;
Single Right-Pointing Angle Quote &rsaquo;
Spade Suit &spades;
Heart Suit &heart;
Club Suit &club;
Diamond Suit &diams;
Overline &oline;
Left Arrow &larr;
Right Arrow &rarr;
Up Arrow &uarr;
Down Arrow &darr;
Trademark &trade;
! Exclamation Point &#33;
" Quotation Marks &quot; &#34;
# Pound &#35;
$ Dollar Sign &#36;
% Percent &#37;
& Ampersand &amp; &#38;
' Apostrophe &#39;
( Left Parenthesis &#40;
) Right Parenthesis &#41;
* Asterisk &#42;
+ Plus &#43;
, Comma &#44;
- Hyphen &#45;
. Period &#46;
/ Forward Slash &#47;
: Colon &#58;
; Semicolon &#59;
< Less Than &lt; &#60;
= Equals &#61;
> Greater Than &gt; &#62;
? Question Mark &#63;
@ At &#64;
[ Left Square Bracket &#91;
\ Backslash &#92;
] Right Square Bracket &#93;
^ Carat &#94;
_ Underscore &#95;
` Grave Accent &#96;
{ Left Curly Brace &#123;
| Vertical Bar &#124;
} Right Curly Brace &#125;
~ Tilde &#126;
En Dash &ndash; &#150;
Em Dash &mdash; &#151;
¡ Inverted Exclamation Point &iexcl; &#161;
¢ Cent &cent; &#162;
£ Pound Sterling &pound; &#163;
¤ Currency &curren; &#164;
¥ Yen &yen; &#165;
¦ Broken Vertical Bar &brvbar;, &brkbar; &#166;
§ Section &sect; &#167;
¨ Umlaut &uml;, &die; &#168;
© Copyright &copy; &#169;
ª Feminine Ordinal &ordf; &#170;
« Left Angle Quote &laquo; &#171;
¬ Not &not; &#172;
­ Soft Hyphen &shy; &#173;
® Registered Trademark &reg; &#174;
¯ Macron Accent &macr;, &hibar; &#175;
° Degree &deg; &#176;
± Plus or Minus &plusmn; &#177;
² Superscript Two &sup2; &#178;
³ Superscript Three &sup3; &#179;
´ Acute Accent &acute; &#180;
µ Micro &micro; &#181;
Paragraph &para; &#182;
· Middle Dot &middot; &#183;
¸ Cedilla &cedil; &#184;
¹ Superscript One &ndash; &#185;
º Masculine Ordinal &ordm; &#186;
» Right Angle Quote &raquo; &#187;
¼ One Fourth &frac14; &#188;
½ One Half &frac12; &#189;
¾ Three Fourths &frac34; &#190;
¿ Inverted Question Mark &iquest; &#191;
À Capital A, Grave Accent &Agrave; &#192;
Á Capital A, Acute Accent &Aacute; &#193;
 Capital A, Circumflex Accent &Acirc; &#194;
à Capital A, Tilde &Atilde; &#195;
Ä Capital A, Umlaut &Auml; &#196;
Å Capital A, Ring &Aring; &#197;
Æ Capital AE &AElig; &#198;
Ç Capital C, Cedilla &Ccedil; &#199;
È Capital E, Grave Accent &Egrave; &#200;
É Capital E, Acute Accent &Eacute; &#201;
Ê Capital E, Circumflex Accent &Ecirc; &#202;
Ë Capital E, Umlaut &Euml; &#203;
Ì Capital I, Grave Accent &Igrave; &#204;
Í Capital I, Acute Accent &Iacute; &#205;
Î Capital I, Circumflex Accent &Icirc; &#206;
Ï Capital I, Umlaut &Iuml; &#207;
Ð Uppercase Eth &ETH; &#208;
Ñ Capital N, Tilde &Ntilde; &#209;
Ò Capital O, Grave Accent &Ograve; &#210;
Ó Capital O, Acute Accent &Oacute; &#211;
Ô Capital O, Circumflex Accent &Ocirc; &#212;
Õ Capital O, Tilde &Otilde; &#213;
Ö Capital O, Umlaut &Ouml; &#214;
× Multiplication &times; &#215;
Ø Capital O, Slash &Oslash; &#216;
Ù Capital U, Grave Accent &Ugrave; &#217;
Ú Capital U, Acute Accent &Uacute; &#218;
Û Capital U, Circumflex Accent &Ucirc; &#219;
Ü Capital U, Umlaut &Uuml; &#220;
Ý Capital Y, Acute Accent &Yacute; &#221;
Þ Capital Thorn &THORN; &#222;
ß Lowercase Sharps &szlig; &#223;
à Lowercase A, Grave Accent &agrave; &#224;
á Lowercase A, Acute Accent &aacute; &#225;
â Lowercase A, Circumflex Accent &acirc; &#226;
ã Lowercase A, Tilde &atilde; &#227;
ä Lowercase A, Umlaut &auml; &#228;
å Lowercase A, Ring &aring; &#229;
æ Lowercase AE &aelig; &#230;
ç Lowercase C, Cedilla &ccedil; &#231;
è Lowercase E, Grave Accent &egrave; &#232;
é Lowercase E, Acute Accent &eacute; &#233;
ê Lowercase E, Circumflex Accent &ecirc; &#234;
ë Lowercase E, Umlaut &euml; &#235;
ì Lowercase I, Grave Accent &igrave; &#236;
í Lowercase I, Acute Accent &iacute; &#237;
î Lowercase I, Circumflex Accent &icirc; &#238;
ï Lowercase I, Umlaut &iuml; &#239;
ð Lowercase Eth &eth; &#240;
ñ Lowercase N, Tilde &ntilde; &#241;
ò Lowercase O, Grave Accent &ograve; &#242;
ó Lowercase O, Acute Accent &oacute; &#243;
ô Lowercase O, Circumflex Accent &ocirc; &#244;
õ Lowercase O, Tilde &otilde; &#245;
ö Lowercase O, Umlaut &ouml; &#246;
÷ Division &divide; &#247;
ø Lowercase O, Slash &oslash; &#248;
ù Lowercase U, Grave Accent &ugrave; &#249;
ú Lowercase U, Acute Accent &uacute; &#250;
û Lowercase U, Circumflex Accent &ucirc; &#251;
ü Lowercase U, Umlaut &uuml; &#252;
ý Lowercase Y, Acute Accent &yacute; &#253;
þ Lowercase Thorn &thorn; &#254;
ÿ Lowercase Y, Umlaut &yuml; &#255;

1 Source: Webmonkey Reference: Special Characters (http://www.webmonkey.com)