Common special HTML and ASCII character codes

The following is a list of some of the most commonly used HTML codes for displaying ASCII character symbols on webpages. These codes can be used in HTML, SGML or XML.

Browser support, IE > 4.0 and Netscape > 4.0.

Quick CodeHTML NumberSymbolDescription
<br />  Carridge return
&nbsp;&#160; Non-breaking space
&169;&#169;©Copyright
&amp;&#38;&amplersand (or and)
&lt;&#60;<Less than
&gt;&#62;>Greater than
&quot;&#34;"Double quote
&lsquo;&#8216;Left single quotation
&rsquo;&#8217;Right single quotation
(used in english possessives and contractions)
&ldquo;&#8220;Left double quotation
&rdquo;&#8221;Right double quotation

Since I'm always forgetting them I wrote a script to output a more complete list of ASCII and HTML codes which can be found on the following pages:

Filed under: Design  Tags: Html

0 Responses to “Common special HTML and ASCII character codes”

Sorry, comments have been closed for this post.
(default) 11 queries took 14 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1DESCRIBE `posts`17171
2DESCRIBE `comments`11115
3DESCRIBE `tags`221
4DESCRIBE `categories`221
5DESCRIBE `posts_tags`222
6DESCRIBE `categories_posts`221
7SELECT `Post`.`id`, `Post`.`url`, `Post`.`title`, `Post`.`icon`, `Post`.`metadesc`, `Post`.`metakeys`, `Post`.`categories`, `Post`.`tease`, `Post`.`body`, `Post`.`private_body`, `Post`.`created`, `Post`.`modified`, `Post`.`status`, `Post`.`allow_comments`, `Post`.`tags`, `Post`.`hitcount`, `Post`.`hitcount_rss` FROM `posts` AS `Post` WHERE `Post`.`url` = 'common-special-html-and-ascii-character-codes' LIMIT 1111
8SELECT `Comment`.`id`, `Comment`.`post_id`, `Comment`.`body`, `Comment`.`author`, `Comment`.`url`, `Comment`.`email`, `Comment`.`ip`, `Comment`.`status`, `Comment`.`junk_score`, `Comment`.`created`, `Comment`.`modified` FROM `comments` AS `Comment` WHERE `Comment`.`status` = 2 AND `Comment`.`post_id` = (19) 001
9SELECT `Tag`.`id`, `Tag`.`tag`, `PostsTag`.`post_id`, `PostsTag`.`tag_id` FROM `tags` AS `Tag` JOIN `posts_tags` AS `PostsTag` ON (`PostsTag`.`post_id` = 19 AND `PostsTag`.`tag_id` = `Tag`.`id`) 110
10SELECT `Category`.`id`, `Category`.`category`, `CategoriesPost`.`post_id`, `CategoriesPost`.`category_id` FROM `categories` AS `Category` JOIN `categories_posts` AS `CategoriesPost` ON (`CategoriesPost`.`post_id` = 19 AND `CategoriesPost`.`category_id` = `Category`.`id`) 110
11UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 1911