Thursday, July 17, 2014

More Inputs

  • Saying Thanks is enough for me :)

Now most of you know whats inputs and we saw the buttons and the text boxes and we didnt talk much about the check boxes or the radio buttons there's one big diffrenece between Radio buttons and check boxes
  • Check Boxes can have multiply values for example we use it to know what topics our customer like about our website so he can select more than one 
  • Radio Buttons can have only one value for example in the Facebook sign up page in the Gender part you cant take Male and Female at the same time :D sure you cant so you can only take one of them.
lets see this example  and we'll do our steps again:
  1. open sublime or notepad
  2. lets write this code:
        <html>
        <head>
        </head>
        <body>
        <table border="1" width="100%">
        <tr>
        <td width="100%">
                <input type="checkbox">like
                <input type="checkbox">love
                <input type="checkbox">eat
        </td>
        </tr>
        <tr>
        <td width="100%">
                <input type="Radio">Male
                <input type="Radio">Female
        </td>
        </tr>
        <tr>
        <td width="100%"> 
               <h3>Now we'll see a new thing which is a drop down menu we all will need it in our website</h3>
               <select> */this tag mean make a new drop down list just like the days and months in facebook                                       signup page
                        <option>Support</option>
                        <option>My</option>
                        <option>Blog :)</option> 
               </select>
        </td>
        </tr>
        </table>
        </body>
        </html>
   
   3.   press ctrl+s and save your file name and dont forget the ".html"
   4.   open it with your internet browser 
  • All these inputs are very important in our website to get the users information and data and later we'll learn how to use them and store them in DataBase.

No comments:

Post a Comment