Table with Header Scope

Table with Header Scope

Easy HTML Tables & Lists 19 views
Explanation Complexity

Problem Statement

Make a table and set scope for column headers.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Use scope='col'.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Use scope='col'.

Examples

Input:
Output:
(HTML code)

Example Solution (Public)

HTML
<!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 scope='col'>Topic</th>
      <th scope='col'>Level</th>
    </tr>
    <tr>
      <td>HTML</td>
      <td>Easy</td>
    </tr>
  </table>
</body>
</html>

Official Solution Code

<!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 scope='col'>Topic</th>
      <th scope='col'>Level</th>
    </tr>
    <tr>
      <td>HTML</td>
      <td>Easy</td>
    </tr>
  </table>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.