br / HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

br / HTML

Hello I do not understand this <td><br /></td> How can explain what it does and what happens if we skip br /? I cannot find the difference and meaning

17th Apr 2018, 10:05 PM
Pavel
1 Answer
+ 2
<br /> is just a new line (an enter, to be clear), so you won’t be able to see anything inside the table cell, anyway with <td></td> your table cell would disappear, depending on the browser, unless you specify via css its behaviour: table { empty-cells: show; }
17th Apr 2018, 10:24 PM
Luigi
Luigi - avatar