Treehouse: Grow your CSS skills. Land your dream job.

HTML Symbols

  • # September 30, 2012 at 4:11 am


    I use this page for symbol reference ever since I can remember

    one thing bugs me because I never knew what is the difference
    if to use the symbol and just copy paste it, write the code or the name of that symbol

    for example if I want to write “3 dots” (horizontal ellipsis)
    does it matter ?

    # September 30, 2012 at 4:22 am

    It can matter as some text editors don’t receive copy and paste exactly as you might think.

    In practice, I use the Entity Name (beginning with an ampersand (&) because they are usually descriptive and thus easier to remember.

    is easier to remember than


    # September 30, 2012 at 4:25 am

    well that makes perfect sense

    # September 30, 2012 at 1:25 pm

    unicode (UTF-8) support is at the point where it can (and should) be nearly universally supported.

    Writing `…` is far preferable to `…` (or even `…`). If you get your character encoding down right, the only entities you have any reason to keep are `<` and `&` (nope, not even `>`). That said, there’s many points where you need to make sure it’s set correctly.

    -1. your files (html, etc.) need to be saved as UTF-8

    -2. your html markup needs `` (but see #3 below)

    -3. the http headers sent by your server **must also specify the UTF-8 charset** (as an example, many web hosts specify ISO-8859-1 by default). If there is a conflict, the browser will almost always choose the charset specified in the http header and ignore what it says in the markup.

    -4. if you use a database, it needs to save data in UTF-8
    ….it must use a UTF-8 collation as well
    ….your connection to the database needs to specify UTF-8 as well

    fun read

    # September 30, 2012 at 1:29 pm

    thanks for the article
    will have a look at it

    # September 30, 2012 at 4:17 pm

    according to [this*]( “Shoptalk Show 029: Tab Atkins”) episode of shop talk show html5 doesnt require the codes anymore and accepts mostly all of the symbols. it’s one of the questions answered towards the end of the show.


    # September 30, 2012 at 11:13 pm


    to clarify, it’s not HTML5 that is “requiring” or “rejecting” those characters. It has to do with what character encoding you use (which Tab Atkins *does* go on to explain). If your encoding is wrong, you’ll still get �s everywhere, regardless of HTML5.

    Also, I overlooked ` ` in my short list of “acceptable” entities.

    # October 1, 2012 at 2:13 pm

    yeah dont forget your charset utf-8

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.