curriculum/challenges/english/blocks/workshop-final-exams-table/66a9b8f14b963916a3baa732.md
To add a caption to a table, you can use the <dfn>table caption</dfn> element.
Here is an example using the caption element:
<table>
<caption>Football Scores</caption>
</table>
Inside your table element, nest a caption element with the text Calculus Final Exam Grades.
You should have an opening caption tag.
assert.match(code, /<caption>/i);
You should have a closing caption tag.
assert.match(code, /<\/caption>/i);
Your caption element should be inside your table element.
const captionEl = document.querySelector('caption');
assert.strictEqual(captionEl.parentElement.tagName, 'TABLE');
Your caption should have the text Calculus Final Exam Grades.
const captionEl = document.querySelector('caption');
assert.strictEqual(captionEl.innerText.trim(), 'Calculus Final Exam Grades');
<!DOCTYPE html>
<html lang="en">
<head>
<title>Calculus Final Exams Table</title>
<meta charset="UTF-8" />
</head>
<body>
<table>
--fcc-editable-region--
--fcc-editable-region--
</table>
</body>
</html>