Questions

2 Marks Quetions

🎯

Test yourself on this topic

11 questions · timed · auto-graded

Question 22 Marks
Write the HTML code to display an inline image named pencil.jpg located at c:/ in the center of your web page.
Answer
$<$HTML$>$
$<$HEAD$>$
$<$TITLE$>$ Inline Image $<$/TITLE$>$
$<$/HEAD$>$
$<$BODY$>$
$<$CENTER$>$$<$IMG SRC= "c:\pencil.jpg"$>$
$<$/CENTER$>$
$<$/BODY$>$
$<$/HTML$>$
View full question & answer
Question 32 Marks
What is the purpose of $<$IMG$>$ tag? Mention it's any two attributes along with their purpose.
Answer
$<$IMG$>$ tag is used to insert images in any webpage. Its two main attributes are as follows:
SRC: It specifies the URL of the image.
ALT: It specifies an alternate text for an image.
View full question & answer
Question 62 Marks
Differentiate between the following:
a. $<$INPUT TYPE= "Text"$>$ and $<$TEXTAREA$>$.
b. $<$SELECT$>$ and $<$OPTION$>$.
c. $<$INPUT TYPE= "Radio"$>$ and $<$INPUT TYPE= "Checkbox"$>$.
d. SUBMIT and RESET Buttons.
Answer
self
View full question & answer
Question 92 Marks
Give the command to insert an image into the web page, assuming that the image is stored in a file named "Photo.gif".
Answer
self
View full question & answer
Question 102 Marks
The following code is written to align the image of the center in the browser's window. However, the desired result is not achieved. Mention the reason.
$<$IMG SRC = "house.gif" ALIGN= "Center"$>$
Answer
self
View full question & answer