mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
1.1 KiB
1.1 KiB
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 60b80da8676fb3227967a731 | Passo 3 | 0 | step-3 |
--description--
Vincule o arquivo CSS agora, mesmo que você ainda não tenha escrito o CSS.
Adicione um elemento link com um rel de stylesheet e um href de styles.css.
--hints--
O código deve ter um elemento link.
assert.match(code, /<link/)
O elemento link deve ser de fechamento automático.
assert(code.match(/<link[\w\W\s]+\/>/i));
O elemento link deve estar dentro do elemento head.
assert(code.match(/<head>[\w\W\s]*<link[\w\W\s]*\/>[\w\W\s]*<\/head>/i))
O elemento link deve ter o atributo rel com o valor stylesheet.
assert.match(code, /<link[\s\S]*?rel=('|"|`)stylesheet\1/)
O elemento link deve ter o atributo href com o valor styles.css.
assert.match(code, /<link[\s\S]*?href=('|"|`)(\.\/)?styles\.css\1/)
--seed--
--seed-contents--
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Picasso Painting</title>
--fcc-editable-region--
--fcc-editable-region--
</head>
<body>
</body>
</html>