Learn HTML: Tables - Spanning Columns - Why is this wrong?


#1

I am on Step 7/13 on the Tables module of the 'Learn HTML course…

The instruction is “In index.html, span a <td> element across two columns.”

Can anybody tell me why this is wrong. I have looked over this ten times, and I think it’s right!? So confused…

Code is as follows (see attached screenshot.):

<tr>
  <td colspan='2'>Davie's Burgers</td>
  <td>2</td>
  <td>Send Invoice</td>
</tr>


#2

try using quotation marks around 2? it might not approve the use of apostrophes.


#3

But the result in the right hand side shows the element spanning correctly across two columns?


#4

Okay so that actually worked, it shows the correct result on the page, but gives an error in the code… as a learner that is just super confusing.


#5

yes, but the exercise uses regular expression for exercise validation, which might not like the apostrophe

look, i am only here on the forum to help, i am not going into a discussion about codecademy’s way of exercise validation.


#6

I’m not expecting you to, just sharing an observation…

Thanks for your input.


#7

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