Link to HTML tables course above.
The table looks completely wrong, I will paste the code below but for some reason the course does not correct me and I want to know how to make proper tables not just be passed. I feel like a failure that a teacher pitty passed.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Ship To It - Company Packing List</title>
<link href="https://fonts.googleapis.com/css?family=Lato: 100,300,400,700|Luckiest+Guy|Oxygen:300,400" rel="stylesheet">
<link href="style.css" type="text/css" rel="stylesheet">
</head>
<body>
<ul class="navigation">
<li><img src="https://content.codecademy.com/courses/web-101/unit-9/htmlcss1-img_logo-shiptoit.png" height="20px;"></li>
<li class="active">Action List</li>
<li>Profiles</li>
<li>Settings</li>
</ul>
<div class="search">Search the table</div>
<table>
<thead>
<tr>
<th scope="col">Company Name</th>
<td colspan="2">Adam’s Greenworks</td>
<th scope="col">Number of Items to Ship</th>
<td>14</td>
<th scope="col">Next Action</th>
<td rowspan="2">Package Items</td>
</tr>
<tbody>
<tr>
</tr>
<tr>
<td>Davie's Burgers</td>
<td>2</td>
<td>Send Invoice</td>
</tr>
<tr>
<td>Baker's Bike Shop</td>
<td>3</td>
<td>Send Invoice</td>
</tr>
<tr>
<td>Miss Sally's Southern</td>
<td>4</td>
<td>Ship</td>
</tr>
<tr>
<td>Summit Resort Rentals</td>
<td>4</td>
<td>Ship</td>
</tr>
<tr>
<td>Strike Fitness</td>
<td>1</td>
<td>Enter Order</td>
</tr>
</tbody>
</thead>
<tfoot>
<td>Total</td>
<td>28</td>
</tfoot>
</table>
</body>
</html>
Hi, there!
This is just a review section, so it doesn’t really correct you—as it’s just meant for going over what you learned.
However, I have some input for you.
<thead>
<tr>
<th scope="col">Company Name</th>
<td colspan="2">Adam’s Greenworks</td>
<th scope="col">Number of Items to Ship</th>
<td>14</td>
<th scope="col">Next Action</th>
<td rowspan="2">Package Items</td>
</tr>
At the beginning of your <table> you do not have a closing tag for your <thead> and the table headings are in the same row as the first row which is causing the “Adam’s Green Works,” “14,” and “Package Items” to be a part of the table head. Then for readability, you just want to make sure that everything is properly indented.