I am looking for a way to void html code so it just displays as text. How can i do this? It is for a wordpress blog post and i don't want to alter the code's appearance at all.
I simply don't want the browser to read a portion of html code..i wan't the code to display as text. I don't know how much more simply i can explain it.
You want to display html code as text in your website? Try this: http://www.accessify.com/tools-and-wizards/developer-tools/quick-escape/
If you don't want the browser to read a seciton of HTMl code you would "comment" it out. <!-- anything between these tags will not be displayed in a browser -->
hmm, that looks like a cool tool but for some reason it doesn't work for me..the browser still reads the text as html. also, if i try using the <code></code> insert, it doesn't work..any other suggestions?
ok, i think my problem is that i was inserting into the visual option and not the HTML..it works now thanks! -rep added
You need to use symbols. If you used the < sign in the code itself, then it will not appear as is part of the syntax for the tags. http://www.yellowpipe.com/yis/tools/ASCII-HTML-Characters/index.php This has a table of all the codes you will need. Either place the HTML number (<) or the HTML name (< in the place of the < character (or any that is part of the html syntax) and it will appear as < on the browser rendered page. The & sign and the ; have to be included as it tells the browser it is about to display a special character.