Page 158 - CA_165_V2.0_Flipbook
P. 158

4.   Explain the purpose of using ‘mailto’ while creating a link, giving a suitable example.
                    Ans.   Mailto is used to create a link that opens the e-mail compose box to write mails and send a new e-mail
                           message. While using <a> tag as an e-mail tag, a user can use mailto: e-mail address along with href attribute.
                          Example:  <a href = "mailto:info@orangeeducation.in">Send  Your Feedback
                                   </a>
                      5.   What is an HTML form?
                    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,
                           password, list, combo box, etc. while writing codes.
                      6.   Which attribute is used to align an image to the right side of the web page?
                    Ans.   align
                      7.     Which attribute is used to set an image with the space between the surrounding text on the left and right
                          as 5 pixels?
                    Ans.   hspace

                      8.   Which tag is used to write the chemical formula of water?
                    Ans.   <sub>
                      9.   Which tag is used to indent all the lines of the paragraph on the by two indent spaces?
                    Ans.   <blockquote> tag
                      10.  Which tag is used to retain the entire tab spaces used in a paragraph while writing the code?
                    Ans.   <pre> tag

                  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 web page.
                    Ans.   The following attributes are used with <IMG> tag:
                              The src attribute specifies the location (source) of the image file (.GIF, .JPG, or .BMP file).
                                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.


                   156   Touchpad Computer Applications-X
   153   154   155   156   157   158   159   160   161   162   163