Web Design

(Nancy Kaufman) #1

88


Add an Image to Your Web Page


2 Within the body, type <img
src=”?”, replacing? with
the path to your image.

1 Open the page to which you
want to add the image in
your Web editor.

Add an Image to Your Web Page


Y


ou can use the HTML <img> tag to add images to your page. The tag has a required attribute,
src, which takes a relative or absolute file path to the image you are adding. Unlike other tags

you have worked with, is an empty tag, meaning that it does not wrap around text, but


instead stands alone as an instruction to the browser to place an image at that point. If you are


using an XHTML document type, you must end the tag with a closing slash to designate it as empty.


1


2

Free download pdf