The HTML <img>
tag is
used to embed an image in a web page. Images are not technically inserted into a web page; images are linked to web pages. The <img>
tag
creates a holding space for the referenced image.
<img>
tag does
not have a closing tag.
<img>
tag
has two required attributes:
Note: in our webpage project we won't add the alt description or the closing slash.
You can use the width and height attributes. It's best to just use one or the other so your image stays proportional (doesn't get stretched or squished).
In a new tab in Chrome, search for a picture for your first topic.
When you found a picture you want to use, right-click on the preview and “Copy image address”.
In your code, paste the image address (CTRL+V) between the quotation marks.