PDA

View Full Version : HTML question



k0der
April 13th, 2011, 08:16 AM
<DIV class="educationlevel">< Year 10</DIV> - 1997-2000 - <I>Princes Hill Secondary College</I>

I am having a problem where "<" in "< Year 10" is being recognized as an opening tag, when really its not. Is there a way to make a hidden character, sort of like &nbsp, but without being a space?

deconstrained
April 13th, 2011, 08:45 AM
<DIV class="educationlevel">< Year 10</DIV> - 1997-2000 - <I>Princes Hill Secondary College</I>

I am having a problem where "<" in "< Year 10" is being recognized as an opening tag, when really its not. Is there a way to make a hidden character, sort of like &nbsp, but without being a space?

Use teh h3x c0de, duh.
http://www.ascii.cl/htmlcodes.htm

excelvou
April 13th, 2011, 08:55 AM
Use teh h3x c0de, duh.
http://www.ascii.cl/htmlcodes.htm


thanks alot,

user1397
April 13th, 2011, 09:01 AM
I always use w3schools' html reference page to look up anything like this. In your case I would look at the ASCII link on the left, but there are plenty of times when I have to look at the symbols or the ISO-8859-1 links.

http://w3schools.com/tags

Also, you don't have to capitalize any tags like, ever. Using lowercase for html is always preferred.

mcduck
April 13th, 2011, 09:36 AM
No need for a hex code for such a common symbol. This should be easier to remember:


&lt;
("lt" as in "lesser than")

user1397
April 13th, 2011, 10:33 AM
No need for a hex code for such a common symbol. This should be easier to remember:


&lt;
("lt" as in "lesser than")
i always try to use the non-hex code just because it is easier to remember and it looks a little cleaner if you know what i mean. but alas, there are some symbols that only have hex code...