Skip to content
Sign upLog in
← Back to Community

Help!

Profile icon
JaatboyIndia263Khatavking

Can anyone tell me how to add an image to my web page n html as code given below

<img src="https://replit.com/@KaustavSiwach/Personal-Blog-Site#images/rss-icon.png>
help!
Stucked

Answered by sn236 [earned 5 cycles]
View Answer
Voters
Profile icon
JaatboyIndia263Khatavking
Comments
hotnewtop
Profile icon
sn236

To do that you should have the basic html tags, which is there by default, and as you can see it's inside the images folder so the syntax would be -

<img src="images/rss-icon.png">

Add this. If your question has been answered pls tick my answer

Profile icon
JaatboyIndia263Khatavking

@sn236

Thank's dude you helped me a lot

Profile icon
sn236

@KaustavSiwach
No problem

Profile icon
CodingElf66

Add a file called script.js, and inside, attach the following code:

link = document.getElementById('link'); document.write('<img src="' + link + '"></img>')

And, in inde.html, add the following code:

<input id="link" type="text" placeholder="Image URL"></input>