Page 57 - KEC Khaitan C7 Flipbook
P. 57

Syntax of password input control:

                 <INPUT TYPE = "Password" NAME = "The word that describes the textbox" SIZE = "The width
                 you want to use for the text box" MAXLENGTH = "Maximum number of characters">

                 Multi-line text input control

                 This control allows us to enter multiple lines. The <TEXTAREA> tag contains the ROWS and COLS
                 attributes, where ROWS attribute indicates the number of rows the text area should accommodate
                 and COLS attribute indicates the width area.

                 Syntax of multi-line text input control:

                 <TEXTAREA NAME = "The word that describes the text area" ROWS = "Number of rows the text
                 box should accommodate" COLS = "Width of the text area"></TEXTAREA>

                 Checkbox Input Control
                 This control is used when multiple options from a group are required to be selected by the site-visitor.

                 When selected, the checkbox is marked with a tick mark. While defining checkboxes, we need to
                 specify the following:
                   The group name should be specified for all the checkboxes by using the NAME attribute.

                   Each  checkbox  should  be  specified  with  a
                                                                                          21 st
                   word describing the purpose of the checkbox                          Century   #Flexibility
                   which is done with the help of the VALUE                              Skills
                   attribute.                                          "Keep practising because excellence
                                                                       is a continuous  process  and not  an
                   The text that needs to be displayed beside          accident."
                   the checkbox should be specified.

                 Syntax of Checkbox input control:

                 <INPUT TYPE = "CHECKBOX" NAME = "A Word describing the group name" VALUE = "A word
                 that describes the checkbox">


                 Radio Input Control
                 This control is used when one out of the multiple options from a group is required to be selected
                 by the site visitor. Only the selected radio button in a group is filled. While defining checkboxes, we
                 need to specify the following:

                   The group name should be specified for all the radio buttons by using the NAME attribute.
                    Each radio button should be specified with a word describing the purpose of the radio button
                   which is done with the help of the VALUE attribute.

                   The text that is needed to be displayed beside the radio button should be specified.
                 Syntax of radio input control:

                 <INPUT TYPE = "RADIO" NAME = "A Word describing the group name" VALUE = "A word that
                 describes the radio button">



                                                                                   Images, Links and Forms in HTML5  55
   52   53   54   55   56   57   58   59   60   61   62