Skip navigation

Web Writing HTML Entities Cheat Sheet

Blog writing tips and articlesOver the years I’ve copied and saved HTML Character Entities that I use on a regular basis, and I thought I’d share my cheat sheet.

These are important to me as a technical web publisher specializing in writing blogging and WordPress tutorials, so I’ve explained why and how I use them in the table below. They might not work for your needs, and they do not represent all of the HTML entities available, but they might inspire you to create your own cheat sheet. I’ve included a list of HTML Entities references at the bottom of the post to help you.

I keep this list in a text file in my constantly open text editor, NoteTab Pro. You may copy and paste these into a file in your favorite text editor, too. Do not put these in Word as it will probably mess them up.

Also note that these characters and symbols will look different on your site depending upon the font you are using.

Category Symbol Entity Description Explanation
WordPress
Wordpress Wordpress Wordpress When I write about the lowercase p in Wordpress, because WordPress forces an uppercase P, I need to create it manually.
Web Specific
http:// http:// Website Address Used to publish an example website address and not have WordPress convert it into a link.
. . Period (fullstop) WordPress will sometimes convert a site title with dot com, such as lorelle.wordpress.com, into a website address when I don’t want to. It is rare and inconsistent. I add the fullstop period between the domain and the com to stop that.
/ / Solidus or figure slash (fraction) (/ is normal slash) Used in website address, when I don’t want WordPress to convert it into an address for tutorials, I replace the slash with the HTML entity.
\ \ Reverse solidus (backslash) When publishing articles on computer file structures or in code when I need WordPress ignore the backslash.
@ @ @ At symbol To type out an email address that will not convert into a mailto email address.
Coding and Programming
< &#060; or &lt; Less than Used constantly for publishing code such as <div> so the browser and WordPress will not recognize it as HTML code.
> &#062; or &gt; Greater than Used rarely for publishing code in WordPress as the < symbol used in HTML, PHP, and other programming languages tells the browser and publishing platform that code is starting. Without that symbol before it, wrapped around a specific element of code, the browser ignores the >. I will write &lt;div>, saving a few keystrokes.
& &#038; Ampersand WordPress converts most ampersands into this HTML entity automatically, but when publishing code in WordPress for technical articles and tutorials, I need to use it to ensure the code or HTML entity is readable, as I’ve done throughout this article.
  &#160; Non-breaking space Used often to force a space, especially with writing code or using it within an HTML div tag.
" &#034; Straight Quote Mark When publishing code in WordPress, I need to convert curly quote marks into straight quote.
' &#039; Straight Apostrophe Used when publishing code to make straight apostrophes not curly ones.
&#8220; or &ldquo; Curly Quote Mark Left or Opening Once in a while a sequence of quotes will confuse WordPress and the automatic curling of quote marks, leaving two openings and no closing or a closing with no opening quote mark. This forces them to line up right.
&#8221; or &rdquo; Curly Quote Mark Right or Closing
* &#042; Asterisk When publishing CSS code, asterisks are used in CSS comments.
: &#058; Colon Used for publishing code, especially in website addresses I wish WordPress to not convert into a link.
# &#035; Number sign # Used for publishing code sometimes, especially when publishing HTML entities and jump link examples.
? &#063; Question mark Used for publishing code sometimes, especially when publishing PHP code for techniques.
; &#059; Semi-colon
, &#044; Comma
= &#061; Equals sign
( &#040; Left parenthesis (
) &#041; Right parenthesis )
[ &#091; Left square bracket [ Used for publishing code, specifically WordPress shortcodes.
] &#093; Right square bracket ]
Numbers and Money Symbols
&#8240; %
$ &#036; Dollar sign
¢ &#162; Cent sign ¢ There is no key on your keyboard for the cents sign.
+ &#043; Plus sign
× &#215; or &times; Multiplication
÷ &#247 or &divide; Divide
% &#037; Percent sign
π &#960; Pi
° &#176; Degree sign °
˜ &#732; or &tilde; Tilde ~
&#8776; or &asymp; Almost equal ≈
&#8800; or &ne; Not equal
&#8801; or &equiv; Equivalent
&#8804; or &le; Less or equal
&#8805; or &ge; Greater or equal
Legal Symbols
© &#169; Copyright sign
® &#174; Registered trademark sign
§ &#167; Section sign
&#153; or &#08482; Trademark sign
Writing
! &#033; Exclamation mark
« &#171; or &laquo; Double Arrow or Double Angle Quotation Mark (Left) Used often in the HTML title in the head of a WordPress site as part of the default for the wp-title() template tag in WordPress Themes. When copying web page links with the CoLT Firefox Extension, I do a search and replace for this symbol in my text editor to replace it with a dash for link lists.
» &#187; or &raquo; Double Arrow or Double Angle Quotation Mark (Right)
- &#045; Hyphen
&#8211; En dash
&#8212; Em dash —
Graphic Symbols and Characters
&#9829; Heart symbol Used for fun.
&#8226; Bullet Used between contact information or lists of items in a sentence form rather than an HTML list in WordPress Text Widgets.
· &#183; or &middot; Middle Dot
&#8734;&infin; Infinity
&#9674; or &loz; Lozenge or Open Diamond
&#032; Space Like the non-breaking space, this is another way to force a space.
&#8201; or &thinsp; Thin space Like space and non-breaking space, this creates a thinner, narrower space between words.
&#8592; or &larr; Left arrow Used rarely for pointing in tutorials and sometimes in a WordPress Text Widgets.
&#8593; or &uarr; Up arrow "
&#8594; or &rarr; Right arrow "
&#8595; or &darr; Down arrow "
Foreign
à &#224; or &agrave; à
á &#225; or &aacute; á
ã &#227; or &atilde; ã
ä &#228; or &auml; ä
â &#226; or &acirc; â
æ &#230; or &aelig; æ
ç &#231; or &ccedil; ç
è &#232; or &egrave; è
é &#233; or &eacute; é
ê &#234; or &ecirc; ê
ë &#235; or &euml; ë
ñ &#241; or &ntilde; ñ
ö &#246; Umlout ö
¡ &#161; Inverted exclamation ¡
¿ &#191; Inverted question ¿
¥ &#165; Yen symbol ¥
&#8364; Euro symbol €
£ &#163; Pound sterling £

How to Use HTML Character Entities in WordPress

To uses these HTML Entities in posts, Pages, and Text Widgets, use the WordPress Text Editor not the Visual Editor to copy and paste them into place.

Publishing code in your WordPress posts and Pages is a little more complex. On WordPress.com and if you are using the Jetpack WordPress Plugin, or another syntax highlighting WordPress Plugin, you may use the [sourcecode language="html"] shortcode to highlight a block of code.

To publish code within a sentence such as <a href="http://lorelle.wordpress.com/" title="Lorelle on WordPress.">example of a link</a>, I use the <code> HTML tag around the code and it really looks like this:

To publish code within a sentence such 
as <code>&lt;a href=&#034;http&#058;&#047;&#047;lorelle&#046;wordpress&#046;com&#047;&#034; title=&#034;Lorelle on WordPress.&#034;>example 
of a link&lt;/a></code>, I use the <code>&lt;code></code>
HTML tag around the code and it really looks like this: 

Ask you can see, one of the most challenging publishing tasks is to publish such code to help others use such code in their posts, explained in the articles below.

HTML Character Entities Lists

There are many lists of HTML Character Entities on the web. I've included in this list some of the ones I find most helpful, with the characters I use in my own web writing.

Subscribe to Lorelle on WordPress. Feed on Lorelle on WordPress Follow on Twitter. Give and Donate to Lorelle VanFossen of Lorelle on WordPress.


6 Comments

  1. Posted February 23, 2015 at 3:41 am | Permalink

    Hi Lorelle,
    when writing about places or words in a different language that use accented characters should I simply type those into WordPress or is it preferable to use the HTML entities?
    Regards,
    Andy

    • Posted February 24, 2015 at 12:53 am | Permalink

      If you are writing in a specific language within the interface of WordPress set up for that language, you use the characters on the keyboard or as you normally would. If you are using characters not on the keyboard, you would use the character entities. If you are blogging in another language, WordPress automatically converts the letters into HTML character entities if they are “normal” characters in that language. All web publishing tools do that for the language they are set for. You just don’t see it. Visit a website in Hebrew or something and look under the hood. You will see a mess of HTML character entities in the source code of the web page.

    • Posted February 24, 2015 at 3:41 am | Permalink

      I was specifically thinking the European accented characters that you mentioned above. I tried the characters, é € ø æ © none of which are on my UK-GB keyboard, I used charmap or alt+Unicode number to get those. The visual editor just accepted those and in the front end I just see the single characters in the source too. I also tried using the Android WordPress client and that also put these characters in as a single unicode character, not the HTML entities.

      • Posted February 24, 2015 at 1:28 pm | Permalink

        Excellent test. The charmap is the Character Map, a visual representation of the HTML entities. Look under the hood at the source code and you will probably see most of these converted to HTML entities. Thanks!

  2. saradwrites
    Posted February 23, 2015 at 4:12 pm | Permalink

    A little over my head right now but I now have a great resource for all things WordPress and html. Thanks Lorelle. I did write down the one for copyright symbol as I use that one a lot.

    Does it mess the code when copy/pasting from google docs?

    • Posted February 24, 2015 at 12:49 am | Permalink

      Not if you are careful. Paste using the paste from Word or put it in via the Text Editor.


One Trackback/Pingback

  1. […] whole sections of acceptable and web standard code. This is most evident in the use of HTML tables, Lorelle on WordPressHTML Character Entities, publishing code, and other styles such as inline styles. I’ve spent […]