Exercise: A table
Add a table elementAn element for a table. (tag name table
), table row elementsAn element for the row of a table. (tag name tr
), table header elementsAn element for a header in a table. (tag name th
) and table data elementsAn element for a data item in a table. (tag name td
) to make a table like the one shown in the image. You do not need to change the CSS.

Note:
Hints:
- undefined
Solution to the exercise
Here is a solution to the exercise.
Notice that each table row element contains a table header element as well as table data elements.
Note:
Hints:
- undefined
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
<!DOCTYPE html>
<html lang="en">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
table {
border-collapse: collapse;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX