In other words, you want to type some text that looks like HTML, but you don't want the browser to render it as HTML; you want it to look like the text you typed. This might be done in tutorials about HTML, with code samples, and so on.
If there is only one or two tags, you can escape them using character entities. The string < will render as < while > renders as >. On the other hand, you might need to show a lot of code.
If you are using XHTML, just enclose the text you want left alone with an unescaped character data section:
=====
Today, I want to talk about div tags. Look at this:
div tags are great
]]>
=====
The text "
" inside the CDATA section will be left alone as unescaped character data and will not be interpreted by the browser as a paragraph tag. The browser knows not to interpret anything inside the section as XML.
If you are using HTML, the only answer is to replace all < symbols with < and all > symbols with > in those sections of code. This can be done dynamically using XSLT or PHP, or it can be done manually by using the Find & Replace function in Wordpad. ;-)
2006-06-07 12:49:55
·
answer #1
·
answered by Ron 6
·
1⤊
0⤋
Ive never used myspace but if you have the html page just open it up using notepad or if you have dreamweaver of front page , they have a code view window ( Just need to figure out how to display the code using them ) Using note pad is the easiest though :)
2006-06-07 18:57:07
·
answer #2
·
answered by gecko_au2003 5
·
0⤊
0⤋
Put and around it. This makes it look like typewriter letters. Use " & l t ;" and " & g t ;" for the brackets. (Myspace doesn't accept numbered character entities.)That should do it.
2006-06-07 19:04:27
·
answer #3
·
answered by FreddyBoy1 6
·
0⤊
0⤋
to make html examples in a web page you have to replace < with < and > with >
example
<font>
to get this
i had to do something special to < and > to get them to show up in here or they would have made < and > when i clicked submit.
2006-06-08 13:42:15
·
answer #4
·
answered by Anonymous
·
0⤊
0⤋