How to print <a> text which is also a tag on the web page ? | Sololearn: Learn to code for FREE!
0

How to print <a> text which is also a tag on the web page ?

18th Dec 2017, 5:40 AM
Nitesh Bhootra
Nitesh Bhootra - avatar
9 odpowiedzi
18th Dec 2017, 5:50 AM
Leon lit
Leon lit - avatar
+ 3
<pre><a></pre> *Edited: wrong way to do.
18th Dec 2017, 5:42 AM
Calviղ
Calviղ - avatar
+ 2
@Leon one is the right way to do. The correct pre tag way is <pre><xmp><a></xmp></pre> Sorry for the mistake.
18th Dec 2017, 6:01 AM
Calviղ
Calviղ - avatar
+ 2
@Nitesh one is the right way to do.
18th Dec 2017, 6:07 AM
Calviղ
Calviղ - avatar
+ 2
&lt;a&gt; where &lt is the symbol for less than < and &gt 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
18th Dec 2017, 7:51 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
it is done by only <xmp><a></xmp> you can check i checked it
18th Dec 2017, 6:05 AM
Nitesh Bhootra
Nitesh Bhootra - avatar
+ 1
ok
18th Dec 2017, 6:08 AM
Nitesh Bhootra
Nitesh Bhootra - avatar
0
this is not working
18th Dec 2017, 5:45 AM
Nitesh Bhootra
Nitesh Bhootra - avatar
0
i tried it
18th Dec 2017, 8:35 AM
Nitesh Bhootra
Nitesh Bhootra - avatar