Is it not possible to write '<html>' or any tag or element in paragraph as text, with greater and smaller sign.? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it not possible to write '<html>' or any tag or element in paragraph as text, with greater and smaller sign.?

8th Jul 2017, 1:58 PM
Shivanshu
1 Answer
+ 4
'<', '>' and some other characters aren't less or more safe in an html document... It's obvious for few character (as the angular brackets which have special meaning in an html document), a few less for others... to 'escape' these special characters, Html provide 'html entities', which are of the form: &name; The '&' is used as a maker to specify that an html entity name is starting until the next semi colon (;)... So the next obviously very unsafe character is the '&', wich need to be safe write under it html entities form: &amp; Anyway, html entities offer a way to write non easily/quickly typable character on a keyboard (such as specific char code page of utf-8) for a lot of most and less most used symbols.. https://dev.w3.org/html5/html-author/charref https://www.freeformatter.com/html-entities.html
8th Jul 2017, 2:57 PM
visph
visph - avatar