+ 1

Is it necessary to close tags(/>) of formatting styles?

I did not close some of the tags like italic, ins but still they worked. Pls explain

21st Sep 2016, 12:38 PM
Master Coder
Master Coder - avatar
2 Respostas
+ 2
In inline tag elements can normally displayed without break(<br>,<img>,<a>) .it is not necessary to put the break (<br/>,<img/>,<a/>).
21st Sep 2016, 12:54 PM
Bhupesh Kumar Sahu
Bhupesh Kumar Sahu - avatar
+ 1
For the most part unclosed tags will be automatically closed - but each browser treats an unclosed tag differently. Not only does it depend on your browser, it also depends on the doctype spec.
21st Sep 2016, 1:08 PM
Richard Blackburn
Richard Blackburn - avatar