Results 1 to 6 of 6

Thread: What are the Character Entities in HTML?

  1. #1
    Join Date
    Jul 2006
    Posts
    191

    What are the Character Entities in HTML?

    I have just started with the HTML programming language. I am very new to programming language. I am in secondary school and very eager to know about more things in HTML.!! While referencing some books I read the Character Entities in HTML. There was not more description on that topic. So I thought to post my query here. I just want to know more about the character entities. Can someone explain what are the Character Entities in HTML? Hoping that you guys will help me soon.!!
    ASUS P5VD1-X
    Intel Pentium Dual Core 3.00GHz
    Maxtor 160GB
    Corsair 1.5GB PC3200 RAM
    Nvidia Geforce 6800 GT 256mb
    Phillips DVD RW
    Magna 500W PSU
    XION II Steel Black Gaming Case

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What are the Character Entities in HTML?

    In HTML some characters are reserved. I will give you an example for that, so it will be better for you to understand. You cannot use the greater than or less than signs within your text because the browser that you are using could mistake them for markup. Suppose that if you want to display these characters on the browsers, then you will have to insert the character entities in the source of HTML. A character looks like : &entity_name; . For example if you want to display a greater than sign, then you must write :
    > or >. Now the > is the &#entity_number; for the greater than sign. You can also use the &#entity_number; for displaying the greater than sign. But writing the &#entity_number; is difficult, since we cannot remember the &#entity_number; for every value. So it will be better to use the &entity_name; which is more simple than &#entity_number;.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: What are the Character Entities in HTML?

    I would like to tell you more about the Character Entities in HTML. The Character Entity in HTML has been formatted with accessibility and usability considerations. Using the definition list format, the Entity Reference List is presented. The presence of this list allows usable small screen rendering on numerous Internet devices including PDAs and Internet capable cell phones. When displayed on the small screen rendering devices, this lists presented using tables may lose their logical relational order to the contained elements.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What are the Character Entities in HTML?

    I think that the Non-breaking Space is the most common character entity in HTML. Otherwise the HTML will truncate spaces in your text. If you write 5 spaces in your text HTML will remove 4 of them. So, if you want to add more spaces to your text then you will have to use the   character entity. You will have to write the   for n times, if you want n spaces in your text. Suppose if you want 3 spaces in your text, then you will write       (for 3 times). After writing this you will get 3 spaces in your text.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: What are the Character Entities in HTML?

    I thought that since you are new to HTML, providing you with the commonly used character entities will be much helpful. Also you will have to keep in mind that the entities names are case sensitive. Here are list of commonly used character entities in HTML along with their entity number :
    • non-breaking space - The entity name is  
    • greater than - The entity name is > and the symbol is >
    • less than - The entity name is &lt;and the symbol is <
    • ampersand - The entity name is &amp; and the symbol is &

  6. #6
    Join Date
    Nov 2005
    Posts
    1,323

    Re: What are the Character Entities in HTML?

    I am giving you some more character entities that are used in HTML. Below are some useful character entities :
    Code:
    [ ¤ ] currency
        [name: &curren;] [number: &#164;]
    [ ¢ ] cent
        [name: &cent; ] [number: &#162;]
    [ £ ] pound
        [name: &pound;] [number: &#163;]
    [ € ] euro sign
        [name: &euro;] [number: €]
    [ ¥ ] yen
        [name: &yen;] [number: &#165;]
    [ ¡ ] inverted exclamation mark
        [name: &iexcl;] [number: &#161;]
    [ ¦ ] broken vertical bar
        [name: &brvbar;] [number: &#166;]

Similar Threads

  1. CodeFluent Entities
    By Trend in forum Software Development
    Replies: 3
    Last Post: 29-08-2012, 03:34 PM
  2. Replies: 3
    Last Post: 23-09-2011, 02:27 PM
  3. How to make relationships with various entities in MS Access
    By Ferdinand Alosa in forum Windows Software
    Replies: 3
    Last Post: 06-02-2011, 04:14 PM
  4. Checklist for the character encoding in HTML
    By Kohlmann in forum Software Development
    Replies: 5
    Last Post: 19-08-2010, 01:02 PM
  5. What is html tab character
    By Aspen in forum Software Development
    Replies: 3
    Last Post: 11-08-2009, 07:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,055,046.92097 seconds with 17 queries