What is the format of img url to be used?

Tell us what’s happening:

Your code so far****Tell us what’s happening:

please give me an explanation

Your code so far


<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
<img src "https://en.wikipedia.org/wiki/File:Ajit_Pai_portrait_2018.jpg" alt="Author standing on a beach with two thumbs up.">

<img src "https://bit.ly/fcc-relaxing-ca" alt="Author standing on a beach with two thumbs up.">

<!-- the first img code doesnt work but the second works -->

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0.

Challenge: Add Images to Your Website

Link to the challenge:

  1. width: 291px;
  2. height: 389px;

extremely sorry sir but i didnt get you

You asked for the format of the img url right?

that url being: “https://en.wikipedia.org/wiki/File:Ajit_Pai_portrait_2018.jpg

the format is

  1. width: 291px;
  2. height: 389px;
    that is the format of the image that is used

sir the problem is like
iam not able to get that image on the output but the second url of fcc cat works
Why is this happening?

The general syntax for HTML attributes is:

name = value

So, for the img element you would need to use the following syntax:

<img src = "url" alt = "description">

Can you spot what your code is missing? :thinking:

1 Like

yes sir
the equals symbol
but still image is not generating, is it the problem of link?

https://en.wikipedia.org/wiki/File:Ajit_Pai_portrait_2018.jpg” alt=“Author standing on a beach with two thumbs up.”>