+ 1

Why the break tag<br/> Is used here in table data or table column?

<table border="2"> <tr> <td>Red</td> <td>Blue</td> <td>Green</td> </tr> <tr> <td><br /></td> <td colspan="2"><br /></td> </tr> </table>

14th Jul 2017, 3:19 PM
Selina Miraz
Selina Miraz - avatar
1 Answer
+ 6
To give an explicit empty content to the cell: you can replace it with the non breakable space '&nbsp;' which product quite same... It's because default behaviour of empty <td>s elements is to not be displayed if empty content (meaning including normal spaces and normal line breaks in html context).
14th Jul 2017, 3:28 PM
visph
visph - avatar