Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
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..
 
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.




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.