PDA

View Full Version : difference between <br> and <br \> in html and Xhtml



Xpert
10-04-2011, 07:10 PM
Most of the people don't know about the difference that what is the basic difference between the Xhtml and HTML so that they don't know that what is the <br> and <br \> Lets elaborate it.

As we know in XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML). But in HTML as we know that we can use the <br> so it works for empty elements in HTML.

Xpert
12-15-2011, 04:07 PM
welcome.....

ahsan_ali
12-21-2011, 12:47 AM
thanks.... :P

Xpert
12-21-2011, 01:06 AM
you are welcome itnay dino bad aya ho kahan thay.