+ 2
Is it <br>or <br />for a line break and <hr> or <hr /> for a horizontal line in html4 and what is a thematic break html5
Says online that html does not have a ending tag for the above mentioned but in xml the "ending tag" is <br />
2 Réponses
+ 1
You can use both doesn't matter but if you try it in JavaScript it will be...
var br= document.createElement("br");
document.body.appendChild(br)
console.log(document.body.innerHTML)
It will be <br> so I prefer it
0
In html it is <br/> and <hr/>
(These are not container tags)