adam.r
18
Q:

html5 form

<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>
36
<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>
20
<!-- 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>
6
<!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>
9
//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>
2
<label for="name">Name:</label>
  <input type="text" id="name"><br><br>
5

 <form>

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

  <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"></textarea>

    <input 
  type="submit" value="Submit">

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

New to Communities?

Join the community