1.2 KiB
1.2 KiB
id | title | challengeType | dashedName |
---|---|---|---|
60f027c87bc98f050395c139 | Passo 3 | 0 | step-3 |
--description--
Em seguida, adicione as tags de abertura e fechamento de head
e body
dentro do elemento html
.
--hints--
Você deve ter uma tag de abertura para head
.
assert(code.match(/<head\s*>/i));
Você deve ter uma tag de fechamento para head
.
assert(code.match(/<\/head\s*>/i));
Você deve ter uma tag de abertura para body
.
assert(code.match(/<body\s*>/i));
Você deve ter uma tag de fechamento para body
.
assert(code.match(/<\/body\s*>/i));
Os elementos head
e body
devem ser irmãos.
assert(document.querySelector('head')?.nextElementSibling.localName === 'body');
O elemento head
deve estar dentro do elemento html
.
assert([...document.querySelector('html')?.children].some(x => x?.localName === 'head'));
O elemento body
deve estar dentro do elemento html
.
assert([...document.querySelector('html')?.children].some(x => x?.localName === 'body'));
--seed--
--seed-contents--
--fcc-editable-region--
<!DOCTYPE html>
<html>
</html>
--fcc-editable-region--