Back to Freecodecamp

Step 6

curriculum/challenges/english/blocks/workshop-cafe-menu/5f344fad8bf01691e71a30eb.md

latest913 B
Original Source

--description--

Until now, you've had limited control over the presentation and appearance of your content. To change that, add a style element within the head element.

--hints--

Your code should have an opening <style> tag.

js
assert.match(code, /<style\s*>/i);

Your code should have a closing </style> tag.

js
assert.match(code, /<\/style\s*>/);

Your style element should be nested in your head element.

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

--seed--

--seed-contents--

html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
--fcc-editable-region--
    
--fcc-editable-region--
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>