HTML SVG Basics Introduction to SVG Create an SVG Image

Mahin Rahman
Mahin Rahman
7,037 Points

Couldn't solve "Add the file star.svg to the page using the <img> element. The file is located inside the img folder."

I tried different ways but couldn't get this solved. Any idea what went wrong??


<!DOCTYPE html>
    <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">

    <h1>SVG Example</h1>

    <div class="wrapper">

      <!-- Add your code below this line -->
        <img src="../img/star.svg" alt="My Image" style="width:400px"> 



2 Answers

Phil Livermore
Phil Livermore
6,001 Points

Remove the ../ in front of img in the src.

Mahin Rahman
Mahin Rahman
7,037 Points

hi i figured that out later, but thanks anyway :)