Page 112 - CA 165 ver 1.0 Class 10
P. 112
B. Long answer type questions.
1. Explain target attribute.
Ans. The target attribute specifies where to display the linked URL. Some of the values of 'Target' attribute are:
_blank: It opens the linked document in a new window or tab.
_self: It opens the linked document in the same window/tab as it was clicked. This is the default
behavior.
_top: It opens the linked document in the full body of the window.
2. Explain the attributes related to <IMG>tag that helps us to insert an image in a webpage.
Ans. The following attributes are used with <IMG> tag:
SRC attribute specifies the location (sourc5. of the image file (.GIF, .JPG or .BMP fil5..
ALIGN attribute is used to align the text and images according to the specified position on the
displayed page.
BORDER attribute is used to specify the width of the border around the image. By default border is not
set in the page.
WIDTH attribute is used to specify the width of the image in pixels or percentage, in comparison to its
original size.
HEIGHT attribute is used to specify the height of the image in pixels or percentage, in comparison to
its original size.
HSPACE attribute is used to set the space towards left or right margin of the image.
VSPACE attribute is used to set the space towards the top or bottom margin of the image.
ALT attribute is used to assign an alternative text that will be displayed over the image when the
mouse pointer is placed over it.
3. What are links? How are links inserted in a webpage?
Ans. Links are connection with the text or image or a part of the same document to another document. HTML
supports two kinds of linking: External Linking and Internal linking.
The external Linking links two different documents which are present in the main storage of server or
computer. User clicks on the link button, the document which is linked, gets opened.
The internal linking links the various section of the same document. By clicking on the linked button, the
linked part of the document is displayed on the screen.
Links are inserted in a webpage using <A> tag which stands for ‘Anchor’.
4. Explain the purpose of <INPUT> tag along with its attributes.
Ans. <INPUT> element is the fundamental element of form. It is used to make fields to take input data from
user. We can create different input fields to gather various kinds of information form a user. Different
attributes used in <INPUT> elements are:
TYPE attribute specifies the type of the form element such as text, radio, etc.
NAME attribute is a name given to form element which is used to uniquely identify the element in the
form.
VALUE attribute is used to specify a default value to the control element.
ALIGN attribute is used for aligning the element with respect to the form margins.
SIZE attribute specifies the horizontal size of the text box.
110 Touchpad Computer Applications-X

