Harvey K.

asked • 06/12/18

I need help with my Computer Programming assignment.

Creating a CSS File
Look at the below code for a table. Write CSS code that makes this example look like the table in the image.

<html>
<head>
<title>A table example</title>
<link rel = "stylesheet" type = "text/css" href = "tablestyle.css">
</head>
<body>
<table border = "1">
<tr>
<th>Amount</th>
<th>Item</th>
</tr>
<tr class = "alternate">
<td>5</td>
<td>Carrots</td>
</tr>
<tr>
<td>200 ml</td>
<td>Orange Juice</td>
</tr>
<tr class = "alternate">
<td>350g</td>
<td>Sugar</td>
</tr>
<tr>
<td>1 teaspoon</td>
<td>Baking powder</td>
</tr>
</table>
</body>
</html>


Alt text : a table showing food items and their amounts

Type your response here:

1 Expert Answer

By:

Katharine B. answered • 06/12/18

Tutor
4.9 (48)

Effective Tutor Specializing in Math and Science

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.