ha! strange html question!?

TROUBLE

New member
If i wanted to show someone an example of html code, but on a web page, how would i do this? For example, if i wanted to show the following sentence: This is a body tag <body> hello</body> then in my browser it would read: hello
How do i make it read: <body>hello</body>
 
These are known as HTML escape characters.

& - ampersand
indicates that there is going to be an escape character:

this is then followed by a hash and a number for the characters ascii code eg #123
or certain commn notations eg:
lt - less than
gt - greater than
euro
nbsp - blank space character

then finsih with a semicolon

http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php here is a complete list
 
Back
Top