Computer Science, asked by AMARDEEPSINGH11, 1 year ago

how can we display <,> and & symbols on a webpage

Answers

Answered by zerodown1024
10
To use some special symbols in a webpage, you must use character entities.
The character entity for is &lt; and for is &gt;

Example:
<body>
This is less than sign - &lt; <br>
This is greater than sign - &gt;
</body>


Answered by siddhartharao77
7
By using character entities.

if you want to display less than sign(<) - &lt;

if you want to display greater than sign(>) - &gt;

if you want to display & symbol - &amp;
Similar questions