Images in HTML.docx - Images in HTML The image tag allows you to add images to your page You might notice that this tag looks a little different than

Images in HTML.docx - Images in HTML The image tag allows...

This preview shows page 1 - 2 out of 2 pages.

Images in HTML The image tag allows you to add images to your page. You might notice that this tag looks a little different than those you've seen before. Unlike paragraph, header, or list tags, the image tag doesn't require a closing tag. All of the information needed to display your image is contained within the tag itself. Image Source and Alternate Text In order to tell the browser which file to use, extra information, called an attribute, is added to the image tag inside the brackets. The attribute src stands for source and tells the name of the image, and the attribute alt describes the image. 1. Create an image tag using the abbreviation img. This is considered a self closing tag, since it doesn't need to wrap text as many other tags do. The / right before the ending >
Image of page 1
Image of page 2

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture