0

html empty tags

why there is a"/"in empty tags such as <br/> ??? Is there any difference between <br> and <br/> ??

6th Oct 2017, 2:45 PM
Tharuja Sandeepanie
Tharuja Sandeepanie - avatar
2 odpowiedzi
+ 5
No, the "/" is optional
6th Oct 2017, 2:48 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
- 1
XHTML needs "/" at the end of empty tags, in HTML its optional.
6th Oct 2017, 5:35 PM
Freezemage
Freezemage - avatar