O'Reilly logo

Practical Web Technologies by V. Lau, P. K. Yuen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.3. Using images on XHTML

Most popular browsers now support a large number of standard image formats. Two of them are introduced in this section: the “GIF” and “JPG (or JPEG)” images. They are special files used on computers to represent pictures, photos, and images. For example, the file mypict.jpg is a picture file called mypict in jpg format identified by the file extension jpg. The gif image files are also popular in the Web community and more details will be presented in sections 1.3.1 and 1.3.4.

Any supported images can be directly integrated into XHTML pages by using the classic image element <img>. Similar to the line-break element <br>, <img> is an empty element in XHTML (i.e., without an end element). You need to add “/” to close ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required