CBSE Class 10 Computer Applications Question 25 of 31

Solved Sample Paper 2 — Question 3

Back to all questions
3
Question

Question 22(i)

Write an HTML code to

(i) Create a link for garden.jpg located at D:\.

(ii) Display an inline image named pencil.jpg located at C: in the center of your web page.

Answer

(i)

<HTML>
    <BODY>
    <A href = "D:\garden.jpg">image</A>
    </BODY>
</HTML>

(ii)

<HTML>
    <BODY>
        <CENTER>
            <IMG src = "C:\pencil.jpg">
        </CENTER>
    </BODY>
</HTML>