Horje
How to create HTML <input> Element

One of the most used form elements is the <input> element.


Simple Example of HTML <input> Element

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

Full Example of HTML <input> Element

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>The input Element</h2>

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

</body>
</html>

Output should be:

Full Example of HTML <input> Element
Reffered: https://www.w3schools.com/html/html_form_elements.asp





Related Articles
What is HTML Form Elements HTML Form Elements
How to create HTML <input> Element HTML Form Elements
How to create The <label> Element HTML Form Elements
How to create HTML <select> Element HTML Form Elements
How to create HTML <option> element HTML Form Elements
How to Visible HTML Select Option Values HTML Form Elements
How to Allow Multiple Selection in HTML Option Value HTML Form Elements
How to create HTML <textarea> Element HTML Form Elements
How to create HTML <button> Element HTML Form Elements
How to create HTML <fieldset> and <legend> Elements HTML Form Elements
How to create HTML <datalist> Element HTML Form Elements
How to create HTML <output> Element HTML Form Elements

Single Articles
Simple Example of HTML <input> ElementHTML Form Elements
Full Example of HTML <input> ElementHTML Form Elements

Read Full:
HTML Form Elements
Category:
Web Tutorial
Sub Category:
HTML Form Elements
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
38



Share on: