Click here to get back home

Entities in alt and title text

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Entities in alt and title text The Bicycling Guitarist 07-31-2007
Get Chitika Premium
Posted by The Bicycling Guitarist on July 31, 2007, 4:07 am
Please log in for more thread options


Hello. I am replacing straight vertical apostrophes with ’ throughout
my web site. Should I do this in alt text and title attributes as well as in
the regular content? What about in page titles?
--
The Bicycling Guitarist
www.TheBicyclingGuitarist.net/




Posted by Andy Dingley on July 31, 2007, 5:44 am
Please log in for more thread options


On 31 Jul, 09:07, "The Bicycling Guitarist"
> I am replacing straight vertical apostrophes with ’ throughout
> my web site.

Why?

Are you certain that your management of encoding is accurate and
reliable enough to deliver these correctly in all cases?

> Should I do this in alt text and title attributes

Look in the DTD. What is the type of the attribute in question?
http://www.w3.org/TR/html4/sgml/dtd.html#Text

What is the definition of this type?
http://www.w3.org/TR/html4/types.html#type-cdata


Posted by The Bicycling Guitarist on July 31, 2007, 6:06 am
Please log in for more thread options



> On 31 Jul, 09:07, "The Bicycling Guitarist"
>> I am replacing straight vertical apostrophes with ’ throughout
>> my web site.
>
> Why?
>
> Are you certain that your management of encoding is accurate and
> reliable enough to deliver these correctly in all cases?
>

Hello and thanks for replying. I recently replaced " with “ and
” and I wanted to make similar improvement on the apostrophes of
possessives and contractions. I am being careful about what I replace.

If I read the links you provided correctly, then I *think* the character
entities will be converted to characters in the alt text, title attributes
and even the page titles in the <head>.



Posted by The Bicycling Guitarist on July 31, 2007, 7:29 am
Please log in for more thread options



> Andy Dingley wrote:
>> On 31 Jul, 09:07, "The Bicycling Guitarist"
>>> I am replacing straight vertical apostrophes with &#8217; throughout
>>> my web site.
>>
>> Why?
>>
>> Are you certain that your management of encoding is accurate and
>> reliable enough to deliver these correctly in all cases?
>
> Unless the encoding is something like EBCDIC (in which case all bets are
> off), the treatment of the characters &, #, 8, 2, 1, 7, and ; will be
> independent of the encoding. Which is actually the point in using numeric
> codes to represent these characters.
Hi Harlan and thanks for posting.
I don't know what you mean by what you just said (perhaps because it is four
a.m. and I am tired). Won't those characters in that order be recognized as
a character entity and be rendered as a curly apostrophe? What about in meta
tags such as description? Do I dare replace the straight apostrophes in the
description with the character entity for a curly apostrophe?



Posted by Harlan Messinger on July 31, 2007, 9:13 am
Please log in for more thread options


The Bicycling Guitarist wrote:
>> Andy Dingley wrote:
>>> On 31 Jul, 09:07, "The Bicycling Guitarist"
>>>> I am replacing straight vertical apostrophes with &#8217; throughout
>>>> my web site.
>>> Why?
>>>
>>> Are you certain that your management of encoding is accurate and
>>> reliable enough to deliver these correctly in all cases?
>> Unless the encoding is something like EBCDIC (in which case all bets are
>> off), the treatment of the characters &, #, 8, 2, 1, 7, and ; will be
>> independent of the encoding. Which is actually the point in using numeric
>> codes to represent these characters.
> Hi Harlan and thanks for posting.
> I don't know what you mean by what you just said (perhaps because it is four
> a.m. and I am tired). Won't those characters in that order be recognized as
> a character entity and be rendered as a curly apostrophe?

Yes.

> What about in meta
> tags such as description? Do I dare replace the straight apostrophes in the
> description with the character entity for a curly apostrophe?

Yes, and for the same reason. The title is different--since the title is
typically rendered by the operating system (for example, in the Internet
Explorer window's caption bar) rather than by the browser's
HTML-rendering engine, I think there can be problems.

Similar ThreadsPosted
Named vs. numerical entities July 16, 2004, 1:47 am
Using character entities in us-ascii July 26, 2004, 5:31 am
What is the different between "title" and "alt" for html tag "img"? October 29, 2004, 12:39 pm
Image in the title January 7, 2005, 4:09 pm
"Relocate" in Title tag May 9, 2005, 6:40 am
alt vs title for img tags August 18, 2006, 2:46 pm
The title attribute December 18, 2007, 5:45 pm
SGML entities: browser support? March 8, 2005, 9:11 am
HTML entities from input fields January 11, 2006, 9:25 am
character entities in news groups June 18, 2006, 6:18 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap