CBSE Class 10 Computer Applications Question 9 of 12

Solved Sample Paper 4 — Question 4

Back to all questions
4
Question

Question 22(ii)

(a) Write the HTML code to display an inline image named pencil.jpg located at C:\ in the center of your Web page.

(b) Write the HTML command to display the A2 + B2 in your Web page.

(c) Write HTML code to insert an image named globe.jpg in the background of a Web page.

Answer
<HTML>
    <BODY BACKGROUND = "GLOBE.JPG">
    <CENTER>
    <IMG SRC = "C:\pencil.jpg" ALT = "PENCIL">
    </CENTER>
    <BR>
    A<SUP>2</SUP> + B<SUP>2</SUP>
    <BR>
    </BODY>
</HTML>