how to use special characters in html for websites using html entities ?

Hi friends in this post I am sharing how to use special characters using html. We know in keyboard there is no copyright symbols,dollars symbol,euro symbol and also it make us difficult to display in websites.HTML entity will helps to solve this problem.  Some characters are reserved such as greater than and lesser than which are used as HTML tags.And keep in mind after the end of the entity name or code should end with semicolon.




Special
Characters
Description Entity Name Entity Number
$ dollar

$


non-breaking space
 

 

<
less than
&lt;
&#60;
>
greater than
&gt;
&#62;

&
ampersand
&amp;
&#38;
¢
cent
&cent;

&#162;
£
pound
&pound; &#163;
¥
yen
&yen;

&#165;
euro
&euro; &#8364;
©
copyright
&copy; &#169;
®
registered trademark
&reg; &#174;

How to display special characters locally in browsers using notepad?

  • Open notepad and save in html format.Name it as “special characters.html”.
  • Copy and paste the below code in that “special characters.html” .
  • <html>
    <br>
    sp&#160;ace
    <br>
    &#60;
    <br>
    &#62;
    </html>
  • Now open with chrome and you will get like below

    image
Print Friendly and PDF
SHARE

About me

Hi. I am interested in blogging.And sometimes play with webdesign,web development,domain sale,designing logo and more.

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment