I think my finished table looks a lot like the one in the image provided, but this is a task that’s a bit more difficult to self assess. https://codepen.io/SnakeWhisperer/pen/mdWbprp Looks a bit different in codepen, actually, but much more similar in the MDN page.
I would also like to ask a question about border-collapse
, if I can.
Why can’t I define borders for <tbody>
or <tfoot>
, or even <tr>
without border-collapse
set—or border-collapse: separate
? I know it’s better to collapse them and it’s the idea of the task, but I noticed this and I’m trying to understand it. I had forgotten to set border-collapse: collapse
and realized that the whole table took its borders, but not the <tfoot>
. Tried with border-bottom
for <tbody>
but didn’t work either. <tr>
s didn’t work either.
I know there is a separation between cells with border-collapse: separate
; however, if <tr>
is still a single element, what happens to its borders? Same goes for <tbody>
and <tfoot>
.
Thanks in advance.