DEV Community

Cover image for Adding images - HTML
Melina Caroline Bernard
Melina Caroline Bernard

Posted on

Adding images - HTML

•A picture is worth a thousand words!

•Web pages with images get more views, higher ranking in search results, and get shared more on social media

•Images are not technically inserted into a web page, they are linked.

< img src='URL'>

📎The source (src) points to where the image can be found. You'll use either:

1.An Absolute URL (a full link to an image on the internet).

2.A Relative Path (the location of a local file, which is how you'll add images to your own portfolio).

📎The image URL or path needs to be enclosed in either single or double quotes.

Top comments (0)