input form design in html code example

Example 1: html form

<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>

Example 2: form css

#form {

    border: 1px solid black;
    padding: 1.5%;
    text-align: center;
    

}

Example 3: how to add text box html

<label for="textarea">WRITE COMMENTS HERE : </label><br><br>
     <textarea id="textarea" cols="30" rows="10" placeholder="write here..."></textarea>

Tags:

Html Example