COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | FORM
Form tag describes an area that contain elements such as text fields, radio buttons, checkboxes and so on.

SYNTAX

OPENING TAG CLOSING TAG
<form </form>

Form Tag in HTML

<h1>Computerlectures | Form</h1>

Example : form.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Form</title>
<body>
<form>

First name: <input type="text" id="fname" name="fname"><br/>
Last name: <input type="text" id="lname" name="lname"><br/>
Email: <input type="email" id="email" name="email"><br/>
<input type="submit" value="Submit"><br/>

</form>
</body>
</html>

The output on the web broswer

Form