You are here: Re: Entities « HTML « IT news, forums, messages
Re: Entities

Posted by richard on 09/24/06 15:51

"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:LhoRg.18733$Mx1.13341@reader1.news.jippii.net...
> patrick j wrote:
>
>> I'm wondering about an entity.
>
> Are you sure you need entities?
>
>> The entity for a "stupid" double quote is: &quot;
>
> It's never needed except in a contrived case where an attribute value
> contains a "stupid" double quote and you want to use double quotes as a
> delimiter of the value.
>
>> What is the entity for a single "stupid" quote?
>
> &apos; in any XML-based version of HTML, and none in classic HTML
>
> It's never needed except in a contrived case where an attribute value
> contains a "stupid" single quote and you want to use single quotes as a
> delimiter of the value. In classic HTML, you were supposed to use a
> character reference (&#39;) in such a situation.
>
> You didn't find it in the HTML 4.01 specification because it isn't there.
> It's mentioned in the XHTML 1.0 specification, though, as a compatility
> issue: http://www.w3.org/TR/xhtml1/#C_16
> (It's not otherwise mentioned there explicitly, since &apos; is in XHTML
> because it's part of XML, for some strange reason.)

The apostrophe has always been a valid character as it has many valid uses.
Which should always be included in any html format.
Although I can't think of a valid reason why one would need to use it within
the text output other than for it's intended purpose.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация