Group Selectors

Group Selectors

Easy CSS CSS Foundations 25 views
Explanation Complexity

Problem Statement

Style h1 and h2 together to use the same color.

Input Format

No input.

Output Format

Print the HTML+CSS code in one block.

Constraints

Use selector grouping with a comma.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use selector grouping with a comma.

Examples

Input:
Output:
(HTML+CSS code)

Example Solution (Public)

CSS
<!doctype html>
<html lang='en'>
<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <title>meetcode</title>
  <style>
    h1, h2 { color: #0b5; }
  </style>
</head>
<body>
  <h1>meetcode</h1>
  <h2>Today: CSS practice</h2>
</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>
  <style>
    h1, h2 { color: #0b5; }
  </style>
</head>
<body>
  <h1>meetcode</h1>
  <h2>Today: CSS practice</h2>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.