Level no.13

 Lecture no. 13

For creating form in HTML.The form tag is used.It has open and closing tag.The form tag contain many  elements.There are two  attributes in form tag.One is action attribute that is points to the back-end of the web page which handles the form submission.

Syntax
<form action=""> </form>

Code

<!DOCTYPE html>
<html>
<head>
<title> </title>
</head>
<body>
<p>
<form action=""> 
Name: <input type="text">
Age: <input type="text">
Address: <input type="text">
</form>
</p>
</body>
</html>

Output

Name:  Age:  Address: 

This is the output of  upper code I have not use line break tag  that's why they are printing on the same line. After applying <br> tag the output is,

Name: 

Age: 

Address: 


Comments

Popular posts from this blog

Level no.4

Level no.21

Level no.3