Accessible Table Caption and Summary Text
HTML
Medium
2 views
Problem Description
Create a caption and a short paragraph above the table describing it.
Output Format
Print the HTML code.
Constraints
Use a paragraph and caption.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
</head>
<body>
<p>This table shows how many questions are in each topic.</p>
<table>
<caption>meetcode question counts</caption>
<tr><th>Topic</th><th>Count</th></tr>
<tr><td>HTML</td><td>30</td></tr>
</table>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!