Font Weight Contrast
CSS
Easy
2 views
Problem Description
Make a heading bold and helper text lighter.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use font-weight values.
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>
<style>
h2 { font-weight: 700; margin-bottom: 4px; }
.help { font-weight: 400; color: #555; margin-top: 0; }
</style>
</head>
<body>
<h2>CSS Basics</h2>
<p class='help'>Short lessons on meetcode.</p>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!