+ 2
How to write code as output???
https://code.sololearn.com/W6ex7rqoMU7N/?ref=app write it down how to!
8 Answers
+ 1
u can put ur code between xmp tag.
+ 2
If you're saying that you want to present a fragment of HTML as code in an HTML page (for example) with <code>tag, then you need to "escape" the HTML tags so that the web client doesn't attempt to parse them.
To do this, you should use the entity >for the greater-than angle bracket, and < for the less-than bracket
+ 1
#saeed soltani
thanks bro but what is <code> use for??? as i have seen through challange questions!
+ 1
auhm!? didn't understand that!
.
+ 1
i want to show my ful written code from <!doctype html to </html> at end!
on output screen or at user's screen then how do i?
i know we can see code by developing tool ->console
but i just want codes as output
0
so whats problem in here?