Appendix I Introduction to (Multiple domain web hosting) HyperText Markup Language 4:

Appendix I Introduction to HyperText Markup Language 4: Part 1 1383 12 13 14

Demonstration of the alt attribute

16 17 18 Fig. I.5 Fig. I.Fig.Fi I.5g. I.55Placing images in HTML files. (Part 2 of 2.) Fig. I. The image in this code example is inserted in lines 14 and 15:

Demonstration of the alt attribute

You specify the location of the image file in the img element. This is done by adding the src = “location”attribute. You can also specify the height and width of an image, measured in pixels. The term pixel stands for picture element. Each pixel represents one dot of color on the screen. This image is 181 pixels wide and 236 pixels high. Good Programming Practice I.8 Always include the height and the width of an image inside the img tag. When the browser loads the HTML file, it will know immediately how much screen space to give the image and will therefore lay out the page properly, even before it downloads the image. Common Programming Error I.2 Entering new dimensions for an image that changes its inherent width-to-height ratio distorts the appearance of the image. For example, if your image is 200 pixels wide and 100 pixels high, you should always make sure that any new dimensions have a 2:1 width-to-height ratio. The alt attribute is required for every img element. In Fig. I.5, the value of this attribute is alt = “Demonstration of the alt attribute”
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

Leave a Reply