how can we display <,> and & symbols on a webpage
Answers
Answered by
10
To use some special symbols in a webpage, you must use character entities.
The character entity for < is < and for > is >
Example:
<body>
This is less than sign - < <br>
This is greater than sign - >
</body>
The character entity for < is < and for > is >
Example:
<body>
This is less than sign - < <br>
This is greater than sign - >
</body>
Answered by
7
By using character entities.
if you want to display less than sign(<) - <
if you want to display greater than sign(>) - >
if you want to display & symbol - &
if you want to display less than sign(<) - <
if you want to display greater than sign(>) - >
if you want to display & symbol - &
Similar questions