Web Design

(Nancy Kaufman) #1

89


CHAPTER

Creating Images 3


Can I set the size of the image in my HTML?
The <img> tag does support optional width and
height attributes. Although including these
attributes is a good idea, you should always set
them to the actual dimensions of the image. Resizing
the image using HTML almost always degrades the
quality of the image; if you need to resize it, return
to your image editor and do it there.

How many images can I place on a page?
In theory, a single Web page can contain any
number of images. However, each image you add
does add additional loading time to the page, so
without careful optimization, pages with a lot of
images load very slowly.

● When viewed in a browser,
the image appears.

3 Type /> to finish the tag.


3


TIPS

Free download pdf