You can add hyperlinks to images instead of text by nesting the <img>
tag under the <a>
tag. Please be sure to carefully specify the following two paths: a hyperlink path and an image file path.
Add the following code in chapter4.html.
<br>
<br>
<a href="https://www.google.com/">
<img src="img/search-icon.jpg" alt="search" width = "50px">
</a>
Open the chapter4.html file with a browser and check if you can jump to Google.com by clicking the search icon.
You can add hyperlinks to images instead of text by nesting the <img>
tag under the <a>
tag. Please be sure to carefully specify the following two paths: a hyperlink path and an image file path.
Add the following code in chapter4.html.
<br>
<br>
<a href="https://www.google.com/">
<img src="img/search-icon.jpg" alt="search" width = "50px">
</a>
Open the chapter4.html file with a browser and check if you can jump to Google.com by clicking the search icon.