Span a <td> element across two columns

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

i don’t understand what is span a

element across two columns , hope you guy can help me
<do not remove the three backticks above>

Please provide a link to the exercise you are on :slight_smile:

1 Like

with the ‘colspan’ attribute you can make the width of 1 ‘td’ element, span(cover the width) over more than 1 colomn in a table. for example:

<table>
  <tr>
       <td colspan="2">span over 2 td elements</td>
  </tr>
  <tr>
      <td>first td</td>
      <td>second td</td>
  </tr>
</table>

you can see it more clearly in this link:
https://jsfiddle.net/kifkaf007/Lu2691zr/

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.