{"id":78,"date":"2018-07-12T08:42:33","date_gmt":"2018-07-12T08:42:33","guid":{"rendered":"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=78"},"modified":"2018-12-07T09:11:10","modified_gmt":"2018-12-07T09:11:10","slug":"html-form","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/chapter\/html-form\/","title":{"rendered":"HTML Form"},"content":{"raw":"<div><span style=\"float: right\"><a href=\"https:\/\/youtu.be\/hlgqIBSCjIs\" target=\"_blank\" rel=\"noopener\"><img src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a>\r\n<\/span><\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">A form is a container that contains one or more controls like text boxes, radio buttons, check boxes that can receive data.To create a form &lt;form&gt; tag is used. The most useful attributes of form tag are: method and action.When a form is submitted to the server for processing, the data in the controls is sent along with HTTP request.Method attribute specifies which HTTP method is used to submit the form data. The value a method attribute can set is get or post. By default it is get.When get method is used, the data is sent for processing to server by control is displayed as part of the URL. The post method does not show data as part of the URL when data is sent for processing to the server.The action method is used to specify the URL of the page or server-side script that will process the data in a form.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The &lt;input&gt; tag is used to specify the input object types.<\/p>\r\n<p style=\"text-align: justify\">The type attribute of &lt;input&gt; tag is used to specify the type of input object.<\/p>\r\n<p style=\"text-align: justify\">The following table shows various input attributes.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"alignnone size-full wp-image-81 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-48.png\" alt=\"\" width=\"647\" height=\"340\" \/>\r\n\r\n<\/div>\r\n<div>\r\n\r\n\u00a0Following code snippet shows to create textboxes for username and password.\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nUsername:\r\n\r\n&lt;input type=\"text\" name=\"uname\"&gt;\r\n\r\n&lt;br&gt;\r\n\r\nPassword:\r\n\r\n&lt;input type=\"password\" name=\"pwd\"&gt;\r\n\r\n&lt;br&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-82 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-49.png\" alt=\"\" width=\"240\" height=\"58\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Name attribute is the most common attribute for all control except submit and reset. This name value is used for writing code.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The text type can have additional size, maxlength and value attributes.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Size attributes define the length of textbox for having the no. of characters in a textbox.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Maxlength determines the maximum length of textbox having maximum no. of characters in a textbox.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Value attributes displays the content in textbox when form loads on to browser.<\/p>\r\n&nbsp;\r\n\r\nFollowing code snippet shows radio button use.\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nGender:\r\n\r\n&lt;input type=\"radio\" name=\"gender\" value=\"Male\" checked&gt;Male\r\n\r\n&lt;input type=\"radio\" name=\"gender\" value=\"Female\"&gt;Female\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-83 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-50.png\" alt=\"\" width=\"220\" height=\"62\" \/>\r\n\r\n<\/div>\r\n<div>\r\n<p style=\"text-align: justify\">\u00a0 \u00a0The value attribute is submitted to the server when form is processed.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The checked attribute checked the value. It is a Boolean attribute.<\/p>\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nSkills:\r\n<p style=\"text-align: justify\">&lt;input type=\"checkbox\" name=\"skills\" value=\"ASP.NET\"&gt;ASP.NET &lt;input type=\"checkbox\" name=\"skills\"\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0value=\"Perl\"&gt;Perl<\/p>\r\n&lt;input type=\"checkbox\" name=\"skills\" value=\"Java\"&gt;Java\r\n\r\n&lt;input type=\"checkbox\" name=\"skills\" value=\"Php\"&gt;Php\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n<img class=\"size-full wp-image-84 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-51.png\" alt=\"\" width=\"332\" height=\"47\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The submit button submitted data for the processing and reset button reset the controls.<\/p>\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\n&lt;input type=\"submit\" name=\"submit\" value=\"Next\"&gt;\r\n\r\n&lt;input type=\"reset\" name=\"reset\" value=\"Reset\"&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-85 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-52.png\" alt=\"\" width=\"119\" height=\"42\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nThe following code snippet shows use of button type.\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\n&lt;input type=\"button\" name=\"calculate\" value=\"Calculate\"&gt;\r\n\r\n&lt;input type=\"reset\" name=\"reset\" value=\"Reset\"&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-86 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-53.png\" alt=\"\" width=\"179\" height=\"46\" \/>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\nThe following code snippet shows use of image type.\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n<p style=\"text-align: justify\">&lt;input type=\"image\" name=\"Agree\" src=\"Autumn Leaves.jpg\" width=\"30\" height=\"30\"<\/p>\r\nalt=\"click me\"&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-87 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-54.png\" alt=\"\" width=\"79\" height=\"70\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The following code shows use of file type:<\/p>\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nUse the browse button to select file:\r\n\r\n&lt;input type=\"file\" name=\"upload\" size=\"30\"&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-88 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-55.png\" alt=\"\" width=\"560\" height=\"52\" \/>\r\n\r\n&nbsp;\r\n\r\nSELECT\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The &lt;select&gt; tag allows user to select a single or more value from the available values.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The following code allows to select only one values from the available option.<\/p>\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nHighest Education Qualification:\r\n\r\n&lt;select name=\"Qualification\"&gt;\r\n\r\n&lt;option&gt;Ph.D.&lt;\/option&gt;\r\n\r\n&lt;option&gt;M.Sc.&lt;\/option&gt;\r\n\r\n<span style=\"font-size: 1em;text-align: initial\">&lt;option&gt;B.Sc.&lt;\/option&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;option&gt;HSC&lt;\/option&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;option&gt;SSC&lt;\/option&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;\/select&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;\/form&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;\/body&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;\/html&gt;<\/span>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"size-full wp-image-89 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-56.png\" alt=\"\" width=\"325\" height=\"137\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">To select multiple values from the available options set the multiple attribute of select tag.<\/p>\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nJob location preferences:\r\n\r\n&lt;br&gt;\r\n\r\n&lt;select name=\"location\" multiple size=\"5\"&gt;\r\n\r\n&lt;option&gt;Pune&lt;\/option&gt;\r\n\r\n&lt;option&gt;Bangalore&lt;\/option&gt;\r\n\r\n&lt;option&gt;Noida&lt;\/option&gt;\r\n\r\n&lt;option&gt;chennai&lt;\/option&gt;\r\n\r\n&lt;option&gt;Ahmedabad&lt;\/option&gt;\r\n\r\n&lt;option&gt;Mumbai&lt;\/option&gt;\r\n\r\n&lt;option&gt;Calcutta&lt;\/option&gt;\r\n\r\n&lt;option&gt;Delhi&lt;\/option&gt;\r\n\r\n&lt;\/select&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-90 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-57.png\" alt=\"\" width=\"205\" height=\"175\" \/>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The &lt;textarea&gt; tag make a large area for enter user input.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n\u00a0 \u00a0 &lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nAddress:\r\n\r\n&lt;br&gt;\r\n\r\n&lt;textarea name=\"address\" rows=\"5\" cols=\"50\"&gt;\r\n\r\n&lt;\/textarea&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n<img class=\"size-full wp-image-91 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-58.png\" alt=\"\" width=\"455\" height=\"150\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"post\"&gt;\r\n\r\nUsername:\r\n\r\n&lt;input type=\"text\" name=\"uname\"&gt;\r\n\r\n&lt;br&gt;\r\n\r\nPassword:\r\n\r\n&lt;input type=\"password\" name=\"pwd\"&gt;\r\n\r\n&lt;br&gt;\r\n\r\nAddress:\r\n\r\n&lt;br&gt;\r\n\r\n&lt;textarea name=\"address\" rows=\"5\" cols=\"50\"&gt;\r\n\r\n&lt;\/textarea&gt;\r\n\r\n&lt;br&gt;\r\n\r\nGender:\r\n<p style=\"text-align: justify\">&lt;input type=\"radio\" name=\"gender\" value=\"Male\" checked&gt;Male<\/p>\r\n<p style=\"text-align: justify\">&lt;input type=\"radio\" name=\"gender\" value=\"Female\"&gt;Female<\/p>\r\n<p style=\"text-align: justify\">&lt;br&gt;<\/p>\r\n<p style=\"text-align: justify\">Skills:<\/p>\r\n<p style=\"text-align: justify\">&lt;input type=\"checkbox\" name=\"skills\" value=\"ASP.NET\"&gt;ASP.NET &lt;input type=\"checkbox\" name=\"skills\"\u00a0 value=\"Perl\"&gt;Perl<\/p>\r\n<p style=\"text-align: justify\">&lt;input type=\"checkbox\" name=\"skills\" value=\"Java\"&gt;Java &lt;input type=\"checkbox\" name=\"skills\"\u00a0 \u00a0 value=\"Php\"&gt;Php &lt;br&gt;<\/p>\r\nHighest Education Qualification:\r\n\r\n&lt;select name=\"Qualification\"&gt;\r\n\r\n<span style=\"font-size: 1em;text-align: initial\">&lt;option&gt;Ph.D.&lt;\/option&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;option&gt;M.Sc.&lt;\/option&gt;<\/span>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&lt;option&gt;B.Sc.&lt;\/option&gt;\r\n\r\n&lt;option&gt;HSC&lt;\/option&gt;\r\n\r\n&lt;option&gt;SSC&lt;\/option&gt;\r\n\r\n&lt;\/select&gt;\r\n\r\n&lt;br&gt;\r\n\r\nJob location preferences:\r\n\r\n&lt;br&gt;\r\n\r\n&lt;select name=\"location\" multiple size=\"5\"&gt;\r\n\r\n&lt;option&gt;Pune&lt;\/option&gt;\r\n\r\n&lt;option&gt;Bangalore&lt;\/option&gt;\r\n\r\n&lt;option&gt;Noida&lt;\/option&gt;\r\n\r\n&lt;option&gt;chennai&lt;\/option&gt;\r\n\r\n&lt;option&gt;Ahmedabad&lt;\/option&gt;\r\n\r\n&lt;option&gt;Mumbai&lt;\/option&gt;\r\n\r\n&lt;option&gt;Calcutta&lt;\/option&gt;\r\n\r\n&lt;option&gt;Delhi&lt;\/option&gt;\r\n\r\n&lt;\/select&gt;\r\n\r\n&lt;br&gt;&lt;br&gt;\r\n<p style=\"text-align: justify\">&lt;input type=\"submit\" name=\"submit\" value=\"Next\"&gt; &lt;input type=\"reset\" name=\"reset\" value=\"Reset\"&gt;<\/p>\r\n&lt;\/form&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n<img class=\"size-full wp-image-92 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-59.png\" alt=\"\" width=\"440\" height=\"363\" \/>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">To display form for good look a form table tag can be used.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n\u00a0 \u00a0 CSS [Cascading Style Sheet]\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Cascading style sheets are used to display web pages by specifying the fonts, colors, spacing and layout of the pages.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">A CSS file consists of rule sets. The rule set is a combination of selector and declaration block.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The selector is identifier while declaration is made of property and value.<\/p>\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nSelector\r\n\r\n&nbsp;\r\n\r\nh1\r\n\r\n{\r\n\r\nColor: red;\u00a0 \u00a0\u00a0declaration\r\n\r\n}\r\n\r\n&nbsp;\r\n\r\nProperty\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 value\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nCSS rule set can be a HTML element like h1, ID or class.\r\n\r\nID identifier begin with # symbol.\r\n\r\nClass identifier has . prefix and then class-name.\r\n\r\n&nbsp;\r\n\r\nHTML element:\r\n\r\nh1\r\n\r\n{\r\n\r\n&nbsp;\r\n\r\nColor: red;\r\n\r\n}\r\n\r\n&nbsp;\r\n\r\nID\r\n\r\n#footer\r\n\r\n{\r\n\r\nFont-size: 50%;\r\n\r\nText-align: left;\r\n\r\n}\r\n\r\n&nbsp;\r\n\r\nClass\r\n\r\n.menu_color\r\n\r\n{\r\n\r\nColor:silver;\r\n\r\n}\r\n\r\n&nbsp;\r\n\r\nThe extension of cascading style sheet is .css\r\n\r\n&nbsp;\r\n\r\nThere are 3 types of style sheets.\r\n\r\n<\/div>\r\n<div>\r\n\r\n\u00a0 \u00a0 1. External\r\n\r\n2. Internal and\r\n\r\n3. Embedded\r\n\r\n&nbsp;\r\n\r\nExternal style sheet is a style sheet which is add in the html by using link tag in HTML.\r\n\r\n&nbsp;\r\n\r\nLet us create an external style sheet in notepad.\r\n\r\n&nbsp;\r\n\r\nbody\r\n\r\n{\r\n\r\nbackground-color:Red;\r\n\r\n}\r\n\r\n&nbsp;\r\n\r\nSave this file as styles.css.\r\n\r\n&nbsp;\r\n\r\nNow to use this style sheet in a web page include it in &lt;head&gt; tag of HTML.\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;head&gt;\r\n\r\n&lt;title&gt; CSS Example &lt;\/title&gt;\r\n\r\n&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"Styles.css\"&gt;\r\n\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\r\nThis is body text.\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-93 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-60.png\" alt=\"\" width=\"560\" height=\"392\" \/>\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n<div>\r\n\r\n\u00a0 \u00a0Below code is a example of internal stylesheet.\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;head&gt;\r\n\r\n&lt;title&gt; CSS Example &lt;\/title&gt;\r\n\r\n&lt;style type=\"text\/css\"&gt;\r\n\r\nbody\r\n\r\n{\r\n\r\ncolor:green;\r\n\r\n}\r\n\r\n&lt;\/style&gt;\r\n\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\r\nThis is body text.\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n\r\n<img class=\"size-full wp-image-94 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-61.png\" alt=\"\" width=\"153\" height=\"44\" \/>\r\n\r\n&nbsp;\r\n\r\nEmbedded style sheet is shown in below code.\r\n\r\n&nbsp;\r\n\r\n&lt;html&gt;\r\n\r\n&lt;head&gt;\r\n\r\n&lt;title&gt; CSS Example &lt;\/title&gt;\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;\/head&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;<\/span><span style=\"text-align: initial;font-size: 1em\">body style=\"background-color:green; font-size:24pt;\"&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">This is body text.<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;\/body&gt;<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">&lt;\/html&gt;<\/span>\r\n\r\n<\/div>\r\n<img class=\"size-full wp-image-95 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-62.png\" alt=\"\" width=\"562\" height=\"503\" \/>\r\n\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>you can view video on HTML Form<\/strong><\/td>\r\n<td><a href=\"https:\/\/youtu.be\/hlgqIBSCjIs\" target=\"_blank\" rel=\"noopener\"><img class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n\r\n<strong>References:<\/strong>\r\n<ul>\r\n \t<li>Ivan Bayross, Web Enabled Commercial Application Development Using HTML\/Javascript\/DHTML\/PHP , BPB Publications.<\/li>\r\n \t<li>Steven Holzner, HTML Black book, Kogent Learning Solutions Inc.<\/li>\r\n \t<li>Deidre Hayes, Sams teach yourself HTML 4 in 10 minutes,<\/li>\r\n \t<li>4. Ed Tittel , Mary Burmeister, HTML4 for Dummies, Wiley<\/li>\r\n \t<li>Robert Sebesta, Programming the World Wide Web, Pearson Education Inc.<\/li>\r\n \t<li>Deitel, Internet and World Wide Web How to Program, Pearson<\/li>\r\n \t<li>Anne Boehm, Murach\u2019s HTML, XHTML and CSS, Murachs<\/li>\r\n \t<li>Elisabeth Robson, Eric Freeman, \u201cHead First HTML and CSS \u201c, O\u2019Reilly<\/li>\r\n \t<li>Thomas Powell, HTML and CSS The Complete Reference, McGrawHill Education India<\/li>\r\n \t<li>John Duckett, Beginning HTML, XHTML, CSS and Java Script, Willy India<\/li>\r\n \t<li>http:\/\/www.php.net<\/li>\r\n \t<li>http:\/\/www.w3schools.com\/<\/li>\r\n \t<li>\u00a0http:\/\/www.tutorialspoint.com\/<\/li>\r\n<\/ul>","rendered":"<div><span style=\"float: right\"><a href=\"https:\/\/youtu.be\/hlgqIBSCjIs\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a><br \/>\n<\/span><\/div>\n<div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">A form is a container that contains one or more controls like text boxes, radio buttons, check boxes that can receive data.To create a form &lt;form&gt; tag is used. The most useful attributes of form tag are: method and action.When a form is submitted to the server for processing, the data in the controls is sent along with HTTP request.Method attribute specifies which HTTP method is used to submit the form data. The value a method attribute can set is get or post. By default it is get.When get method is used, the data is sent for processing to server by control is displayed as part of the URL. The post method does not show data as part of the URL when data is sent for processing to the server.The action method is used to specify the URL of the page or server-side script that will process the data in a form.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The &lt;input&gt; tag is used to specify the input object types.<\/p>\n<p style=\"text-align: justify\">The type attribute of &lt;input&gt; tag is used to specify the type of input object.<\/p>\n<p style=\"text-align: justify\">The following table shows various input attributes.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-81 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-48.png\" alt=\"\" width=\"647\" height=\"340\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-48.png 647w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-48-300x158.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-48-65x34.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-48-225x118.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-48-350x184.png 350w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<\/div>\n<div>\n<p>\u00a0Following code snippet shows to create textboxes for username and password.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Username:<\/p>\n<p>&lt;input type=&#8221;text&#8221; name=&#8221;uname&#8221;&gt;<\/p>\n<p>&lt;br&gt;<\/p>\n<p>Password:<\/p>\n<p>&lt;input type=&#8221;password&#8221; name=&#8221;pwd&#8221;&gt;<\/p>\n<p>&lt;br&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-82 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-49.png\" alt=\"\" width=\"240\" height=\"58\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-49.png 240w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-49-65x16.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-49-225x54.png 225w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Name attribute is the most common attribute for all control except submit and reset. This name value is used for writing code.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The text type can have additional size, maxlength and value attributes.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Size attributes define the length of textbox for having the no. of characters in a textbox.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Maxlength determines the maximum length of textbox having maximum no. of characters in a textbox.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Value attributes displays the content in textbox when form loads on to browser.<\/p>\n<p>&nbsp;<\/p>\n<p>Following code snippet shows radio button use.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Gender:<\/p>\n<p>&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=&#8221;Male&#8221; checked&gt;Male<\/p>\n<p>&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=&#8221;Female&#8221;&gt;Female<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-83 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-50.png\" alt=\"\" width=\"220\" height=\"62\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-50.png 220w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-50-65x18.png 65w\" sizes=\"auto, (max-width: 220px) 100vw, 220px\" \/><\/p>\n<\/div>\n<div>\n<p style=\"text-align: justify\">\u00a0 \u00a0The value attribute is submitted to the server when form is processed.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The checked attribute checked the value. It is a Boolean attribute.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Skills:<\/p>\n<p style=\"text-align: justify\">&lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221; value=&#8221;ASP.NET&#8221;&gt;ASP.NET &lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0value=&#8221;Perl&#8221;&gt;Perl<\/p>\n<p>&lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221; value=&#8221;Java&#8221;&gt;Java<\/p>\n<p>&lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221; value=&#8221;Php&#8221;&gt;Php<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-84 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-51.png\" alt=\"\" width=\"332\" height=\"47\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-51.png 332w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-51-300x42.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-51-65x9.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-51-225x32.png 225w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The submit button submitted data for the processing and reset button reset the controls.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;Next&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;reset&#8221; name=&#8221;reset&#8221; value=&#8221;Reset&#8221;&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-85 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-52.png\" alt=\"\" width=\"119\" height=\"42\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-52.png 119w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-52-65x23.png 65w\" sizes=\"auto, (max-width: 119px) 100vw, 119px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The following code snippet shows use of button type.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;button&#8221; name=&#8221;calculate&#8221; value=&#8221;Calculate&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;reset&#8221; name=&#8221;reset&#8221; value=&#8221;Reset&#8221;&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-86 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-53.png\" alt=\"\" width=\"179\" height=\"46\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-53.png 179w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-53-65x17.png 65w\" sizes=\"auto, (max-width: 179px) 100vw, 179px\" \/><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p>The following code snippet shows use of image type.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p style=\"text-align: justify\">&lt;input type=&#8221;image&#8221; name=&#8221;Agree&#8221; src=&#8221;Autumn Leaves.jpg&#8221; width=&#8221;30&#8243; height=&#8221;30&#8243;<\/p>\n<p>alt=&#8221;click me&#8221;&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-87 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-54.png\" alt=\"\" width=\"79\" height=\"70\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-54.png 79w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-54-65x58.png 65w\" sizes=\"auto, (max-width: 79px) 100vw, 79px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The following code shows use of file type:<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Use the browse button to select file:<\/p>\n<p>&lt;input type=&#8221;file&#8221; name=&#8221;upload&#8221; size=&#8221;30&#8243;&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-88 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-55.png\" alt=\"\" width=\"560\" height=\"52\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-55.png 560w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-55-300x28.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-55-65x6.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-55-225x21.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-55-350x33.png 350w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>SELECT<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The &lt;select&gt; tag allows user to select a single or more value from the available values.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The following code allows to select only one values from the available option.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Highest Education Qualification:<\/p>\n<p>&lt;select name=&#8221;Qualification&#8221;&gt;<\/p>\n<p>&lt;option&gt;Ph.D.&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;M.Sc.&lt;\/option&gt;<\/p>\n<p><span style=\"font-size: 1em;text-align: initial\">&lt;option&gt;B.Sc.&lt;\/option&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;option&gt;HSC&lt;\/option&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;option&gt;SSC&lt;\/option&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;\/select&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;\/form&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;\/body&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;\/html&gt;<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-89 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-56.png\" alt=\"\" width=\"325\" height=\"137\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-56.png 325w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-56-300x126.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-56-65x27.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-56-225x95.png 225w\" sizes=\"auto, (max-width: 325px) 100vw, 325px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">To select multiple values from the available options set the multiple attribute of select tag.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Job location preferences:<\/p>\n<p>&lt;br&gt;<\/p>\n<p>&lt;select name=&#8221;location&#8221; multiple size=&#8221;5&#8243;&gt;<\/p>\n<p>&lt;option&gt;Pune&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Bangalore&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Noida&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;chennai&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Ahmedabad&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Mumbai&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Calcutta&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Delhi&lt;\/option&gt;<\/p>\n<p>&lt;\/select&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-90 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-57.png\" alt=\"\" width=\"205\" height=\"175\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-57.png 205w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-57-65x55.png 65w\" sizes=\"auto, (max-width: 205px) 100vw, 205px\" \/><\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The &lt;textarea&gt; tag make a large area for enter user input.<\/span><\/p>\n<\/div>\n<div>\n<p>\u00a0 \u00a0 &lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Address:<\/p>\n<p>&lt;br&gt;<\/p>\n<p>&lt;textarea name=&#8221;address&#8221; rows=&#8221;5&#8243; cols=&#8221;50&#8243;&gt;<\/p>\n<p>&lt;\/textarea&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-91 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-58.png\" alt=\"\" width=\"455\" height=\"150\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-58.png 455w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-58-300x99.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-58-65x21.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-58-225x74.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-58-350x115.png 350w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;form method=&#8221;post&#8221;&gt;<\/p>\n<p>Username:<\/p>\n<p>&lt;input type=&#8221;text&#8221; name=&#8221;uname&#8221;&gt;<\/p>\n<p>&lt;br&gt;<\/p>\n<p>Password:<\/p>\n<p>&lt;input type=&#8221;password&#8221; name=&#8221;pwd&#8221;&gt;<\/p>\n<p>&lt;br&gt;<\/p>\n<p>Address:<\/p>\n<p>&lt;br&gt;<\/p>\n<p>&lt;textarea name=&#8221;address&#8221; rows=&#8221;5&#8243; cols=&#8221;50&#8243;&gt;<\/p>\n<p>&lt;\/textarea&gt;<\/p>\n<p>&lt;br&gt;<\/p>\n<p>Gender:<\/p>\n<p style=\"text-align: justify\">&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=&#8221;Male&#8221; checked&gt;Male<\/p>\n<p style=\"text-align: justify\">&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=&#8221;Female&#8221;&gt;Female<\/p>\n<p style=\"text-align: justify\">&lt;br&gt;<\/p>\n<p style=\"text-align: justify\">Skills:<\/p>\n<p style=\"text-align: justify\">&lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221; value=&#8221;ASP.NET&#8221;&gt;ASP.NET &lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221;\u00a0 value=&#8221;Perl&#8221;&gt;Perl<\/p>\n<p style=\"text-align: justify\">&lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221; value=&#8221;Java&#8221;&gt;Java &lt;input type=&#8221;checkbox&#8221; name=&#8221;skills&#8221;\u00a0 \u00a0 value=&#8221;Php&#8221;&gt;Php &lt;br&gt;<\/p>\n<p>Highest Education Qualification:<\/p>\n<p>&lt;select name=&#8221;Qualification&#8221;&gt;<\/p>\n<p><span style=\"font-size: 1em;text-align: initial\">&lt;option&gt;Ph.D.&lt;\/option&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;option&gt;M.Sc.&lt;\/option&gt;<\/span><\/p>\n<\/div>\n<div>\n<p>&lt;option&gt;B.Sc.&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;HSC&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;SSC&lt;\/option&gt;<\/p>\n<p>&lt;\/select&gt;<\/p>\n<p>&lt;br&gt;<\/p>\n<p>Job location preferences:<\/p>\n<p>&lt;br&gt;<\/p>\n<p>&lt;select name=&#8221;location&#8221; multiple size=&#8221;5&#8243;&gt;<\/p>\n<p>&lt;option&gt;Pune&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Bangalore&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Noida&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;chennai&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Ahmedabad&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Mumbai&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Calcutta&lt;\/option&gt;<\/p>\n<p>&lt;option&gt;Delhi&lt;\/option&gt;<\/p>\n<p>&lt;\/select&gt;<\/p>\n<p>&lt;br&gt;&lt;br&gt;<\/p>\n<p style=\"text-align: justify\">&lt;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;Next&#8221;&gt; &lt;input type=&#8221;reset&#8221; name=&#8221;reset&#8221; value=&#8221;Reset&#8221;&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-92 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-59.png\" alt=\"\" width=\"440\" height=\"363\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-59.png 440w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-59-300x248.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-59-65x54.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-59-225x186.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-59-350x289.png 350w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">To display form for good look a form table tag can be used.<\/p>\n<\/div>\n<div>\n<p>\u00a0 \u00a0 CSS [Cascading Style Sheet]<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Cascading style sheets are used to display web pages by specifying the fonts, colors, spacing and layout of the pages.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">A CSS file consists of rule sets. The rule set is a combination of selector and declaration block.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The selector is identifier while declaration is made of property and value.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Selector<\/p>\n<p>&nbsp;<\/p>\n<p>h1<\/p>\n<p>{<\/p>\n<p>Color: red;\u00a0 \u00a0\u00a0declaration<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>Property\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 value<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>CSS rule set can be a HTML element like h1, ID or class.<\/p>\n<p>ID identifier begin with # symbol.<\/p>\n<p>Class identifier has . prefix and then class-name.<\/p>\n<p>&nbsp;<\/p>\n<p>HTML element:<\/p>\n<p>h1<\/p>\n<p>{<\/p>\n<p>&nbsp;<\/p>\n<p>Color: red;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>ID<\/p>\n<p>#footer<\/p>\n<p>{<\/p>\n<p>Font-size: 50%;<\/p>\n<p>Text-align: left;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>Class<\/p>\n<p>.menu_color<\/p>\n<p>{<\/p>\n<p>Color:silver;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>The extension of cascading style sheet is .css<\/p>\n<p>&nbsp;<\/p>\n<p>There are 3 types of style sheets.<\/p>\n<\/div>\n<div>\n<p>\u00a0 \u00a0 1. External<\/p>\n<p>2. Internal and<\/p>\n<p>3. Embedded<\/p>\n<p>&nbsp;<\/p>\n<p>External style sheet is a style sheet which is add in the html by using link tag in HTML.<\/p>\n<p>&nbsp;<\/p>\n<p>Let us create an external style sheet in notepad.<\/p>\n<p>&nbsp;<\/p>\n<p>body<\/p>\n<p>{<\/p>\n<p>background-color:Red;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>Save this file as styles.css.<\/p>\n<p>&nbsp;<\/p>\n<p>Now to use this style sheet in a web page include it in &lt;head&gt; tag of HTML.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>&lt;title&gt; CSS Example &lt;\/title&gt;<\/p>\n<p>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; href=&#8221;Styles.css&#8221;&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>This is body text.<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-93 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-60.png\" alt=\"\" width=\"560\" height=\"392\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-60.png 560w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-60-300x210.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-60-65x46.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-60-225x158.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-60-350x245.png 350w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<div>\n<p>\u00a0 \u00a0Below code is a example of internal stylesheet.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>&lt;title&gt; CSS Example &lt;\/title&gt;<\/p>\n<p>&lt;style type=&#8221;text\/css&#8221;&gt;<\/p>\n<p>body<\/p>\n<p>{<\/p>\n<p>color:green;<\/p>\n<p>}<\/p>\n<p>&lt;\/style&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>This is body text.<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-94 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-61.png\" alt=\"\" width=\"153\" height=\"44\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-61.png 153w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-61-150x44.png 150w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-61-65x19.png 65w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Embedded style sheet is shown in below code.<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>&lt;title&gt; CSS Example &lt;\/title&gt;<\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;\/head&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;<\/span><span style=\"text-align: initial;font-size: 1em\">body style=&#8221;background-color:green; font-size:24pt;&#8221;&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">This is body text.<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;\/body&gt;<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">&lt;\/html&gt;<\/span><\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-95 aligncenter\" src=\"http:\/\/itp9.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/29\/2018\/07\/1-62.png\" alt=\"\" width=\"562\" height=\"503\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-62.png 562w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-62-300x269.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-62-65x58.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-62-225x201.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-content\/uploads\/sites\/29\/2018\/07\/1-62-350x313.png 350w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>you can view video on HTML Form<\/strong><\/td>\n<td><a href=\"https:\/\/youtu.be\/hlgqIBSCjIs\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>References:<\/strong><\/p>\n<ul>\n<li>Ivan Bayross, Web Enabled Commercial Application Development Using HTML\/Javascript\/DHTML\/PHP , BPB Publications.<\/li>\n<li>Steven Holzner, HTML Black book, Kogent Learning Solutions Inc.<\/li>\n<li>Deidre Hayes, Sams teach yourself HTML 4 in 10 minutes,<\/li>\n<li>4. Ed Tittel , Mary Burmeister, HTML4 for Dummies, Wiley<\/li>\n<li>Robert Sebesta, Programming the World Wide Web, Pearson Education Inc.<\/li>\n<li>Deitel, Internet and World Wide Web How to Program, Pearson<\/li>\n<li>Anne Boehm, Murach\u2019s HTML, XHTML and CSS, Murachs<\/li>\n<li>Elisabeth Robson, Eric Freeman, \u201cHead First HTML and CSS \u201c, O\u2019Reilly<\/li>\n<li>Thomas Powell, HTML and CSS The Complete Reference, McGrawHill Education India<\/li>\n<li>John Duckett, Beginning HTML, XHTML, CSS and Java Script, Willy India<\/li>\n<li>http:\/\/www.php.net<\/li>\n<li>http:\/\/www.w3schools.com\/<\/li>\n<li>\u00a0http:\/\/www.tutorialspoint.com\/<\/li>\n<\/ul>\n","protected":false},"author":3,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":["dr-hiren-joshi"],"pb_section_license":""},"chapter-type":[],"contributor":[59],"license":[],"class_list":["post-78","chapter","type-chapter","status-publish","hentry","contributor-dr-hiren-joshi"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/pressbooks\/v2\/chapters\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":12,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/pressbooks\/v2\/chapters\/78\/revisions"}],"predecessor-version":[{"id":459,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/pressbooks\/v2\/chapters\/78\/revisions\/459"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/pressbooks\/v2\/chapters\/78\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/pressbooks\/v2\/chapter-type?post=78"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/wp\/v2\/contributor?post=78"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp9\/wp-json\/wp\/v2\/license?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}