Page 85 - SmartGPT_v4.0_C8_Flipbook
P. 85

3.  Explain in simple steps how different values can be added to a CHECK BOX.








                       4.  Name and elaborate three different attributes of FORM tag.








                       5.  Why do we use SELECT tag?






                        Scratch Your Brain.                                              21 st  Century   #Technology Literacy
                                                                                                 #Productivity & Accountability
                                                                                             Skills
                        1.  Anuradha wants to recreate the given web page.
                             Select Harmful Effects of Plastics:
                               Pollution
                               Pleasant Weather
                               Endangering Wildlife
                               Toxicity
                               Greenery

                            She has written the given code:

                             <!DOCTYPE html>
                             <html>
                             <head>
                             <title>Harmful Effects of Plastics</title>
                             </head>
                             <body>
                               <h2>Select Harmful Effects of Plastics:</h2>
                               <form>
                                 <input type="radio" name="effect1" value="Pollution">Pollution<br>
                                  <input type="radio" name="effect2" value="Pleasant Weather">Pleasant
                                 Weather<br>
                                  <input type="radio" name="effect3" value="Endangering
                                 Wildlife">Endangering Wildlife<br>
                                 <input type="radio" name="effect3" value="Toxicity">Toxicity<br>
                                 <input type="radio" name="effect3" value="Greenery">Greenery<br>
                               </form>
                             </body>
                             </html>
                            But her output is not same. Help her identify the mistake and recreate the code.







                                                                                                 Forms in HTML5    83
   80   81   82   83   84   85   86   87   88   89   90