1.2 KiB
1.2 KiB
id | title | challengeType | videoUrl | forumTopicId | dashedName |
---|---|---|---|---|---|
bad87fed1348bd9aedf08833 | Eliminare elementi HTML | 0 | https://scrimba.com/p/pVMPUv/ckK73C9 | 17559 | delete-html-elements |
--description--
Il nostro telefono non ha molto spazio verticale.
Rimuoviamo gli elementi inutili in modo da poter iniziare a costruire la nostra CatPhotoApp.
--instructions--
Elimina il tuo elemento h1
in modo da semplificare la vista.
--hints--
Il tuo elemento h1
dovrebbe essere cancellato.
assert(!code.match(/<h1>/gi) && !code.match(/<\/h1>/gi));
Il tuo elemento h2
dovrebbe essere presente nella pagina.
assert(code.match(/<h2>[\w\W]*<\/h2>/gi));
L'elemento p
dovrebbe essere presente nella pagina.
assert(code.match(/<p>[\w\W]*<\/p>/gi));
--seed--
--seed-contents--
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
--solutions--
<h2>CatPhotoApp</h2><p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>