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 ...
Get Practical Web Technologies 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.