2.6 KiB
2.6 KiB
id | title | challengeType | videoUrl | forumTopicId | localeTitle |
---|---|---|---|---|---|
bad87fee1348bd9aedf08817 | Make Dead Links Using the Hash Symbol | 0 | https://scrimba.com/p/pVMPUv/cMdkytL | 18230 | Создание мертвых ссылок с использованием символа хэша |
Description
a
Это также удобно, когда вы меняете поведение ссылки с помощью JavaScript
, о чем мы узнаем позже.
Instructions
href
- это ссылка, которая указывает на «http://freecatphotoapp.com». Замените значение атрибута href
символом #
, также известным как хэш-символ, чтобы создать мертвую ссылку. Например: href="#"
Tests
tests:
- text: Your <code>a</code> element should be a dead link with the value of the <code>href</code> attribute set to "#".
testString: assert($("a").attr("href") === "#");
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
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#" 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>