Hint- New div element should have a closing tag
**Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colored Markers</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>CSS Color Markers</h1>
<div class="container">
<div class="marker">
</div>
</body>
</html>
/* file: styles.css */
h1 {
text-align: center;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0
Challenge: Step 10
Link to the challenge:
2 Likes
You are missing the nested div element’s closing tag.
<body>
<h1>CSS Color Markers</h1>
<div class="container">
<div class="marker">
</div>
</body>
<div class="container">
is missing the </div>
closing tag which would look like this <div class="container"></div>
. It is important to add the closing tag once to indicate where the tag starts and stops.
Note: not all tags require closing tags (e.g. <input>
tags)
Did that too, but closing tag for <div class="container"
right after it, seems to not be working.
<div class="container">
</div>
<div class="marker">
</div>
Though this seems to be working.
<div class="container">
<div class="marker">
</div>
</div>
Btw, thanks.
1 Like
system
Closed
December 19, 2022, 10:22pm
7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.