Page 159 - CA_165_V2.0_Flipbook
P. 159

3.   What are links? How are links inserted in a web page?
                   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 web page 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.

                     5.   What is a table? Which tags are used to create a basic table in HTML?
                   Ans.   A table consists of rows and columns that is used to represent the data in a tabular format for better
                         understanding. Table tag is used to create table in a web page. It is used within the body of the HTML
                         document. The TR (Table Row) tag and TD (Table Data) tag are used to create grid of rows and to enter
                         data in the grid.

                         <TABLE>
                         <TR>

                         <TD> Text </TD>
                         <TD> Text </TD>

                         .....................................
                         </TR>

                         </TABLE>
                 C.  Application Based Questions.
                     1.   Divya wants to add some images on the web page. Which tag should she use to do so?

                   Ans.   <IMG> tag.
                     2.   Priya,  a  school teacher  wants  to  upload  marks of  students  on  school website  in  tabular  format.
                         Which tag should she use in order to do so?
                     Ans.  <TABLE> , <TR> and <TD>












                                                                                            More About HTML      157
   154   155   156   157   158   159   160   161   162   163   164