HTML code using < and > does not seem to work
Posted on 2006-04-08
I have some code to put into my html page via Dreamweaver. For this question, I will present a comment line.
The code was given to me with entities > and < instead of > and <.
First off, I saw that semi-colons were absent. So I added ; to each > and <. Still does not work as described next.
I am supposed to use the first line below, but it does not work. It does not become a comment. In the second line, when I replace the entities with < and >, the line is commented out, that is, it works.
Does not work -----> <!-- entities test -->
Works -----> <!-- regular test -->
Two questions. First, why are the entities used instead of < and >.
Second, what is wrong with the line that does not work.