|
Posted by Dan on 10/15/06 14:10
Beauregard T. Shagnasty wrote:
> jojo wrote:
>
> > MG wrote:
> >> How do I use hex-entities in HTML? I tried using %41 but it displays as %41,
> >> not as A.
> >
> > You can only use them in hyperlinks.
>
> Why only in links? This says "mailto:" (in lower case) no matter where
> you use it..
>
> mailto:
Those are numeric HTML character references using the ampersand syntax,
not hex entities using the percent-sign syntax. The former are part of
the HTML (and SGML and XML) syntax, while the latter are part of the
URI syntax; these are totally different things, even if both may be
used in the same document. To complicate things even further, you
might also have JavaScript and CSS embedded in the same document, with
their own syntax rules; and you might also generate the entire document
through a server-side language such as PHP or Perl, adding yet further
syntax rules to the mix. Maybe that server-side language also embeds
commands in yet another language such as SQL or Unix/Linux shell. I've
dealt with projects myself in which a large number of languages, and
character-escaping rules, applied all in the same file.
--
Dan
Navigation:
[Reply to this message]
|