Form is used to collect data from users using input fields.
<form>
inputs fields here...
</form>
You can use form any where within an HTML document.
Use <br /> element to separate inputs on new line.
Form is pair tag and output of form is inputs fields like you can see in above example.
Open notepad or any other text editor, follow the following points.
text
password
submit
save file with name task.html or task.htm and then open it using any browser and see results.
Don't forget form is non empty element which means it always comes in pair.