curriculum/challenges/english/blocks/workshop-flappy-penguin/619692ff79f5770fc6d8c0b4.md
Above the .ground element, add a div with a class of penguin. This div will contain Flappy Penguin.
You should add a new div within the body.
assert.lengthOf(document.querySelectorAll('body > div'), 2);
You should give the div a class of penguin.
assert.include(document.querySelector('body > div:not(.ground)')?.className, 'penguin');
You should place div.penguin before div.ground.
assert.strictEqual(document.querySelector('.ground')?.previousElementSibling, document.querySelector('.penguin'));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="./styles.css" />
<title>Penguin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
--fcc-editable-region--
<body>
<div class="ground"></div>
</body>
--fcc-editable-region--
</html>
body {
background: linear-gradient(45deg, rgb(118, 201, 255), rgb(247, 255, 222));
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
overflow: hidden;
}
.ground {
width: 100vw;
height: 400px;
background: linear-gradient(90deg, rgb(88, 175, 236), rgb(182, 255, 255));
z-index: 3;
position: absolute;
}