Use of symbols in HTML

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I thought that HTML didn't have symbols like :, & > etc and you needed
to use the &xxx; in their place.

I was playing about with a page and couldn't remember the correct
language so I just stuck the plain symbols in there, as I wasn't
worried if they'd work or not.

But they seem to work fine!  Was this just an issue with old browsers
or is it a quirk of the new ones?  I'm guessing standards based HTML
still requires the &xxx; format?

Re: Use of symbols in HTML

Spake sskett unto thee:

Quoted text here. Click to load it

You can use ":" with no problems at all, "&" should be written "&" to
avoid confusion with the beginning of a character entity, ">" should be
okay usually, but it can be confusing and so should be written as ">".

A list of such codes can be found on my site at

Dylan Parry - FREE Web tutorials and references

'I am a Bear of Very Little Brain, and long words bother me.' -- A A Milne

Site Timeline