0

why all of these <br> <\br> and <br /> all works exactly same during html coding

24th Sep 2016, 7:52 PM
Ashutosh Jaiswal
Ashutosh Jaiswal - avatar
3 ответов
+ 1
br tag syntax will work in HTML files whether it be in <br> </br> or <br/> because br tag is compatible with all in HTML format and since its a empty hTML tag requires no closing tag. But XML(Extensible Mark up Language) requires br tag to have a closing tag and depending on br tag used output will be given.
27th Sep 2016, 6:11 AM
Sanjai Mampala
Sanjai Mampala - avatar
+ 1
All tags in XML must have a closing tag as a condition compared to HTML which doesnt require br to have closing tag.
27th Sep 2016, 9:39 AM
Sanjai Mampala
Sanjai Mampala - avatar
0
it means that there is no difference between the two as far as HTML is concerned and what differences are there in case of XML please give an example
27th Sep 2016, 7:50 AM
Ashutosh Jaiswal
Ashutosh Jaiswal - avatar