+ 10

How can be <br> printed as<br> in the webpage in html?

26th Feb 2018, 3:39 PM
Aditi Bansal
Aditi Bansal - avatar
4 Antworten
+ 9
thanks everyone but in the first suggestion <br> is not comimg
26th Feb 2018, 4:08 PM
Aditi Bansal
Aditi Bansal - avatar
+ 7
You have to escape it: &lt;br&gt;
26th Feb 2018, 3:46 PM
Christian P.
Christian P. - avatar
+ 2
the break line cannot be printed as <br> because the browser will render it as it considers it to be a tag..
26th Feb 2018, 3:49 PM
Juniorbuba
Juniorbuba - avatar
+ 1
try enclosing it in double quotes. Check if it works.
3rd Mar 2018, 1:49 AM
Ayush Biswal
Ayush Biswal - avatar