1.9 KiB
1.9 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aedf08817 | Make Dead Links Using the Hash Symbol | 0 | Faça links mortos usando o símbolo Hash |
Description
a
elementos para o seu site antes que você sabe onde eles vão ligar. Isso também é útil quando você está alterando o comportamento de um link usando JavaScript
, sobre o qual aprenderemos mais tarde. Instructions
href
é um link que aponta para "http://freecatphotoapp.com". Substitua o valor do atributo href
por um #
, também conhecido como um símbolo de hash, para criar um link inativo. Por exemplo: href="#"
Tests
tests:
- text: 'Sua <code>a</code> elemento deve ser um link morto com o valor do <code>href</code> atributo definido como "#".'
testString: 'assert($("a").attr("href") === "#", "Your <code>a</code> element should be a dead link with the value of the <code>href</code> attribute set to "#".");'
Challenge Seed
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="http://freecatphotoapp.com" target="_blank">cat photos</a>.</p>
<img src="https://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>
Solution
// solution required