Today we are going to see how can we build a form in HTML.
Introduction to forms
An HTML form is a section of a document containing normal content, markup, special elements called controls ( checkboxes, radio buttons, menus, etc.), and labels on those controls. Users generally “complete” a form by modifying its controls (entering text, selecting menu items, etc.), before submitting the form to an agent for processing (e.g., to a Web server, to a mail server, etc.). This tutorial assumes that you already know about forms controls.
<div class="form-container"> <form action"" method="post"> <label for="username">Username</label> <input type="text" id="username" name="username" value="" /><br/><br/> <label for="password">Username</label> <input type="password" id="password" name="pwd" value="" /><br/><br/> <input type="submit" name="subform" id="submitform" value="Login" /> </form> </div>
Below it is shown how the form will look like.