Inline vs Block Demo
CSS
Easy
2 views
Problem Description
Show one inline element and one block element with borders.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use span (inline) and div (block).
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>
span { border: 2px solid #0b5; padding: 4px; }
div { border: 2px solid #333; padding: 8px; margin-top: 12px; }
</style>
</head>
<body>
<span>inline meetcode tag</span>
<div>block meetcode section</div>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!