html5 form
snippet in html

html5 form

user5339

<form>
  <input type="button">
  <input type="checkbox">
  <input type="color">
  <input type="date">
  <input type="datetime-local">
  <input type="email">
  <input type="file">
  <input type="hidden">
  <input type="image">
  <input type="month">
  <input type="number">
  <input type="password">
  <input type="radio">
  <input type="range">
  <input type="reset">
  <input type="search">
  <input type="submit">
  <input type="tel">
  <input type="text">
  <input type="time">
  <input type="url">
  <input type="week">
</form>

html5 form

user8257

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>

html5 form

user6449

<!-- O segundo valor estará selecionado inicialmente -->
<select name="select">
  <option value="valor1">Valor 1</option> 
  <option value="valor2" selected>Valor 2</option>
  <option value="valor3">Valor 3</option>
</select>

html5 form

user4536

<!DOCTYPE html>
<html>
<body>

<h2>The select Element</h2>

<p>The select element defines a drop-down list:</p>

<form action="/action_page.php">
  <label for="cars">Choose a car:</label>
  <select id="cars" name="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="fiat">Fiat</option>
    <option value="audi">Audi</option>
  </select>
  <input type="submit">
</form>

</body>
</html>

html5 form

user6673

<label for="name">Name:</label>
  <input type="text" id="name"><br><br>

html5 form

user2473


  <div class="container">
  <form action="action_page.php">

    
  <label for="fname">First Name</label>
    <input type="text" 
  id="fname" name="firstname" placeholder="Your name..">

    
  <label for="lname">Last Name</label>
    <input type="text" 
  id="lname" name="lastname" placeholder="Your last name..">

    
  <label for="country">Country</label>
    <select 
  id="country" name="country">
      <option value="australia">Australia</option>
      
  <option value="canada">Canada</option>
      
  <option value="usa">USA</option>
    </select>

    
  <label for="subject">Subject</label>
    <textarea 
  id="subject" name="subject" placeholder="Write something.." 
  style="height:200px">

html5 form

user2698

//HTML Textbox w/Getting Javascript Input:
<script>
  function getTextBox(){
    var k = document.getElemntById('myTextBox').value
    alert(k)
  }
</script>
<input type="text" id="myTextBox">
<button onclick="getTextBox()">Get Text Input</button>

html5 form

user7821

  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>