Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Level 1 - Week 7

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Level 1 - Week 7

Avatar for Graham Lewis

Graham Lewis

June 23, 2015

More Decks by Graham Lewis

Other Decks in Technology

Transcript

  1. The form tag <form method='' action=''> <!-- Your form inputs

    go here --> </form> • method - Typically POST, but can also be GET • action - Where your form is being sent to! ! NEVER use GET!!!
  2. The input tag <input type='text' id='' name=''> <!-- Type can

    also be: password, file, checkbox, radio, hidden, submit, button, reset, image, email, url, date, time, number, search, tel, range, month, week, color --> ! Use BOTH id and name - they must be the same value
  3. The optgroup tag <select id="" name=""> <optgroup label="Colours"> <option value="red">Red</option>

    <option value="green">Green</option> <option value="blue">Blue</option> </optgroup> </select>
  4. Default 'selection' selects... <select> <option value="..." selected>...</option> </select> radios and

    checkboxs... <input type='radio' checked> <input type='checkbox' checked>