printing "<html>" using html
Solution 1:
Use HTML character references:
<html>
Should output
<html>
Solution 2:
Try doing:
<html>
Solution 3:
Special characters in HTML, such as '<', '>', '"' and '&' can be printed using the following format:
&name;
where name would be replaced by a character name. The most common would then be
< = < (less than)
> = > (greater than)
& = & (ampersand)
" = " (double quote)
So to write <html> you would write in HTML:
<html>
Solution 4:
If you want to display <html>
literally, use reference to represent the tag open delimiter <
and the tag close delimiter >
, for example:
<html>
This will then be displayed as:
<html>