Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > BOOK: Beginning HTML, XHTML, CSS, and JavaScript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning HTML, XHTML, CSS, and JavaScript
This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 5th, 2010, 05:24 AM
Registered User
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with character entities

Hi guys,

I am an absolute noob with html programming and I would appreciate it if someone could tell me: why doesn't the character entity for one-third,
Code:
⅓
, work for me?

This link seems to indicate that Firefox 3 and IE 8 (which is what I'm using) should be compatible with this code.

Thanks,

Matt
Reply With Quote
  #2 (permalink)  
Old April 5th, 2010, 11:10 AM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

For one third, you have to specify its unicode. ⅓ is not defined in HTML 4 specification, but ¼ is. However HTML 5 will have ⅓ defined.

<p>This is one third: ⅓</p>
<p>This is one quarter: ¼</p>
<p>This does not work: &frac13;</p>

Unicode in decimal for one third is: 8531.

Last edited by PeterPeiGuo; April 5th, 2010 at 11:23 AM..
Reply With Quote
  #3 (permalink)  
Old April 6th, 2010, 09:11 AM
Registered User
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for that Peter - makes sense now.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT replace for character entities atulshin XSLT 1 November 1st, 2008 05:19 AM
Character to Unicode entities Pankaj C XSLT 2 February 15th, 2008 08:59 AM
character set problem BrendonMelville Java Basics 1 March 15th, 2007 12:16 PM
Problem with Newline character d_sathish XSLT 3 November 25th, 2005 07:20 PM
Newline character problem gsudipta1 XML 0 March 16th, 2005 03:54 AM



All times are GMT -4. The time now is 11:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.