HTML and CSS Reference
In-Depth Information
On Dave's Web page, you decide to use the bullet symbol ( • ) to break up the
address text into sections. The symbol has a character encoding number of 8226 and the
character entity reference name bull . Dave suggests that you also add a long horizontal
line known as an em-dash ( — ) to mark the customer names in the customer comments
section. The character encoding number for an em-dash is 8212 and the entity reference
is mdash .
To add bullets and an em-dash to Dave's Web page:
1. Return to the jprop.htm file in your text editor.
2. Locate the customer comment from Thomas Gage, and then directly before the
opening <cite> tag insert the character code &#8212 ; followed by a space.
3. Repeat Step 2 for the two remaining customer comments.
Always include a semi-
colon so that browsers
recognize the entry as a
character code.
4. Scroll down to the address element within the page footer. At the end of each
line within the address (except the last line), insert a space followed by the
&bull; character entity. Figure 1-45 highlights the revised code in the Web page.
Figure 1-45
Adding symbols from a character set
character encoding
number
cha racter entity
reference
5. Save your changes to the file.
6. Refresh the jprop.htm file in your Web browser. Figure 1-46 shows the final con-
tent of Dave's Web page.
Search WWH ::




Custom Search