+ 1
Is it compulsory to add "/" after br tag in html.
Whenever I make a Web page and I add "br" tag in it i always forgot to add "/" sign but I don't see any problem because of this.
6 Antworten
+ 2
No, You can use br tag as <br>
+ 1
in html 5 u don't need to close the empty tags.. it is acceptable without the backslash
+ 1
HTML5 had change a lot of things. Like the slash that you mention.
But try not to forget it.
It's not a good habit, your code will be ugly to the senior or architect developers that will saw your portfolio...
0
browsers takes care of it. because HTML is case insensitive. u can use HTML tags in upper case or Lowe case.
0
that states the end of the break statement