How do you make an image clickable in HTML? Give an example.
To create an image or text clickable hyperlinks are used, that use the < A > and < /A > tags. Such tag has different parameters, involving HREF(the URL), METHODs(access methods) and NMAE(the hyperlink name).
As an illustration consider the given HTML fragment:
< A HREF = "https://www.foobar.com" > Foobar Home Page< /A >
While a page with this fragment is displayed, therefore on the screen the following is shown:
Foobar Home Page
If the user clicks on it, the browser instantly fetches the page whose URL is https://www.foobar.com and displays this. Now we put an image in place of text. < A HREF = "https://www.foobar.com" > < IMG SRC = "img1.gif" ALT = "Foobar" < /A > while displayed this page demonstrates a picture(img1.gif). Clicking on the picture switches to foobar home page.