HTML and CSS Reference
In-Depth Information
Q: You said that & is special and I
need to use the entity & in its place,
but to type in any entity I have to use a &.
So for, say, the > entity, do I need to type
>?
A: No, no! The reason & is special is
precisely because it is the first character of
any entity. So, it's perfectly fine to use & in
your entity names, just not by itself.
Q: Wow, I never knew the browser
could display so many different
characters. There are a ton of different
characters and languages at the
www.unicode.org site.
A: Be careful. Your browser will only
display all these characters if your computer
or device has the appropriate fonts installed.
So, while you can probably count on the
basic entities from the www.w3schools.com
page to be available on any browser, there is
no guarantee that you can display all these
entities. But, assuming you know something
about your users, you should have a good
idea of what kind of foreign language
characters are going to be common on their
machine.
Q: When I looked up the entities at the
www.w3cschools.com, I noticed that each
entity has a number too. What do I use
that for?
A: You can use either the number, like
&#100 or the name of an entity in your HTML
(they do the same thing). However, not all
entities have names, so in those cases your
only choice is to use the number.
Just remember to use & anytime you type in
an entity, and if you really need an & in your
content, use & instead.
Crack the Location Challenge
Dr. Evel, in his quest for world domination, has put up a private web page to be
used by his evil henchmen. You've just received a snippet of intercepted HTML
that may contain a clue to his whereabouts. Given your expert knowledge of
HTML, you've been asked to crack the code and discover his location. Here's a
bit of the text from his home page:
There's going to be an evil henchman meetup
next month at my underground lair in
Ðετröìτ.
Come join us.
Hint: visit http://www.w3schools.com/tags/ref_entities.asp
and/or type in the HTML and see what your browser displays.
Search WWH ::




Custom Search