+ 1
How to write '<' or '>' in HTML?
when I write '<' or '>' in html, ( <p>#include <stdio.h></p> <!-- I want to print <stdio.h> --> ) it didn't printed. how can I print it?
4 Answers
+ 3
Here's a sample code:
https://code.sololearn.com/WTn77yyBQaHL/?ref=app
+ 5
Use character entities < for '<' and > for '>'.
+ 1
<p>#include '<stdio.h>'</p> <!-- print result: #include '' -->
<p>#include '<'stdio.h'>'</p> <!-- print result: #include '<'stdio.h'>' -->
<p>#include "<stdio.h>"</p> <!-- print result: #include "" -->
<p>#include "<"stdio.h">"</p> <!-- print result: #include "<"stdio.h">" -->
0
On a keyboard or a mobile ?
As litereral character or as part if a tag ?