0
What is the fucntion of the <br/> tag in this table code ??? 🤔🤔🤔😕
<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>
1 Resposta
+ 3
The <br> in this example stops the table cells from collapsing.
Remove the br tags to see what I mean. Between the opening and closing td tags, there is usually content for the cell.
Sometimes as I'm designing tables without content yet, I'll throw " " into the td cell.
This is html code for a space and stops the table cells collapsing .