Image Tags3:44 with Treasure Porth
The image tag allows you to add photos and images to your web pages.
You can copy and paste the code snippet below to match the
src attribute used in the video to generate a new picture on reload, or you can visit the websites linked below to generate your own url!
If you're having trouble generating an image, you may want to make sure that you're typing
src correctly - it's easy to make spelling mistakes early on!
Image Tag Attributes:
alt - Short for alternative text, this attribute always goes on an <img> tag and should contain a short description of the image.
- src -Tells the browser where the image is located. You can link to an image from your website’s files, or from an outside URL.
You need to sign up for Treehouse in order to download course files.Sign up