<?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=Bootstrap%2FC3%2FForms-in-Bootstrap%2FEnglish</id>
		<title>Bootstrap/C3/Forms-in-Bootstrap/English - 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=Bootstrap%2FC3%2FForms-in-Bootstrap%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Bootstrap/C3/Forms-in-Bootstrap/English&amp;action=history"/>
		<updated>2026-04-05T14:47:04Z</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=Bootstrap/C3/Forms-in-Bootstrap/English&amp;diff=55466&amp;oldid=prev</id>
		<title>Nirmala Venkat: Created page with &quot; {| border=&quot;1&quot; |- || '''VISUAL CUE''' || '''NARRATION''' |- || Slide: Title || Welcome to the Spoken Tutorial on '''Forms in Bootstrap.''' |- || Slide 2:   Learning Objectives...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Bootstrap/C3/Forms-in-Bootstrap/English&amp;diff=55466&amp;oldid=prev"/>
				<updated>2021-08-12T10:13:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; {| border=&amp;quot;1&amp;quot; |- || &amp;#039;&amp;#039;&amp;#039;VISUAL CUE&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;NARRATION&amp;#039;&amp;#039;&amp;#039; |- || Slide: Title || Welcome to the Spoken Tutorial on &amp;#039;&amp;#039;&amp;#039;Forms in Bootstrap.&amp;#039;&amp;#039;&amp;#039; |- || Slide 2:   Learning Objectives...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| '''VISUAL CUE'''&lt;br /&gt;
|| '''NARRATION'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Title&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Forms in Bootstrap.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 2: &lt;br /&gt;
&lt;br /&gt;
Learning Objectives&lt;br /&gt;
|| In this tutorial, we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''Form controls'''&lt;br /&gt;
* '''Help text'''&lt;br /&gt;
* '''Sizing'''&lt;br /&gt;
* '''Read-only plain text'''&lt;br /&gt;
* '''Checkboxes '''and''' radio buttons '''and&lt;br /&gt;
* '''File inputs '''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 3: &lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|| This tutorial is recorded using,&lt;br /&gt;
&lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''Bootstrap 4.6.0'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 4: Prerequisite &lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| &lt;br /&gt;
* To follow this tutorial, you should be familiar with '''HTML''' and '''CSS.'''&lt;br /&gt;
* If not, please go through the '''HTML '''and''' CSS '''tutorials on this '''website'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox- Form.html]&lt;br /&gt;
&lt;br /&gt;
Point to the various fields as per narration.&lt;br /&gt;
|| In this tutorial, we will design a '''form''' '''layout''' as shown here, in '''Bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
We'll create an '''input box''' for '''Name, Mobile Number, Email''' and '''Password.'''&lt;br /&gt;
&lt;br /&gt;
We’ll also create a''' select box '''for '''Country.'''&lt;br /&gt;
&lt;br /&gt;
Next, we will create a '''read-only plain textbox''' for '''Member ID'''.&lt;br /&gt;
&lt;br /&gt;
Then, we will create a '''checkbox '''for''' Language known '''and''' radio buttons '''for''' Gender.'''&lt;br /&gt;
&lt;br /&gt;
After this, we will learn how to input''' files '''for upload.&lt;br /&gt;
&lt;br /&gt;
We will also learn various '''Bootstrap classes''' for designing and '''styling''' '''form elements'''.&lt;br /&gt;
&lt;br /&gt;
Let’s see how to create this '''form'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Point to Form.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|| Locate the file '''Form.html''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use this new file '''Form.html''' for demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code File&lt;br /&gt;
|| &lt;br /&gt;
* The file used in this tutorial is available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract it.&lt;br /&gt;
* Make a copy and then use it while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Open Form.html in gedit&lt;br /&gt;
|| Open the file '''Form.html''' in a '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
|| We have created this '''HTML''' file with a '''container''' and a '''heading'''. &lt;br /&gt;
Inside this '''container''', we have created a '''row''' and a '''column.'''&lt;br /&gt;
&lt;br /&gt;
We will add all the '''form elements''' inside this '''container.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;form&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Name&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
|| Let’s create some fields that take input from the '''users'''.&lt;br /&gt;
Inside the column, type this code as shown here.&lt;br /&gt;
&lt;br /&gt;
Using '''&amp;lt;form&amp;gt; tag,''' we have created a '''label''' and an '''input textbox'''.&lt;br /&gt;
&lt;br /&gt;
'''.form-group class''' is used to create a proper '''form layout'''.&lt;br /&gt;
&lt;br /&gt;
Every '''form element''' will use this '''class'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press the save button&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Form.html in Firefox&lt;br /&gt;
|| Open the file '''Form.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
|| Notice that the '''input textbox''' with the '''label''' “'''Name'''” is added to the page.&lt;br /&gt;
&lt;br /&gt;
Note that this '''element''' is not '''styled''' properly. So, let’s do this.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: .form-control class&lt;br /&gt;
|| For this, first let’s see''' '''what is''' .form-control class.'''&lt;br /&gt;
&lt;br /&gt;
* It is used to '''style''' '''&amp;lt;input&amp;gt;s''', '''&amp;lt;select&amp;gt;s''', and''' &amp;lt;textarea&amp;gt;s.'''&lt;br /&gt;
* '''Styling''' includes general appearance, focus state, sizing, etc.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Form.html&lt;br /&gt;
|| Switch to the file '''Form.html''' in the''' editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;form&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Name&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot; class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
|| Add the '''class''' '''.form-control '''as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|| Click the save button&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
|| Observe that the '''elements''' are now properly '''styled'''. For example: some margin is added.&lt;br /&gt;
&lt;br /&gt;
And when we click on the '''input textbox, '''it gets focused with a light blue border color.&lt;br /&gt;
&lt;br /&gt;
Let's continue to create the other '''form elements'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Form.html&lt;br /&gt;
|| Switch to the''' Form.html''' file in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Mobile Number&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot; class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Email&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;email&amp;quot; class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Password&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;password&amp;quot; class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Country&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;select class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;India&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;Canada&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;USA&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;China&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
|| After the '''input textbox''' for '''Name''', type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
Basically, we have created '''input textboxes''' for '''Mobile number''', '''Email''' and '''Password.'''&lt;br /&gt;
&lt;br /&gt;
And we have also created a '''select box''' for '''Country'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click the save button&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| We have successfully created all the fields in the '''form''', with some '''stylings'''.&lt;br /&gt;
&lt;br /&gt;
Next, let’s learn about '''Help text.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Help Text&lt;br /&gt;
|| &lt;br /&gt;
* '''Help text''' is an efficient way to guide '''users''' to enter correct data in a '''form'''.&lt;br /&gt;
* Generally, it is displayed at the bottom of the '''control'''.&lt;br /&gt;
* '''.form-text class''' is used to add the '''Help text''' for '''form controls'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Form.html&lt;br /&gt;
|| Switch to the file '''Form.html''' in the''' editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Password&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;password&amp;quot; class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;small class=&amp;quot;form-text text-muted&amp;quot;&amp;gt; Passwords must be at least 6 characters. &amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|| Update the '''password form group''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Using the '''.form-text class''', we’ve added '''“Passwords must be at least 6 characters”''' as the '''Help text.'''&lt;br /&gt;
&lt;br /&gt;
Here''', .text-muted class''' is used for light grey '''text color.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight with red box: Password must be at least 6 characters.&lt;br /&gt;
|| Notice that the '''Help text''' is added below the '''Password input textbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Next, let’s learn to change the height of these input fields.&lt;br /&gt;
&lt;br /&gt;
We’ll increase the height of the '''Name''' '''input textbox.'''&lt;br /&gt;
&lt;br /&gt;
And decrease the height of the''' Password input textbox.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Form.html&lt;br /&gt;
|| Switch to the '''Form.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;form&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Name&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot; class=&amp;quot;form-control form-control-lg&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Mobile Number&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot; class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Email&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;email&amp;quot; class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Password&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;password&amp;quot; class=&amp;quot;form-control form-control-sm&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;small class=&amp;quot;form-text text-muted&amp;quot;&amp;gt; &lt;br /&gt;
Passwords must be at least 6 characters. &amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Country&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;select class=&amp;quot;form-control&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;India&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;Canada&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;USA&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;China&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
|| Add '''.form-control-lg class''' to the '''Name''' '''input textbox'''.&lt;br /&gt;
&lt;br /&gt;
This '''class''' will increase the height of the '''input textbox'''.&lt;br /&gt;
&lt;br /&gt;
Then add the '''.form-control-sm class''' to the '''Password input textbox'''.&lt;br /&gt;
&lt;br /&gt;
This '''class''' will decrease the height of the '''input textbox'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The height of the '''Name input box''' has increased.&lt;br /&gt;
&lt;br /&gt;
While the height of the '''Password input textbox''' has decreased.&lt;br /&gt;
&lt;br /&gt;
Next, we will see how to create '''read-only plain text'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Form.html&lt;br /&gt;
|| Switch to the file '''Form.html''' in the''' editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;form&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Member ID&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot; value=&amp;quot;12104&amp;quot; class=&amp;quot;form-control-plaintext&amp;quot; readonly&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
|| After the '''select boxes''', type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
We have created a column.&lt;br /&gt;
&lt;br /&gt;
Within this, we’ve created an '''input textbox''' for '''Member ID''' and assigned a value to it.&lt;br /&gt;
&lt;br /&gt;
We have used the '''read-only attribute.'''&lt;br /&gt;
&lt;br /&gt;
This prevents the '''user''' from making any modifications in the value.&lt;br /&gt;
&lt;br /&gt;
Here, the '''.form-control-plaintext class''' is used for '''styling''' the '''plain text'''.&lt;br /&gt;
&lt;br /&gt;
For eg: Setting the correct '''margin''' and '''padding''', setting transparent background, etc.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
|| '''Member ID''' field is added to this page.&lt;br /&gt;
&lt;br /&gt;
Click on the number.&lt;br /&gt;
&lt;br /&gt;
Notice that we cannot change this field. We can only read it.&lt;br /&gt;
&lt;br /&gt;
Next, let’s understand how to add and '''style checkboxes''' and '''radio buttons'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Form.html&lt;br /&gt;
|| Switch to the '''editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-6&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;form&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Member ID&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot; value=&amp;quot;12104&amp;quot; class=&amp;quot;form-control-plaintext&amp;quot; readonly&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Language Known&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-check&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;checkbox&amp;quot; class=&amp;quot;form-check-input&amp;quot; id=&amp;quot;language1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&amp;quot;language1&amp;quot; class=&amp;quot;form-check-label&amp;quot;&amp;gt; English &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-check&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;checkbox&amp;quot; class=&amp;quot;form-check-input&amp;quot; id=&amp;quot;language2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&amp;quot;language2&amp;quot; class=&amp;quot;form-check-label&amp;quot;&amp;gt; Hindi &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-check&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;checkbox&amp;quot; class=&amp;quot;form-check-input&amp;quot; id=&amp;quot;language3&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&amp;quot;language3&amp;quot; class=&amp;quot;form-check-label&amp;quot;&amp;gt; Marathi &amp;lt;/label&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Gender&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-check&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;radio&amp;quot; class=&amp;quot;form-check-input&amp;quot; name=&amp;quot;gender&amp;quot; id=&amp;quot;male&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&amp;quot;male&amp;quot; class=&amp;quot;form-check-label&amp;quot;&amp;gt; Male &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-check&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;radio&amp;quot; class=&amp;quot;form-check-input&amp;quot;name=&amp;quot;gender&amp;quot; id=&amp;quot;female&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&amp;quot;female&amp;quot; class=&amp;quot;form-check-label&amp;quot;&amp;gt; Female &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|| After '''Member''' '''ID''', type the code as shown here.&lt;br /&gt;
We’ve created '''checkboxes''' for selecting '''Language known''' and '''radio buttons''' for selecting '''Gender'''.&lt;br /&gt;
&lt;br /&gt;
Here, we have used the '''.form-check class''' for '''checkboxes''' and '''radio buttons'''.&lt;br /&gt;
&lt;br /&gt;
This single '''class''' is used for both '''checkboxes''' and '''radio buttons''' to improve the '''layout'''.&lt;br /&gt;
&lt;br /&gt;
Here, '''.form-check-input class''' is added to every '''checkbox '''and '''radio''' '''button'''.&lt;br /&gt;
&lt;br /&gt;
And''' .form-check-label class '''to their labels.&lt;br /&gt;
&lt;br /&gt;
These '''classes''' are used for setting the correct '''margin''' and '''padding'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
|| So, now we have successfully created the '''checkboxes''' and '''radio buttons'''.&lt;br /&gt;
&lt;br /&gt;
Next, let's learn to input''' files '''for upload&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Form.html&lt;br /&gt;
|| Switch to the file '''Form.html''' in the''' editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Form.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&amp;lt;div class=&amp;quot;form-group&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Upload Your Photo&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;file&amp;quot; class=&amp;quot;form-control-file&amp;quot;&amp;gt;&lt;br /&gt;
|| After the '''radio buttons''', type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
With this, we will be able to upload any file.&lt;br /&gt;
&lt;br /&gt;
Here, we have used the '''input type “file”'''.&lt;br /&gt;
&lt;br /&gt;
'''.form-control-file class''' is used for setting background color, margin, padding, etc.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
|| Observe that we can upload files now.&lt;br /&gt;
&lt;br /&gt;
Click on the''' browser '''to select the file which you want to upload.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
&lt;br /&gt;
Right click &amp;gt;&amp;gt; Inspect Element&lt;br /&gt;
&lt;br /&gt;
Click on Responsive Design Mode&lt;br /&gt;
|| Here, we have used '''class''' '''.col-md-6.'''&lt;br /&gt;
&lt;br /&gt;
So, the''' form''' appears in 2-column '''layouts''' for screen size greater than equal to '''768px'''.&lt;br /&gt;
&lt;br /&gt;
This '''form''' '''layout''' is used for '''laptop '''and''' desktop devices.'''&lt;br /&gt;
&lt;br /&gt;
Let’s see this''' layout''' for screen size less than '''768px'''.&lt;br /&gt;
&lt;br /&gt;
Enable the '''Responsive design mode'''.&lt;br /&gt;
&lt;br /&gt;
I will decrease the screen size below '''768px.'''&lt;br /&gt;
&lt;br /&gt;
Observe that the '''form''' is in a single column now.&lt;br /&gt;
&lt;br /&gt;
This '''layout''' is used for '''tablets '''and''' mobile devices.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| In this way, using '''Bootstrap classes''' we can create '''forms'''.&lt;br /&gt;
&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;
|| Slide 6: Summary &lt;br /&gt;
|| In this tutorial, we have learnt about:&lt;br /&gt;
* '''Form controls'''&lt;br /&gt;
* '''Help Text'''&lt;br /&gt;
* '''Sizing'''&lt;br /&gt;
* '''Read-only plain text'''&lt;br /&gt;
* '''Checkboxes '''and''' radio buttons '''and&lt;br /&gt;
* '''File Inputs '''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 8: Assignment&lt;br /&gt;
|| &lt;br /&gt;
As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Form.html''' file.&lt;br /&gt;
* Increase the height of the '''Mobile Number input textbox '''using''' .form-control-lg class'''.&lt;br /&gt;
* Save the file.&lt;br /&gt;
* Observe the output on the '''web browser.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: About Spoken Tutorial project&lt;br /&gt;
|| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Spoken Tutorial Workshops&lt;br /&gt;
|| &lt;br /&gt;
The Spoken Tutorial Project team conducts workshops and gives certificates.&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Forum&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by the Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Thanks&lt;br /&gt;
|| The script and video for this tutorial was contributed by Neha Solanki.&lt;br /&gt;
&lt;br /&gt;
This is Nancy Varkey from the Spoken Tutorial project team, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nirmala Venkat</name></author>	</entry>

	</feed>