Welcome to the Treehouse Community
Looking to learn something new?
Having trouble with a code challenge
Having trouble with the table code challenge that says, "Put two header cells with any text inside of the row you just created." Not sure what it means. This is the code I have so far:
<!DOCTYPE html> <html> <head> <title>HTML Tables Challenge</title> </head> <body> <h1>HTML Tables Challenge</h1>
<!-- Write your code below -->
<table> <tr> <thead><td></td></thead> <td></td> <td></td> </tr> </table
Joe Bissell13,107 Points
I'm pretty tired but I'm guessing it means this...
<table> <tr> <th> A table head </th> <th> Another table head </th> </tr> <tr> <td> Normal table data </td> <td> Normal table data </td> </tr> </table>
aaaaannnddd it would seem the code markdown didn't work facepalm. Never used them before and about to go sleep, sorry bout that :)
I can't figure out how to copy my code here. I made the changes you guys suggested and I feel like my answer is right but it is still failing me. Kinda hard to have a discussion about it without pasting code here.
I'm sure you already got past this part, but I had the same problem and finally figured it out. What they're asking is for you to add another header next to the one you've already created; that is, add a second header to the right/in the next cell. Why they worded it the way they did is beyond me.
Switch your thead tags to th tags and your code should work. I think thead is only supposed to be used so browsers can recognize it or whatever.
I am struggling with it too please help: put two header cells with any text inside of the row you just ceated.
<thead> <tr> <th>fruits</th> </tr> <tr> <th>vegetables</th> <th>wrong answer</th> <th>wrong too</th> </thead> </table>``` I tried different things but I am still stuck.