Computer scienceFrontendHTMLBasic TagsTables

Tables: Merging cells

Shopping list

Report a typo

Create a table that looks like the one in the image below:

Small HTML table with caption

To create a border, use an HTML attribute with a value of 1.

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shopping list</title>
</head>
<body>

Shopping list

1.
T-Shirt
$24.99

2.
Jacket
$130

Total cost
$154.99

</body>
</html>
Completed 0 of 7
The table has border
The table has a caption
___

Create a free account to access the full topic