KnowledgeBoat Logo
|

Computer Applications

Abhilasha has just designed a web page. At the end of the web page, she wants to insert an image "next.jpg".

She needs to link another web page with this image, i.e., whenever anyone click on the image "next.jpg", another web page named "second.html" should open. Help her in writing the code to achieve it.

Note: Assume that image and both the web pages are stored in the same folder.

HTML Intro

18 Likes

Answer

Abhilasha can insert the below HTML code at the end of the web page just before the closing body tag — </body>

<a href = "second.html">
    <img src = "next.jpg" alt = "Next Page">
</a>

Answered By

15 Likes


Related Questions