+ 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?

7th Feb 2018, 11:37 AM
tf2_mandeokyi
tf2_mandeokyi - avatar
4 Answers
7th Feb 2018, 12:17 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 5
Use character entities &lt; for '<' and &gt; for '>'.
7th Feb 2018, 11:34 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 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">" -->
7th Feb 2018, 11:49 AM
tf2_mandeokyi
tf2_mandeokyi - avatar
0
On a keyboard or a mobile ? As litereral character or as part if a tag ?
7th Feb 2018, 11:36 AM
sneeze
sneeze - avatar