<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=HTML%2FC3%2FForms-in-HTML%2FEnglish-timed</id>
		<title>HTML/C3/Forms-in-HTML/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=HTML%2FC3%2FForms-in-HTML%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=HTML/C3/Forms-in-HTML/English-timed&amp;action=history"/>
		<updated>2026-04-04T08:19:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=HTML/C3/Forms-in-HTML/English-timed&amp;diff=51402&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot;{| border = &quot;1&quot; |-  || Time || Narration |-  || 00:01 || Hello and welcome to the spoken tutorial on '''Forms''' in '''HTML'''. |-  || 00:07 || In this tutorial we will learn...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=HTML/C3/Forms-in-HTML/English-timed&amp;diff=51402&amp;oldid=prev"/>
				<updated>2020-03-24T09:15:52Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border = &amp;quot;1&amp;quot; |-  || Time || Narration |-  || 00:01 || Hello and welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Forms&amp;#039;&amp;#039;&amp;#039; in &amp;#039;&amp;#039;&amp;#039;HTML&amp;#039;&amp;#039;&amp;#039;. |-  || 00:07 || In this tutorial we will learn...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border = &amp;quot;1&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
|| Time&lt;br /&gt;
|| Narration&lt;br /&gt;
|- &lt;br /&gt;
|| 00:01&lt;br /&gt;
|| Hello and welcome to the spoken tutorial on '''Forms''' in '''HTML'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 00:07&lt;br /&gt;
|| In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
'''Forms''' and  How to create a simple '''form''' in '''HTML'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:17&lt;br /&gt;
||  To practise this tutorial, you should have knowledge of '''HTML'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:22&lt;br /&gt;
||   If not, then go through the corresponding''' '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| 00:27&lt;br /&gt;
|| To record this tutorial, I’m using &lt;br /&gt;
&lt;br /&gt;
'''Ubuntu Linux 16.04 OS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:36&lt;br /&gt;
||   '''HTML5'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:38&lt;br /&gt;
||  '''gedit Text Editor'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:41&lt;br /&gt;
||  '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:44&lt;br /&gt;
||  However you may, use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
||00:50&lt;br /&gt;
|| The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract them.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:01&lt;br /&gt;
||  '''Forms''' are generally used to collect some information from the user.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:06&lt;br /&gt;
||   It can be a &lt;br /&gt;
&lt;br /&gt;
'''Registration Form''', '''Login Form''' , '''Survey''',  '''Billing Form''' Or any other '''form''' which collects data.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:17&lt;br /&gt;
|| To create '''web forms''', '''HTML''' provides some '''Form''' '''Elements''' for different needs.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:24&lt;br /&gt;
||  The '''elements''' are:&lt;br /&gt;
&lt;br /&gt;
'''Label''',  '''Input''',  '''Text Area''',  '''Select'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:34&lt;br /&gt;
||  '''Datalist''',  '''Output''', '''Fieldset''',  '''Button'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:41&lt;br /&gt;
||  We will learn them one by one with an example.&lt;br /&gt;
|- &lt;br /&gt;
|| 01:46&lt;br /&gt;
|| For this demonstration we will create a simple '''User Registration form''' like this.&lt;br /&gt;
|- &lt;br /&gt;
|| 01:53&lt;br /&gt;
|| Open an empty file in any '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:57&lt;br /&gt;
||  Type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:01&lt;br /&gt;
||  Save the file as '''MyWebForm.html'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:06&lt;br /&gt;
||  For this demonstration I have already done this.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:11&lt;br /&gt;
|| To create a '''form''', we have to include the '''form tag'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:16&lt;br /&gt;
||  It has both start and end '''tags'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:20&lt;br /&gt;
||  I will add the '''form tag''' after the '''h3 heading tag'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:26&lt;br /&gt;
|| The first information which we want to get from the user is '''First Name.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:32&lt;br /&gt;
||  Next to the '''form '''start''' tag''', type '''First Name:'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
||  02:38&lt;br /&gt;
|| To get the input from the user, we will use the '''input''' '''element'''.&lt;br /&gt;
&lt;br /&gt;
Type '''input within angular brackets''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:48&lt;br /&gt;
||  The '''input tag''' doesn’t have an end '''tag'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 02:52&lt;br /&gt;
|| To get input from the user, we can use any one of the following '''input types''' based on our requirement.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:02&lt;br /&gt;
|| To get the name details, we will use the '''input type''' as '''text'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:07&lt;br /&gt;
||  So inside the '''input tag''', type:&lt;br /&gt;
&lt;br /&gt;
'''type''' equal to within double quotes '''text&amp;quot;'''&lt;br /&gt;
|- &lt;br /&gt;
|| 03:16&lt;br /&gt;
|| Next to the '''input tag''', let me add a '''break tag''' for better alignment. &lt;br /&gt;
|- &lt;br /&gt;
|| 03:22&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|- &lt;br /&gt;
||03:24&lt;br /&gt;
|| Open the file '''MyWebForm.html''' in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:28&lt;br /&gt;
|| I will be using '''Firefox web browser''' for this purpose.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:34&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:36&lt;br /&gt;
|| The text “'''User Registration Form'''” is displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:42&lt;br /&gt;
|| Then '''First Name''' along with an empty '''text box''' is displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:49&lt;br /&gt;
|| Suppose we want to send the collected data to another '''form''' or to a database.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:54&lt;br /&gt;
||  We will add the '''name''' '''attribute''' to the '''form elements.'''&lt;br /&gt;
&lt;br /&gt;
Let me do that now.&lt;br /&gt;
|- &lt;br /&gt;
||04:00&lt;br /&gt;
|| Switch to the '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:04&lt;br /&gt;
||  Inside the '''input tag''', next to the '''type attribute,''' we will type: '''name''' equal to within double quote '''fname'''&lt;br /&gt;
|- &lt;br /&gt;
|| 04:15&lt;br /&gt;
|| The input which I’m going to get from the user using this '''element''' is '''First Name'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:22&lt;br /&gt;
||  So, here I have given the value for the '''name''' '''attribute''' as '''fname.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:28&lt;br /&gt;
||  However you can give any other unique value of your choice.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:35&lt;br /&gt;
||  Please note that, this will not make any change in the visual appearance.&lt;br /&gt;
|- &lt;br /&gt;
||04:40&lt;br /&gt;
|| Notice here, we have written the text “'''First Name'''” manually.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:47&lt;br /&gt;
||  '''HTML''' has a '''form element''' for '''labels''' also.&lt;br /&gt;
&lt;br /&gt;
Let us try that.&lt;br /&gt;
|- &lt;br /&gt;
|| 04:54&lt;br /&gt;
|| Replace the words “'''First Name'''” with the line as shown here.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:01&lt;br /&gt;
|| Here I have used the '''tag label'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:05&lt;br /&gt;
||It has both a start and an end.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:10&lt;br /&gt;
|| Inside the '''tag''', I have written '''First Name''' along with the '''bold tag'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:16&lt;br /&gt;
|| Inside the '''label''' start '''tag''', I have added an '''attribute for''' and '''fname''' as a value to it.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:25&lt;br /&gt;
|| Notice that, I have given the same value in '''label for''' and '''input name'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:32&lt;br /&gt;
||This is to map the '''label''' and the '''input field'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:37&lt;br /&gt;
|| As I mentioned earlier, these will not make any change in the displayed output.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:44&lt;br /&gt;
||This will be helpful only when we are sending this data to another page or to a '''database'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 05:53&lt;br /&gt;
|| So far, I have created a '''form''' to get the '''first name'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:57&lt;br /&gt;
||Likewise, let me add another piece of code to get the '''last name.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:04&lt;br /&gt;
||Type the code as shown here.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:08&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:10&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:14&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:16&lt;br /&gt;
||  Now we have the''' fields''' to get '''First Name''' and '''Last Name'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:22&lt;br /&gt;
||  Next we will add 3 more '''fields''' to get '''Email address, Password '''and''' Retype Password'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:31&lt;br /&gt;
|| Switch back to the '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:34&lt;br /&gt;
||Next to '''last name''', type the code as shown.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:40&lt;br /&gt;
|| Here I have set the '''input type''' as '''email'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:44&lt;br /&gt;
||  During the '''form submission''', this will verify whether the '''input''' is a valid '''email address''' or not.&lt;br /&gt;
|- &lt;br /&gt;
|| 06:52&lt;br /&gt;
|| In the '''Password field''', I have set the '''input type''' as '''password'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:57&lt;br /&gt;
||  So, when we type a '''password''', this '''input type''' will display that '''password''' as a special character. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:05&lt;br /&gt;
||  So, others cannot see what we are typing.&lt;br /&gt;
|- &lt;br /&gt;
|| 07:10&lt;br /&gt;
|| Save the file.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:12&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|- &lt;br /&gt;
|| 07:15&lt;br /&gt;
|| Now we have five '''fields'''.&lt;br /&gt;
&lt;br /&gt;
'''First Name, Last Name, Email, Password '''and''' Retype Password'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 07:28&lt;br /&gt;
|| Let me enter some values in these '''fields'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:31&lt;br /&gt;
||'''First Name '''as''' Praveen''' &lt;br /&gt;
&lt;br /&gt;
'''Last Name '''as''' S '''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:37&lt;br /&gt;
||'''Email '''as''' editor.spokentutorial@gmail.com'''&lt;br /&gt;
|- &lt;br /&gt;
|| 07:45&lt;br /&gt;
|| '''Enter Password '''as''' 12345.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:50&lt;br /&gt;
||While typing the '''password''', notice that it is showing dots instead of the '''password'''.&lt;br /&gt;
|- &lt;br /&gt;
||07:57&lt;br /&gt;
|| In the '''Retype password field''', type the same '''password '''once again.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:03&lt;br /&gt;
||Notice that here also we see dots instead of our typed '''password'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:10&lt;br /&gt;
|| So far we have created a '''form''' to fill some details from the user.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:16&lt;br /&gt;
||To make the '''form''' complete, we have to provide a '''button element, '''as well.&lt;br /&gt;
|- &lt;br /&gt;
|| 08:22&lt;br /&gt;
||  '''Button element''' is used to perform an action when the '''button''' is clicked. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:28&lt;br /&gt;
|| For eg:  store the input data in a '''database'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:34&lt;br /&gt;
|| Send the form values to another page or '''script''', to perform another action &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:41&lt;br /&gt;
|| or to display some message on the same page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:45&lt;br /&gt;
||  For this demonstration, we will create a '''button''' to display a message after''' form submission'''.&lt;br /&gt;
|- &lt;br /&gt;
||08:53&lt;br /&gt;
|| Switch to the '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:56&lt;br /&gt;
||  Next to the '''Retype password''' line, type the code as shown here.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:03&lt;br /&gt;
|| The '''button tag''' has both a start and an end.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:08&lt;br /&gt;
|| I have set the '''display''' name for the '''button''' as '''Submit'''.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:13&lt;br /&gt;
|| Inside the '''button''' start '''tag''', I have set an '''attribute''' called '''onclick'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:19&lt;br /&gt;
||  And the value as '''&amp;quot;alert('Registration Complete')&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:25&lt;br /&gt;
||  If we click the '''Submit '''button, then the '''browser''' will display a message “'''Registration Complete'''”.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:33&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:35&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:40&lt;br /&gt;
|| We now see the '''Submit''' button.&lt;br /&gt;
|- &lt;br /&gt;
||09:43&lt;br /&gt;
|| In this example, I haven’t done any form validation to check for empty fields or incorrect data.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:51&lt;br /&gt;
||  So, without filling the '''fields''', I can simply click on the '''Submit''' button.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:57&lt;br /&gt;
|| And the '''browser''' will show a '''popup''' window with the message “'''Registration Complete'''”.&lt;br /&gt;
|- &lt;br /&gt;
|| 10:03&lt;br /&gt;
|| Click on '''OK''' to close this '''popup''' window.&lt;br /&gt;
|- &lt;br /&gt;
|| 10:09&lt;br /&gt;
|| So far we have learnt to create a simple '''form''' to get some data from the user.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:16&lt;br /&gt;
||  We will learn more about '''forms''' in the upcoming tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:20&lt;br /&gt;
||  With this we have come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| 10:27&lt;br /&gt;
|| In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
'''Forms '''and   '''Form elements: Input, Label '''and''' Button'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:36&lt;br /&gt;
|| '''Input types: Text, Email '''and''' Password''' in '''HTML.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 10:42&lt;br /&gt;
|| As an assignment- &lt;br /&gt;
&lt;br /&gt;
Create a file '''MyLoginForm.html'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 10:48&lt;br /&gt;
|| To get the following details from the user&lt;br /&gt;
&lt;br /&gt;
'''Email Address''',  '''Password'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 10:55&lt;br /&gt;
|| And name the button as “'''Log-in”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:00&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project. &lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
|| 11:09&lt;br /&gt;
|| The Spoken Tutorial Project team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
|| 11:19&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| 11:24&lt;br /&gt;
|| Spoken Tutorial Project is funded by  MHRD, Government of India.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:30&lt;br /&gt;
|| This is Praveen from IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>