Files
Nicholas Carrigan (he/him) ff0fc1bdbf chore: rename picasso painting (#44209)
* chore: rename files

* chore: update codebase

* chore: proper title case

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-11-19 23:30:57 -06:00

1.3 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
60b80da8676fb3227967a731 Step 3 0 step-3

--description--

Go ahead and link your CSS file now, even though you have not written any CSS yet.

Add a link element with a rel of stylesheet, a type of text/css, and an href of styles.css.

--hints--

Your code should have a link element.

assert.match(code, /<link/)

Your link element should be a self-closing element.

assert(code.match(/<link[\w\W\s]+\/>/i));

Your link element should be within your head element.

assert(code.match(/<head>[\w\W\s]*<link[\w\W\s]*\/>[\w\W\s]*<\/head>/i))

Your link element should have a rel attribute with the value stylesheet.

assert.match(code, /<link[\s\S]*?rel=('|"|`)stylesheet\1/)

Your link element should have a type attribute with the value text/css.

assert.match(code, /<link[\s\S]*?type=('|"|`)text\/css\1/)

Your link element should have an href attribute with the value styles.css.

assert.match(code, /<link[\s\S]*?href=('|"|`)(\.\/)?styles\.css\1/)

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>freeCodeCamp Picasso Painting</title>
    --fcc-editable-region--

    --fcc-editable-region--
  </head>
  <body>
  </body>
</html>