* chore(curriculum): accessibility-quiz * chore(curriculum): cafe-menu * chore(curriculum): ferris-wheel * chore(curriculum): fix ferris-wheel tests * chore(curriculum): colored-markers * chore(curriculum): photo-gallery * chore(curriculum): magazine * chore(curriculum): penguin * chore(curriculum): city-skyline * chore(curriculum): registration-form * chore(curriculum): picasso-painting * chore(curriculum): balance-sheet * chore(curriculum): piano * chore(curriculum): rothko-painting * fix: title min 15 chars
1.2 KiB
1.2 KiB
id, title, challengeType, dashedName
id | title | challengeType | dashedName |
---|---|---|---|
60a3e3396c7b40068ad69979 | Step 16 | 0 | step-16 |
--description--
Add a new div
element inside of your .canvas
element.
Give the new div
the class
attribute with a value of one
. This will be your first rectangle.
--hints--
You should create a new div
element.
assert(document.querySelectorAll('div').length === 3);
You should nest the new div
element within your .canvas
element.
assert(document.querySelector('.canvas').children[0].tagName === 'DIV');
Your new div
should have a class
attribute with a value one
.
assert(document.querySelector('.canvas').children[0].className.split(' ').includes('one'));
--seed--
--seed-contents--
.canvas {
width: 500px;
height: 600px;
background-color: #4d0f00;
}
.frame {
border: 50px solid black;
width: 500px;
padding: 50px;
margin: 20px auto;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Rothko Painting</title>
<link href="./styles.css" rel="stylesheet">
</head>
<body>
<div class="frame">
<div class="canvas">
--fcc-editable-region--
--fcc-editable-region--
</div>
</div>
</body>
</html>