Back to Freecodecamp

Step 5

curriculum/challenges/english/blocks/workshop-magazine/614e0e588f0e8a772a8a81a6.md

latest1.5 KB
Original Source

--description--

Your image currently takes up a lot of space. To better see what you are working on, add a width attribute to the img element, with a value of 400.

You will remove this later on when you have worked on the CSS.

--hints--

Your img element should have a width attribute set to 400.

js
assert.equal(document.querySelector('img')?.getAttribute('width'), '400');

--seed--

--seed-contents--

html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Magazine</title>
    <link
      href="https://fonts.googleapis.com/css?family=Anton%7CBaskervville%7CRaleway&display=swap"
      rel="stylesheet"
    />
    <link
      rel="stylesheet"
      href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
    />
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
--fcc-editable-region--
    <main>
      <section class="heading">
        <header class="hero">
          
          <h1 class="hero-title">OUR NEW CURRICULUM</h1>
          <p class="hero-subtitle">
            Our efforts to restructure our curriculum with a more project-based
            focus
          </p>
        </header>
      </section>
    </main>
--fcc-editable-region--
  </body>
</html>
css