forms for 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: html input types
<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>
Example 3: forms in html
<form action="mailto:youremail" enctype='text/plain'>
<label for="">Your Name: </label>
<input type="text" name='yourName'><br>
<label for=>Your Emain: </label>
<input type="email" name='yourEmail'><br>
<label for="">Your Message: </label><br>
<textarea name="yourMessage" id="" cols="30" rows="10"></textarea><br>
<input type="submit">
</form>
Example 4: intput field submit button
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br>