1.1 KiB
1.1 KiB
id | title | challengeType | dashedName |
---|---|---|---|
612e78af05201622d4bab8aa | ステップ 3 | 0 | step-3 |
--description--
ではピアノに取り掛かりましょう。 div
要素を body
要素内に作成し、id
を piano
に設定してください。
--hints--
新しい div
要素を作成してください。
const div = document.querySelector('div');
assert.exists(div);
div
要素は body
要素の中にある必要があります。
const div = document.querySelector('div');
assert(div?.parentElement?.localName === 'body');
div
要素の id
の値は piano
に設定される必要があります。
const div = document.querySelector('div');
assert(div?.getAttribute('id') === 'piano');
--seed--
--seed-contents--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Piano</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
--fcc-editable-region--
--fcc-editable-region--
</body>
</html>