information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader)... It's tellin[r]
Trang 22
Trang 4• Internal links
4
Trang 5• Adding images to web pages
Trang 6• <img> tag is used to add images to web pages
to indicate the source of the image
attributes only, and does not have a
closing tag.
6
Trang 7Images can be added as follows
– <img src=“image-name”>
– <img src=“abc.jpg”>
Trang 8• HTML Images Syntax
the <img> tag.
• The <img> tag is empty, it contains attributes only, and does not have a closing tag.
(web address) of the image:
• < img src="url" alt="some_text">8
Trang 9• The alt Attribute
text for an image, if the image cannot be displayed
information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or
if the user uses a screen reader)
Trang 10Images can be added as follows
to the browser that an image will go
here on the page
an attribute It's telling the browser
where to go to find the image
10