THIS IS MY HAVING FUN WITH ENTITIES PAGE

If we want to use some outlandish characters, here is where we learn how we do it.

The first thing to do is to figure out the greater than and less than arrows, since they are used to define all the HTML code we are writing. How do I get a < or a >? Well, that's interesting - they just appear as normal, in both Firefox and Safari. This is not to say this will be true on all browsers on all devices. That is why, strictly, we should use - & gt ; or & lt ; to get > or <
Anyway, moving on to symbols that are really not available on my keyboard. Again, I'm first writing out the code, but adding spaces between the elements so it is not seen as cude, but just treated as plain text, and will therefore appear on the page. Than I write the code properly, so that the symbol or entity appears on the page.

& copy ; - gives us -    : ©
& pound ; - gives us -     : £
& radic ; - gives us -     : √
& alpha ; - gives us -     : α


All very nice. But how about something completely different. Symbols can also be defined by their ASCII, or, in the following example, their Unicode number.
Now, how about my name in Hebrew?
Paul Dovell

ל ב ו ד ל ו פ
That is really interesting - if I write the character sets from right to left, as I would if I was writing Hebrew, they display on the page from left to right - backwards. Reading this Hebrew, from right to left, it says Lovod Lop. That's not so wonderful. I don't really want my name backwards.
So I'll try again, but this time I'm writing the code from left to right, and the Hebrew will display from right to left
פ ו ל ד ו ב ל
  That's better!

Click to go to home