Row Header Example
HTML
Medium
2 views
Problem Description
Create a table where the first column is a row header (scope='row').
Output Format
Print the HTML code.
Constraints
Use th for row header.
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>
<table>
<tr><th></th><th scope='col'>Questions</th></tr>
<tr><th scope='row'>HTML</th><td>30</td></tr>
<tr><th scope='row'>CSS</th><td>30</td></tr>
</table>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!