0% found this document useful (0 votes)
20 views1 page

HTML Tooltip and Image Exercises

This document contains an exercise on using HTML attributes. It provides 4 examples of adding or modifying attributes: 1) Adding a tooltip to a paragraph, 2) Setting image size attributes, 3) Adding a link URL to a hyperlink, and 4) Specifying alternate text for an image for accessibility. The goal is to practice properly using attributes to add additional information and functionality to HTML elements.

Uploaded by

Allan Yatuhac
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

HTML Tooltip and Image Exercises

This document contains an exercise on using HTML attributes. It provides 4 examples of adding or modifying attributes: 1) Adding a tooltip to a paragraph, 2) Setting image size attributes, 3) Adding a link URL to a hyperlink, and 4) Specifying alternate text for an image for accessibility. The goal is to practice properly using attributes to add additional information and functionality to HTML elements.

Uploaded by

Allan Yatuhac
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

HTML 

Attributes Exercises
Exercise:
1 Add a "tooltip" to the paragraph below with the text "About W3Schools".

<p  ="About W3Schools">W3Schools is a web developer's


site.</p>

2 Set the size of the image to 250 pixels wide and 400 pixels tall.

<img src="[Link]" width=" " height=" ">

3 Make the element below into a link that goes to


"[Link]

<a  "[Link] is a link</a>

4 Specify an alternate text for the image.

Alternate text is useful when the image cannot be displayed, like when the page
is read by a screen reader.

<img src="[Link]"  ="w3schools Logo">

You might also like