Build a Heart Icon - Step 2

Tell us what’s happening:

it says it doesint have width and height attribute but they are there nomatter what i do it doesint workk need checking my code

Your code so far

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Heart Icon</title>
  </head>
  <body>

<!-- User Editable Region -->

    <svg>
    </svg>

<!-- User Editable Region -->

  </body>
</html>
<svg  <width> "24" <height> "24"viewBox="0 0 24 24">
  <svg\>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0

Challenge Information:

Build a Heart Icon - Step 2

Hi @acharyabhumanyu1

height and width are attributes not elements.

They each have a different syntax.

It looks like you created a new svg element after the closing html tag.

Please reset the step to restore the seed code and try again.

You need to modify the existing svg element nested in the body element.

Happy coding

Heres how the width and height attributes are properly typed inside the svg element:

<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>

<svg width="100" height="100">

you cant put width and height with <>