HTML Entity

 Ref: codeproject.com/Articles/751805/Beginners-guide-to-HTML
        freeformatter.com/html-entities.html



  •  Do tags and attributes all have to be in lowercase letters? Thing is, HTML5 is flexible and you can chose to write your tags and attributes however way you want. <Head>, <head>, <HEAD> and <hEAd> are all the same, likewise Class, class and CLASS but the usual convention is to write your tags and attributes in lowercase letters.
  • Do I have to use double quotes to enclose attribute values? You can use either. Single ' and " are valid. In fact, HTML5 allows you to completely ignore quotes when writing attribute values that do not have spaces.
  • How do I write <> without the browser thinking it's an HTML tag?
    An article like this one has be showing you different tags without the browser thinking they are tags, right? If you have to write angle brackets or any other character not on your key board in HTML, you'll have to use HTML entities or character entities. Below is a table of commonly used HTML entities.
    Character
    Entity name
    Entity Number
    <
    &lt;
    &#60;
    >
    &gt;
    &#62;
    ©
    &copy;
    &#169;
    ®
    &reg;
    &#174;
    &trade;
    &#8842;
    "
    &quot;
    &#34;
    (space)
    &nbsp;
    &#32;
    &
    &amp;
    &#38;

    Examples © CodeProject 2014. is written &copy; CodeProject 2014 or &#169; Codeproject 2014
    Microsoft® Visual Studio ™ is written Microsoft &reg; Visual Studio &trade;
    2 > 3 is written 2 &gt; 3
    In your code write 2 &lt;1 is written In your code write 2 &amp;lt; 1
    So, to write any of the characters in HTML code, you'd write the one in the entity name or entity number. Note, entity names are case sensitive, you have to type them exactly (they are usually in lower case though) and entity numbers have a # following the ampersand (&) sign.
    The browser removes unnecessary space from your document content, you have to use the HTML entity for non breaking space (&nbsp;) to preserve spacing
    For a complete list of HTML entity names and numbers, see Free Formatter Entities List 

     Ref: codeproject.com/Articles/751805/Beginners-guide-to-HTML
            freeformatter.com/html-entities.html
  • 评论

    1. What a wonderful blog you have written. I like it very much. It's very useful as well as easy to understand. Thanks for this amazing blog. Btw I am gamer and I have something interesting for you. You may Click Here

      回复删除
    2. Hello,
      Good Blog liked it very much. It is positive blog. Explain in simple and understanding language. Btw I am gamer and I have something interesting for you visit here

      回复删除
    3. Hello!!
      just i read out ur blog it's very ineresting nd as well as to easily understanding. i'm also creating a blog visit here http://fusionnerpdf.iwopop.com/

      回复删除

    发表评论

    此博客中的热门博文

    XML, XSL, HTML

    Input in element.eleme.io

    Data URI是由RFC 2397 ACE