VisualBuilder
  Home > Html > Tutorials > Character entities - HTML tutorial
Tell a friend
Link to us
Total Members
      Members: 84663
     
Sitemap Forum Chat
Home
HTML Tutorial Tutorial Home
1 . HTML Hyper Text Markup Language
2 . Getting Started with HTML
3 . What are HTML tags for?
4 . Lowercase Tags VS. Uppercase Tags:
5 . HTML elementary tags
6 . Other tags used to format text
7 . Some useful tips while working with HTML:
8 . Character entities
9 . HTML Links
10 . Adding colors to your links
11 . Adding Images:
12 . Adding Alternate text:
13 . Setting your HTML background
14 . HTML Frames
15 . Creating inbound links
16 . HTML Forms
17 . The Submit button and the Action Attribute
18 . Color definition in HTML
19 . MetaTags in HTML
 
 
HTML Home
HTML Members (2687)
HTML Member Articles ( 1 )
HTML Discussion (5)
HTML Q & A ( 0 )
- HTML Ask Question
- HTML Questions
- HTML Unanswered Questions
HTML Resources
HTML Source Code (8)
HTML Articles (0)
HTML Blogs (0)
HTML Jobs (0)
HTML Components (5)
HTML Books (0)
HTML Websites (1)
HTML News (0)
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.Net Security,Internationalisation And Deployment
ASP.NET Tutorial
C# Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (451 )
Source Code (3275 )
Articles (359 )
Books (372 )
Components (1596 )
News (892 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise

Html Tutorial
 Character entities
  << Prev: Some useful tips while working with HTML: Next: HTML Links >>

Character entities:
In HTML, certain characters have special meanings. For instance, the opening bracket ‘<’ which normally means ‘less than’ has a different meaning in HTML. If you apply it in the HTML page it won’t display the bracket in the browser page. Therefore, there are special entities for displaying such characters.

A character entity is made up of three components:

-          An ampersand (&)

-          The entity’s name/a # and entity number

-          At the last there should be a semicolon.

Now to display a less than sign in the HTM document we would use: &lt; or &#60.

As said before, you can either use a number or a name. Nevertheless they both have their advantages plus disadvantages. The advantage of using a number is that it is supported by nearly every browser but the disadvantage is that numbers aren’t easy to remember. On the other hand, using names is advisable because they are easy to remember but then they are not supported by every browser.

Also, you should remember that these entities are case sensitive.


NBSP – Non-breaking Space:


Non-breaking space is the most common character entity in HTML. NBSP is used for adding spaces in your text. Normally, HTML reduces one space from the number of spaces you added in your text.

&nbsp; is the entity used for adding spaces in your text.

A list of all the important character entities is given below:

















































Entity

 




Entity Number

 




Description

 




Outcome

 




&lt;



&#160;



less than



<

 




&gt;



&#62;



greater than



>

 




&amp;



&#38;



ampersand



&



&apos; ( N/A for IE)



&#39;



apostrophe 



'



&quot;



&#34;



quotation mark



"



&nbsp;



&#160;



non-breaking space



{space}




Some other entities are given below:

 






























































Entity

 




Entity Number

 




Description

 




Outcome

 




&#160;



&#162;



cent



¢



&reg;



&#174;



registered trademark



®



&times;



&#215;



multiplication



×



&copy;



&#169;



copyright



©



&pound;



&#163;



pound



£



÷

 




division

 




&divide;

 




&#247;

 




¥

 




yen

 




&yen;

 




&#165;

 




§

 




section

 




&sect;

 




&#167;

 






 




  << Prev: Some useful tips while working with HTML: Next: HTML Links >>
Html Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
 
 
ADVERTISEMENT
Partner List
Code Project
ASP Alliance
More
 
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising