The last four characters in this table would easily confuse the browser. Without using this method, how would it know whether we were writing XHTML code or whether we wanted to display the character itself?"> The last four characters in this table would easily confuse the browser. Without using this method, how would it know whether we were writing XHTML code or whether we wanted to display the character itself?">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

Special Characters. Special Characters in XHTML: Some common characters cannot be written directly into our code as the XHTML processor (browser) would.

Similar presentations


Presentation on theme: "Special Characters. Special Characters in XHTML: Some common characters cannot be written directly into our code as the XHTML processor (browser) would."— Presentation transcript:

1 Special Characters

2 Special Characters in XHTML: Some common characters cannot be written directly into our code as the XHTML processor (browser) would confuse them for our markup (code). Sometimes we need to show a character that is not on the typical keyboard, such as a copyright symbol or a character from a foreign language. Another issue is that XHTML ignores multiple spaces, but there are occasions in which we want to display multiple consecutive spaces. We solve all these issues by using special characters.

3 Common Special Characters: Special CharacterXHTML CodeDisplays As Blank Space Open or Close Quote"" Ampersand&& Less Than<< Greater Than>> The last four characters in this table would easily confuse the browser. Without using this method, how would it know whether we were writing XHTML code or whether we wanted to display the character itself?

4 More Special Characters: Special CharacterXHTML CodeDisplays As Cent Sign¢¢ Copyright Symbol©© Trademark Symbol®® 1/2 Fraction½½ Inverted Question Mark¿¿ Small e, Acute Accentéé These are just a sample of the dozens of special characters available to use.

5 Example Special Characters: 3 extra spaces: here quote: "in quotes" ampersand: & less than: < greater than: > cent sign: ¢ small e (acute): café 3 extra spaces: here quote: "in quotes" ampersand: & less than: < greater than: > cent sign: ¢ small e (acute): café


Download ppt "Special Characters. Special Characters in XHTML: Some common characters cannot be written directly into our code as the XHTML processor (browser) would."

Similar presentations


Ads by Google