Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-picasso-painting/step-003.md
Nicholas Carrigan (he/him) b36cdbafd1 chore: rename "part" to "step" (#43934)
* chore: rename part to step

* chore: update metas

* chore: more renaming

* chore: update tooling

* chore: update frontmatter

* chore(tools): title testing
2021-10-21 18:07:52 +01: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>