CBSE Class 10 Computer Applications Question 25 of 31

Solved 2024 Sample Question Paper CBSE Class 10 Computer Applications (165) — Question 3

Back to all questions
3
Question

Question 22(i)

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.

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>