TOP CATEGORIES

×

How to write HTML syntax to create input types?

S

Sonum Pathak

Definition of  HTML Form & Input Types -

The <input> tag specifies an input field where the user can enter data. And the <input> elements are used within a <form> HTML tag to declare input controls that allow users to input data.

HTML Syntax To Create INPUT Types -

<form action="action_page_url">

  <label for="fname">Full Name - </label>

  <input type="text" id="f_name" name="f_name"><br />

  <label for="email">Email ID - </label>

  <input type="text" id="e_id" name="e_id"><br />

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

</form>

IMPORTANT DESCRIPTIONS - 

Always use the <label> tag to define labels for <input type="text">, <input type="checkbox">, <input type="radio">, <input type="file">, and <input type="password">.

0 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)