2.0 KiB
2.0 KiB
id | title | challengeType | videoUrl | forumTopicId | dashedName |
---|---|---|---|---|---|
bad87fee1348bd9aedf08817 | Tornar links inativos usando o símbolo de hash | 0 | https://scrimba.com/p/pVMPUv/cMdkytL | 18230 | make-dead-links-using-the-hash-symbol |
--description--
Às vezes, você desejará adicionar elementos a
ao seu site antes de saber para onde eles levarão.
Isso também é útil quando você está mudando o comportamento de um link usando JavaScript
, linguagem que aprenderemos mais tarde.
--instructions--
O valor atual do atributo href
é um link que aponta para "https://www.freecatphotoapp.com
. Substitua o valor do atributo href
por um #
, também conhecido como símbolo de hash, para criar um link inativo.
Por exemplo: href="#"
--hints--
Seu elemento a
deve ser um link inativo com o valor do atributo href
definido como "#".
assert($('a').attr('href') === '#');
--seed--
--seed-contents--
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>.</p>
<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<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>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>
--solutions--
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#" target="_blank">cat photos</a>.</p>
<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<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>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>