CHAPTER 6

Adding Images

Are you ready to add images to your web page? Images include photographs, logos, clip art, backgrounds, clickable buttons, and more. You can insert images into your web page using the <img> tag and adjust the alignment and padding of the images using CSS style sheets. You can also use HTML5 code to add captions to your images. Understanding how to place images on a web page is important because photos and illustrations can be key to adding visual appeal.

image

Understanding Web Page Images

Insert an Image

Specify an Image Size

Add Alternative Text

Create an Image Label

Add an Image as a Figure

Align an Image Horizontally

Align ...

Get Teach Yourself Visually™ HTML5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.