+ 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 />

9th May 2019, 4:40 PM
Sameer Ahmed
2 Respostas
+ 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
9th May 2019, 5:27 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
0
In html it is <br/> and <hr/> (These are not container tags)
1st Apr 2020, 1:51 PM
Md Sarwar Ahmed
Md Sarwar Ahmed - avatar