Use the figure Tag Semantically
HTML
Medium
4 views
Problem Description
Put a screenshot image and caption inside figure for meetcode.
Output Format
Print the HTML code.
Constraints
Use figure/figcaption.
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>
<main>
<figure>
<img src='screen.png' alt='meetcode screenshot'>
<figcaption>meetcode practice page</figcaption>
</figure>
</main>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!