課程參予-筆記05

[XHTML]-Images

1.The img element's src attribute specifies an
image's location

2.Every img element must have an alt attribute,
which contains text that is displayed if the client
cannot render the image
– The alt(圖顯示不出來時,則會顯示文字) attribute makes web pages more accessible to
users with disabilities, especially vision impairments
– Width and height are optional attributes

3.If omitted, the browser uses the image’s actual width and
height

4.Images are measured in pixels