2.2 KiB
2.2 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
587d778f367417b2b2512aae | Give Links Meaning by Using Descriptive Link Text | 0 | Dar sentido de links usando texto de link descritivo |
Description
a
). Ter uma lista de links "clique aqui" ou "leia mais" não é útil. Em vez disso, você deve usar um texto breve, mas descritiva nos a
tags para proporcionar mais significado para esses usuários. Instructions
undefined
Tests
tests:
- text: Seu código deve mover a âncora com <code>a</code> tag em torno das palavras "Clique aqui" para envolver as palavras "informações sobre baterias".
testString: 'assert($("a").text().match(/^(information about batteries)$/g), "Your code should move the anchor <code>a</code> tags from around the words "Click here" to wrap around the words "information about batteries".");'
- text: Verifique se o seu <code>a</code> elemento tem uma marca de fechamento.
testString: 'assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(/<a href=(""|"")>/g).length, "Make sure your <code>a</code> element has a closing tag.");'
Challenge Seed
<body>
<header>
<h1>Deep Thoughts with Master Camper Cat</h1>
</header>
<article>
<h2>Defeating your Foe: the Red Dot is Ours!</h2>
<p>Felines the world over have been waging war on the most persistent of foes. This red nemesis combines both cunning stealth and lightening speed. But chin up, fellow fighters, our time for victory may soon be near. <a href="">Click here</a> for information about batteries</p>
</article>
</body>
Solution
// solution required