0
How to print <a> text which is also a tag on the web page ?
9 Answers
+ 8
try this, replace < to < and > to >
https://stackoverflow.com/questions/6817262/how-to-display-html-tags-as-plain-text
+ 3
<pre><a></pre>
*Edited: wrong way to do.
+ 2
@Leon one is the right way to do.
The correct pre tag way is
<pre><xmp><a></xmp></pre>
Sorry for the mistake.
+ 2
@Nitesh one is the right way to do.
+ 2
<a> where < is the symbol for less than < and > is greater than > so you have <a> Trying other methods like <code><a></code> would still make the a tag run as part of the cod
+ 1
it is done by only <xmp><a></xmp>
you can check
i checked it
+ 1
ok
0
this is not working
0
i tried it