Page 111 - CA 165 ver 1.0 Class 10
P. 111
2. Which of the following attributes is used to set the space towards left or right margin of the image?
Solved Exercise i. Hspace ii. Vspace
iii. Qspace iv. None of these
PART A 3. Height attribute is used to specify the height of the image in ..................................... in comparison to its
A. Very short answer type questions. original size?
1. Which attribute is used to align an image to the right side of the web page? i. Pixels ii. Points
2. Which attribute is used to set an image with the space between the surrounding text on the left and right iii. Percentage iv. Both a and c
as 5 pixels? 4. Vspace attribute is used to set the space towards the ..................................... margin of the image.
3. Which tag is used to write the chemical formula of water? i. Top ii. Left
4. Which tag is used to indent all the lines of the paragraph on the by two indent spaces? iii. Right iv. Middle
5. Which tag is used to retain the entire tab spaces used in a paragraph while writing the code? 5. Which of the following attributes is used to assign an alternative text that will be displayed over the
Ans. 1. align 2. hspace 3. <sub> image when the mouse pointer is placed over it?
4. <blockquote> tag 5. <pre> tag i. Align ii. Src
iii. Alt iv. Hspace
B. Fill in the blanks.
Complete the given code to create a table as shown in the image: Ans. 1. iii. 2. i. 3. iv. 4. i. 5. iii.
Deluxe Room Tariff PART B
A. Short answer type questions.
AC Non AC
Type 1. Write one line of code as per the given condition:
2500 2000 To add a link on a webpage which takes you to the email composing screen corresponding to the id
abc@gmail.com on clicking the image select.jpg.
i. <table .........................=2 .........................=green>
Ans. <a href = “mailto:abc@gmail.com”><img src=select.jpg></img></a>
ii. <tr><th .........................=.........................>Deluxe Room Tariff</th>
2. Discuss the tags that have been used to write the following content on the webpage:
iii. .........................<th .........................=2>Type</th><.........................>AC<......................... ><th> NON AC H O
</th>......................... 2
Ans. To write the following code we can write: <S>H<SUB>2</SUB>O</S>
iv. <tr> ......................... 2500 ......................... <td> 2000</td></tr>
Here, <SUB> is a container tag. It is used to display the blocked text in subscript form. The enclosed text
</table> is displayed as the base of the normal text and <S> or <STRIKE> are container tags. These tags are used
Ans. i. border bgcolor to strikethrough the blocked text. Enclosed text is displayed with a line drawn through the middle of it.
ii. colspan 3 3. Differentiate between cellpadding and cellspacing attributes of a <table> tag.
iii. <tr>rowspan th /th </tr> Ans. Cellpadding attribute is used to specify the space between grid line and content in the cell whereas,
iv. <td> </td> cellspacing attribute is used to specify the space between cells.
4. Explain the purpose of using ‘mailto’ while creating a link, giving a suitable example.
C. Case Based MCQs
Ans. Mailto is used to create a link that opens the e-mail compose box to write mails and send a new e-mail
The <IMG> (Image) tag is an empty tag. The attribute SRC (Source) is used with the IMG tag to specify the location message. While using <a> tag as an e-mail tag, a user can use mailto: e-mail address along with href attribute.
and name of the image file. The <P> tag should be placed before the <IMG> tag because the <IMG> tag does not
form a new block element and would appear in the same line unless we add <P> tag. A blank line appears before Example: <a href = “mailto:info@orangeeducation.in”>Send Your Feedback</a>
and after the image when the image insention tag <IMG> is enclosed within <P> and </P> tags. 5. What is an HTML form?
1. Which of the following is not an attribute of the <IMG>tag? Ans. An HTML form is an interface of a web page that facilitates the user to enter data. There are various
form elements that helps to design a form like textbox, radio buttons, drop-down menus, checkboxes,
i. Border ii. Width
password, list, combo box, etc. while writing codes.
iii. Height iv. All of these
More About HTML 109

