Pages

Friday, October 19, 2007

escape code for few special characters into your HTML code

many characters should NEVER be typed directly into HTML code... for example the "<", ">", the "©", "&", and the " itself. Instead, type &escape_code; (Ampersand, Escape Code for Character, then a semicolon). For these 5 characters, here are the escape codes...



o For the < type & lt; (no space between & and lt)
o For the > type & gt; (no space between & and lt)
o For the © type & copy; (no space between & and lt)
o For the & type & amp; (no space between & and lt)
o For the " type & quot; (no space between & and lt)

No comments: