HTML SVG Basics Introduction to SVG Create an SVG Image

I think there is a little bug. while adding image

pls check it :)

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Scalable Vector Graphics</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">
  </head>
  <body>

    <h1>SVG Example</h1>

    <div class="wrapper">

      <!-- Add your code below this line -->

      <img src="img/star.svg">
    </div>

  </body>
</html>

3 Answers

Jacob Mishkin
MOD
Jacob Mishkin
Treehouse Moderator 23,059 Points

There's no bug, you need to add an alt tag to you image.

Mario de Wolf
Mario de Wolf
4,272 Points

there are more things that have to change always make sure to close the img with a /> at the end and also put in a alt="#" try this code :

<img src="img/star.svg" alt="photo of a star" />

hope i could help you out to fix it. greetings Mario

thanks guys :)