Appendix K Introduction to XHTML: Part 1 1441 (Web hosting plans)

Appendix K Introduction to XHTML: Part 1 1441 Lines 17 19 contain an e-mail link. The form of an e-mail anchor is . In this case, we link to the e-mail address deitel@deitel.com. K.7 Images The examples discussed so far demonstrated how to mark up documents that contain only text. However, most Web pages contain both text and images. In fact, images are an equal and essential part of Web-page design. The two most popular image formats used by Web developers are Graphics Interchange Format (GIF) and Joint Photographic Experts Group (JPEG) images. Users can create images, using specialized pieces of software, such as Adobe PhotoShop Elements and Jasc Paint Shop Pro (www.jasc.com). Images may also be acquired from various Web sites, such as gallery.yahoo.com. Figure K.7 demonstrates how to incorporate images into Web pages. Lines 16 17 use an img element to insert an image in the document. The image file s location is specified with the imgelement s src attribute. In this case, the image is located in the same directory as this XHTML document, so only the image s file name is required. Optional attributes width and height specify the image s width and height, respectively. The document author can scale an image by increasing or decreasing the values of the image widthand heightattributes. If these attributes are omitted, the browser uses the image s actual width and height. Images are measured in pixels ( picture elements ), which represent dots of color on the screen. The image in Fig. K.7 is 181pixels wide and 238pixels high. 1 2 4 5 6 7 8 9 10 11 12 13 14 15

16 C# How to Program book cover 18 19 Java How to Program book cover 21

22 23 24 Fig. K.7 Fig. K.Fig.Fi K.7g. K.77Placing images in XHTML files. (Part 1 of 2.) Fig. K.
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Leave a Reply