<?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/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nehasolanki</id>
		<title>Script | Spoken-Tutorial - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nehasolanki"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Special:Contributions/Nehasolanki"/>
		<updated>2026-05-20T16:26:13Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Color-Classes-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Color-Classes-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Color-Classes-in-Bootstrap/English"/>
				<updated>2021-06-29T07:54:02Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Color Classes in Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhijit Bonik  '''Keywords: '''B...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Color Classes in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Border color classes, Text color classes, Links color classes, Background color classes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Color Classes 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 '''color''' '''classes''' for:&lt;br /&gt;
&lt;br /&gt;
* '''Borders'''&lt;br /&gt;
* '''Text'''&lt;br /&gt;
* '''Links '''and&lt;br /&gt;
* '''Background'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Layout&lt;br /&gt;
&lt;br /&gt;
Image1.png - &lt;br /&gt;
|  | In this tutorial, we will design a '''layout''' as shown here using '''color classes''' in '''Bootstrap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Border Color Classes&lt;br /&gt;
&lt;br /&gt;
border.png&lt;br /&gt;
|  | Let’s start with the '''Border color classes.'''&lt;br /&gt;
&lt;br /&gt;
'''Border color classes '''are used to color the borders.&lt;br /&gt;
&lt;br /&gt;
Following are the '''border color classes '''shown''' '''in their respective color.&lt;br /&gt;
&lt;br /&gt;
Let’s use one of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | Locate the files '''Mypage.html''' and '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use '''Mypage.html''' and '''Mystyle.css files '''which we saved earlier''' '''for this demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&lt;br /&gt;
|  | &lt;br /&gt;
* The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract them.&lt;br /&gt;
* Make a copy and then use them while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in any '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Delete:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;Mystyle.css&amp;quot;&amp;gt;&lt;br /&gt;
|  | First of all, we will remove linking '''Mystyle.css file '''with this''' HTML '''file. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Delete:&lt;br /&gt;
&lt;br /&gt;
border: 2px solid green;&lt;br /&gt;
|  | And in the '''4th row''', delete the '''border property''' which was '''set''' using the '''style attribute'''.&lt;br /&gt;
&lt;br /&gt;
We will design this layout using '''bootstrap''' '''color classes '''later'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in Firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''Firefox web browser.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
|  | Observe that all the borders set by using '''Mystyle.css''' '''file''' and '''style attribute''' are now removed.&lt;br /&gt;
&lt;br /&gt;
Now let's use the '''border color class'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html in gedit&lt;br /&gt;
|  | Switch back to '''Mypage.html '''in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;container-lg border border-primary&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | We’ll add a border with its color to the '''container''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Here the '''.border class''' is used to set a basic border.&lt;br /&gt;
&lt;br /&gt;
And '''.border-primary''' '''class''' is used to color the border as blue.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&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-sm-3 order-sm-last pt-sm-5&lt;br /&gt;
 border border-primary&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-9 pt-sm-5 border border-primary&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;font-italic&amp;quot;&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods and &lt;br /&gt;
get them delivered straight to your doorstep. &lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | We’ll also add borders to the columns of the '''2nd row''' as shown here.&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;
|  | Observe that the blue color border is added around the '''container'''.&lt;br /&gt;
&lt;br /&gt;
And it is also added to both the columns of the 2nd''' row.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Color Classes&lt;br /&gt;
&lt;br /&gt;
text.png&lt;br /&gt;
|  | Next is '''text color classes'''.&lt;br /&gt;
&lt;br /&gt;
* '''Text color classes '''are used to color the '''text''' and '''links'''&lt;br /&gt;
* Following are the '''text color classes''' shown in their respective color.&lt;br /&gt;
&lt;br /&gt;
Let’s use some of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file in the '''editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col m-sm-4 text-center&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-danger&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Notice the '''1st row'''.&lt;br /&gt;
&lt;br /&gt;
Recall that we had already '''set .text-danger class''' to the heading in one of the earlier tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to firefox&lt;br /&gt;
|  | Switch to the '''browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
|  | Notice that the color of the heading is red.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now let us see what happens if we add these color '''classes''' to '''links'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file in the '''editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''2nd row''', we’ll set the red color to all the '''links.'''&lt;br /&gt;
&lt;br /&gt;
Now we will replace the '''.text-reset''' '''class''' with '''.text-danger class'''. &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;
|  | Observe that the color of the '''links''' is now '''set''' to red.&lt;br /&gt;
&lt;br /&gt;
Notice that the color of the '''links''' darkens when you move the cursor on them.&lt;br /&gt;
&lt;br /&gt;
The color of '''links''' darkens only if we apply '''text color classes''' to '''links, '''not to''' text.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Next let’s learn about '''background color classes.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Background Color Classes&lt;br /&gt;
&lt;br /&gt;
background.png&lt;br /&gt;
|  | &lt;br /&gt;
* '''Background color classes '''are used to color the background of an element.&lt;br /&gt;
&lt;br /&gt;
Following are the '''background color classes''':&lt;br /&gt;
&lt;br /&gt;
Now let’s understand them with examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;row bg-info&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col m-sm-4 text-center text-uppercase bg-light&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-danger display-4&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''1st row''', add .'''bg-info class'''.&lt;br /&gt;
&lt;br /&gt;
And in its column, add '''.bg-light class''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-sm-last pt-sm-5&lt;br /&gt;
 border border-primary bg-light&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-danger&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
 Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-9 pt-sm-5 border border-primary bg-light&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;font-italic&amp;quot;&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods and&lt;br /&gt;
get them delivered straight to your doorstep. Shop for Rs.&lt;br /&gt;
1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''2nd row''', add .'''bg-light class''' to both the columns as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row justify-content-around align-items-start&lt;br /&gt;
 bg-info&amp;quot; style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;font-italic&amp;quot;&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;font-italic&amp;quot;&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;font-italic&amp;quot;&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt;&lt;br /&gt;
 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''3rd row''', add '''.bg-info class''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row bg-secondary&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col font-weight-bold&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mx-auto&amp;quot; style=&amp;quot;width: 140px;&amp;quot;&amp;gt; Copyright- 2021 &lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''4th row''', add '''.bg-secondary class''' as shown here.&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;
|  | Observe that we have successfully set the background colors to this '''HTML''' file.&lt;br /&gt;
&lt;br /&gt;
In this manner, you can set different colors using '''Bootstrap color classes'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt about '''classes''' which are used to '''color''':&lt;br /&gt;
&lt;br /&gt;
* '''Borders'''&lt;br /&gt;
* '''Text'''&lt;br /&gt;
* '''Links '''and&lt;br /&gt;
* '''Background'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file.&lt;br /&gt;
&lt;br /&gt;
* In the '''4th''' '''row''', add a border and set its color using the '''.border-dark class.'''&lt;br /&gt;
* Save the file.&lt;br /&gt;
&lt;br /&gt;
* Observe the output on the '''web browser.'''&lt;br /&gt;
&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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Typography-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Typography-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Typography-in-Bootstrap/English"/>
				<updated>2021-06-07T09:35:32Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Typography in Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhijit Bonik  '''Keywords: '''Boot...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Typography in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Typography in Bootstrap, Text Alignment, Text Transform, Font Weight and Italic, Text Decoration, Reset Color, Display headings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Typography 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 how to use:&lt;br /&gt;
&lt;br /&gt;
* '''Text Alignment'''&lt;br /&gt;
* '''Text Transform'''&lt;br /&gt;
* '''Font Weight and Italic'''&lt;br /&gt;
* '''Text Decoration'''&lt;br /&gt;
* '''Reset Color '''and&lt;br /&gt;
&lt;br /&gt;
* '''Display headings'''&lt;br /&gt;
&lt;br /&gt;
for styling and formatting text in '''Bootstrap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Layout&lt;br /&gt;
&lt;br /&gt;
Image1.png&lt;br /&gt;
|  | In this tutorial, we will design a '''layout''' as shown here in '''Bootstrap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Alignment&lt;br /&gt;
&lt;br /&gt;
[Image = left.png]&lt;br /&gt;
&lt;br /&gt;
[Image = right.png]&lt;br /&gt;
&lt;br /&gt;
[Image = center.png]&lt;br /&gt;
&lt;br /&gt;
[Image = justify.png]&lt;br /&gt;
|  | Let’s start with the '''text alignment'''.&lt;br /&gt;
&lt;br /&gt;
Text can be aligned either to the:&lt;br /&gt;
&lt;br /&gt;
* '''Left'''&lt;br /&gt;
* '''Right'''&lt;br /&gt;
* '''Center '''or&lt;br /&gt;
* '''Justify'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Alignment Classes&lt;br /&gt;
|  | These are the available '''classes''' for them:&lt;br /&gt;
&lt;br /&gt;
* '''.text-left'''&lt;br /&gt;
* '''.text-right'''&lt;br /&gt;
* '''.text-center'''&lt;br /&gt;
* '''.text-justify'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use one of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | Locate the files '''Mypage.html''' and '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use '''Mypage.html''' and '''Mystyle.css files '''which we saved earlier''' '''for this demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&lt;br /&gt;
|  | &lt;br /&gt;
* The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract them.&lt;br /&gt;
* Make a copy and then use them while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in Firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
|  | Notice that by default, the text is aligned to the left.&lt;br /&gt;
&lt;br /&gt;
Let us change the '''text alignment''' of the first row to the center.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col m-sm-4 text-center&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-danger&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Add the '''.text-center class''' to the column of the first row as shown here.&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;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
&lt;br /&gt;
|  | Observe that the text of the first row is aligned to the center now.&lt;br /&gt;
&lt;br /&gt;
Try the other '''text alignment classes''' on your own later, for your understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Alignment Classes with Breakpoints&lt;br /&gt;
|  | Also try '''text-left, .text-right '''and''' .text-center classes''' with '''breakpoints''' as shown below.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Transform&lt;br /&gt;
|  | Next we will explore '''text transform'''.&lt;br /&gt;
&lt;br /&gt;
Basically, it manages the capitalization of text.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Transform Classes&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
uppercase.png&lt;br /&gt;
&lt;br /&gt;
lowercase.png&lt;br /&gt;
&lt;br /&gt;
capitalize.png&lt;br /&gt;
&lt;br /&gt;
|  | These are the '''classes''' for it:&lt;br /&gt;
&lt;br /&gt;
* '''.text-uppercase''': It converts all the letters to uppercase&lt;br /&gt;
* '''.text-lowercase''': It converts all the letters to lowercase&lt;br /&gt;
* '''.text-capitalize''': It converts the first letter of each word to uppercase&lt;br /&gt;
&lt;br /&gt;
Let us try one of these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col m-sm-4 text-center text-uppercase&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-danger&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Add the '''.text-uppercase class''' to the column of the first row as shown here.&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;
|  | Observe the first row. We can see all the letters are converted to uppercase.&lt;br /&gt;
&lt;br /&gt;
Try the other''' text transformation classes''' on your own later for your understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Weight&lt;br /&gt;
|  | Next, let’s understand about '''Font Weight'''.&lt;br /&gt;
&lt;br /&gt;
'''Font weight''' specifies how thick the font of the text should be.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Weight Classes&lt;br /&gt;
|  | Following are the '''classes''' for it:&lt;br /&gt;
&lt;br /&gt;
* '''.font-weight-bold'''&lt;br /&gt;
* '''.font-weight-bolder'''&lt;br /&gt;
* '''.font-weight-normal'''&lt;br /&gt;
* '''.font-weight-light'''&lt;br /&gt;
* '''.font-weight-lighter'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col font-weight-bold&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mx-auto&amp;quot; style=&amp;quot;width: 140px; &lt;br /&gt;
border: 2px solid green;&amp;quot;&amp;gt;&lt;br /&gt;
Copyright- 2021&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Add the '''.font-weight-bold class''' to the column of the last row as shown here.&lt;br /&gt;
&lt;br /&gt;
In our code, we will increase the width of the '''block-level element '''to '''140px'''.&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;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The text is set to '''bold''' now.&lt;br /&gt;
&lt;br /&gt;
Try the other '''font weight classes''' on your own later, for your understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s understand how to set the text to '''italic'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Italic&lt;br /&gt;
|  | '''.font-italic class''' is used to set the text to '''italic'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;font-italic&amp;quot;&amp;gt; Buy your essentials &lt;br /&gt;
at the lowest price. Choose from fresh produce &lt;br /&gt;
to packaged goods and get them delivered straight&lt;br /&gt;
to your doorstep. Shop for Rs.1000 and more to&lt;br /&gt;
get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Add '''.font-italic class''' to the paragraph in the second row as shown here.&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;
|  | Now we can see that the text in the paragraph is set to '''italic'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Decoration&lt;br /&gt;
|  | Next we will learn about '''text decoration'''.&lt;br /&gt;
* '''.text-decoration-none class''' is used to remove decoration of the text.&lt;br /&gt;
* It is mostly used to remove the '''underline''' of a '''link'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to firefox&lt;br /&gt;
|  | Switch to the '''browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
|  | Observe the '''links''' in the second row.&lt;br /&gt;
&lt;br /&gt;
They are '''underlined''' when we hover the cursor over the words.&lt;br /&gt;
&lt;br /&gt;
We can use '''.text-decoration-none''' to remove this '''underline, '''if we wish to.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none&amp;quot;&amp;gt;&amp;lt;li&amp;gt;&lt;br /&gt;
Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none&amp;quot; &amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Add '''.text-decoration-none class''' to all the '''links''' in the second row as shown here.&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;
|  | Observe the second row.&lt;br /&gt;
&lt;br /&gt;
The '''underline''' of the '''links''' are now no longer visible.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | By default the color of the '''link''' is always set to blue. &lt;br /&gt;
&lt;br /&gt;
But this can be changed to any other colour we like.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Reset Color&lt;br /&gt;
|  | '''.text-reset class''' is used to change or reset the colour of a text or '''link'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt; &lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt; &lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;text-decoration-none text-reset&amp;quot;&amp;gt;&amp;lt;li&amp;gt; &lt;br /&gt;
Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Add the '''.text-reset class''' to the '''links''' as shown here.&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;
|  | In the output, the color of the '''links''' are set to the default black colour.&lt;br /&gt;
&lt;br /&gt;
It has inherited the color from its parent.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Display Headings&lt;br /&gt;
|  | Next, let’s understand '''display headings.'''&lt;br /&gt;
&lt;br /&gt;
* They are used to make headings more prominent than normal headings.&lt;br /&gt;
* For example, they are slightly larger than normal headings'''.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Display Headings Classes&lt;br /&gt;
* '''.display-1'''&lt;br /&gt;
* '''.display-2'''&lt;br /&gt;
* '''.display-3'''&lt;br /&gt;
* '''.display-4'''&lt;br /&gt;
&lt;br /&gt;
|  | Following are''' display heading classes:'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Display Headings - Example&lt;br /&gt;
&lt;br /&gt;
[display.png]&lt;br /&gt;
&lt;br /&gt;
Highlight h1 heading&lt;br /&gt;
|  | Note the difference between '''h1''' '''heading''' and various other '''display heading classes.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now let’s understand '''display heading classes''' with an example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col m-sm-4 text-center text-uppercase&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-danger display-4&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Add the '''.display-4 class''' to the column of the first row as shown here.&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;
|  | Observe that now the '''heading''' is slightly larger than normal heading.&lt;br /&gt;
&lt;br /&gt;
Try out the other '''heading classes''' and observe the differences.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt how to use:&lt;br /&gt;
&lt;br /&gt;
* '''Text Alignment'''&lt;br /&gt;
* '''Text Transform'''&lt;br /&gt;
* '''Font Weight and Italic'''&lt;br /&gt;
* '''Text Decoration'''&lt;br /&gt;
* '''Reset Color '''and&lt;br /&gt;
* '''Display headings'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 8: Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file&lt;br /&gt;
&lt;br /&gt;
* In the '''3rd''' '''row''', set the text font of all the paragraphs to '''italic'''&lt;br /&gt;
&lt;br /&gt;
* Save the file&lt;br /&gt;
&lt;br /&gt;
* Observe the output on the '''web browser'''&lt;br /&gt;
&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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on 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;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Horizontal-and-Vertical-Alignment-Classes-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Horizontal-and-Vertical-Alignment-Classes-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Horizontal-and-Vertical-Alignment-Classes-in-Bootstrap/English"/>
				<updated>2021-05-21T10:01:17Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Horizontal and Vertical Alignment Classes in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Horizontal and Vertical Alignment Classes in Bootstrap, justify-content classes, align-items classes, align-self classes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Horizontal and Vertical Alignment Classes 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;
* '''Horizontal alignment classes '''and&lt;br /&gt;
* '''Vertical alignment classes'''&lt;br /&gt;
&lt;br /&gt;
for aligning columns in a row&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Layout&lt;br /&gt;
&lt;br /&gt;
Image1.png&lt;br /&gt;
&lt;br /&gt;
Highlight 3rd row&lt;br /&gt;
|  | In this tutorial, we will design a '''layout''' as shown here.&lt;br /&gt;
&lt;br /&gt;
'''Bootstrap '''has various '''horizontal''' and '''vertical alignment classes'''.&lt;br /&gt;
&lt;br /&gt;
Let’s learn how to implement '''horizontal''' and''' vertical alignment classes''' in the 3rd row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Horizontal Alignment Classes&lt;br /&gt;
|  | First let’s understand '''horizontal alignment classes.'''&lt;br /&gt;
&lt;br /&gt;
'''justify-content classes''' are used for '''horizontal alignment'''.&lt;br /&gt;
&lt;br /&gt;
These are:&lt;br /&gt;
* '''.justify-content-start'''&lt;br /&gt;
* '''.justify-content-end'''&lt;br /&gt;
* '''.justify-content-center'''&lt;br /&gt;
* '''.justify-content-between'''&lt;br /&gt;
* '''.justify-content-around'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: justify-content Classes&lt;br /&gt;
&lt;br /&gt;
Image2.png&lt;br /&gt;
&lt;br /&gt;
Highlight the image according to the narration&lt;br /&gt;
|  | Now let’s understand these''' classes''' one by one.&lt;br /&gt;
&lt;br /&gt;
* In '''.justify-content-start class, '''we see all columns shift to the start of the row&lt;br /&gt;
* In '''.justify-content-end class, '''all columns shift to the end of the row&lt;br /&gt;
* In '''.justify-content-center class, '''all columns shift to the center of the row&lt;br /&gt;
* Next '''class''' is '''.justify-content-between class.''' Here the extra space is equally divided in between all the columns of the row&lt;br /&gt;
* And in '''.justify-content-around class, '''every column has equal left and right space around them&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use one of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | Locate the files '''Mypage.html''' and '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use '''Mypage.html''' and '''Mystyle.css''' files which we saved earlier for this demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&lt;br /&gt;
|  | &lt;br /&gt;
* The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract them.&lt;br /&gt;
* Make a copy and then use them while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, we have removed the '''order''' and '''offset classes''' from all the three columns.&lt;br /&gt;
&lt;br /&gt;
And we have added some height to this row using the '''style attribute'''.&lt;br /&gt;
&lt;br /&gt;
So we can see the '''horizontal alignment''' of columns very clearly.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in Firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Notice that '''order''' and '''offset''' have been removed from all columns of the 3rd row.&lt;br /&gt;
&lt;br /&gt;
And the height of the row has increased.&lt;br /&gt;
&lt;br /&gt;
Now let us see how we can add '''horizontal alignment class''' to the 3rd row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row justify-content-between&amp;quot; style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, add''' .justify-content-between class '''as shown here.&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 the output&lt;br /&gt;
&lt;br /&gt;
|  | Observe the 3rd row.&lt;br /&gt;
&lt;br /&gt;
The extra space is equally divided in between all the columns of this row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try other '''horizontal classes''' later for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Vertical Alignment Classes&lt;br /&gt;
|  | Now let’s understand '''vertical alignment classes.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Vertical Alignment Classes&lt;br /&gt;
|  | &lt;br /&gt;
* '''align-items classes'''&lt;br /&gt;
* '''align-self classes'''&lt;br /&gt;
&lt;br /&gt;
are used for '''vertical alignments'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-items Classes&lt;br /&gt;
|  | These are different types of''' align-items classes''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''.align-items-start'''&lt;br /&gt;
* '''.align-items-end'''&lt;br /&gt;
* '''.align-items-center'''&lt;br /&gt;
* '''.align-items-baseline'''&lt;br /&gt;
* '''.align-items-stretch'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-items Classes&lt;br /&gt;
&lt;br /&gt;
Image3.png&lt;br /&gt;
&lt;br /&gt;
Highlight 1&lt;br /&gt;
&lt;br /&gt;
Highlight 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 1,2,3,4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 5&lt;br /&gt;
|  | Now let’s understand these''' classes''' one by one.&lt;br /&gt;
&lt;br /&gt;
* In '''.align-items-start,''' columns are''' '''aligned to the top of the row&lt;br /&gt;
* In '''.align-items-end, '''columns are''' '''aligned to the bottom of the row&lt;br /&gt;
* In '''.align-items-center, '''columns are''' '''aligned to the center of the row&lt;br /&gt;
* And in '''.align-items-baseline, '''columns are aligned according to the first line&lt;br /&gt;
&lt;br /&gt;
i.e baseline of every column&lt;br /&gt;
&lt;br /&gt;
For the first 4 '''align-items classes''', the height of the column is adjusted according to the content.&lt;br /&gt;
&lt;br /&gt;
* Lastly in '''.align-items-stretch, '''the column height is stretched to the height of the parent row.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use one of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row justify-content-between align-items-end&amp;quot;&lt;br /&gt;
style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, add''' .align-items-end class '''as shown here.&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 the output&lt;br /&gt;
&lt;br /&gt;
|  | Observe the 3rd row.&lt;br /&gt;
&lt;br /&gt;
Now the height of all columns is adjusted according to the content in them.&lt;br /&gt;
&lt;br /&gt;
And they are aligned from the bottom of the row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try other '''align-items classes''' later for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: align-items Classes&lt;br /&gt;
&lt;br /&gt;
Image3.png&lt;br /&gt;
|  | We saw that '''align-items class''' is used to apply the same '''vertical alignment''' to all the columns.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Different '''vertical alignment''' for different columns&lt;br /&gt;
&lt;br /&gt;
Image4.png&lt;br /&gt;
|  | But what if we want different vertical alignment for different columns?&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-self Classes&lt;br /&gt;
|  | This can be achieved by using '''align-self classes'''.&lt;br /&gt;
&lt;br /&gt;
These are different types of '''align-self classes''':&lt;br /&gt;
&lt;br /&gt;
* '''.align-self-start'''&lt;br /&gt;
* '''.align-self-end'''&lt;br /&gt;
* '''.align-self-center'''&lt;br /&gt;
* '''.align-self-baseline'''&lt;br /&gt;
* '''.align-self-stretch'''&lt;br /&gt;
&lt;br /&gt;
These work the same like '''align-items classes '''but are applied to an individual column. &lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now let’s understand these''' classes''' with examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-self classes&lt;br /&gt;
&lt;br /&gt;
Image5.png&lt;br /&gt;
|  | In this row, all columns have different '''vertical alignment classes'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use some of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row justify-content-between&amp;quot; style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 align-self-start&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 align-self-end&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, remove .'''align-items-end class'''.&lt;br /&gt;
&lt;br /&gt;
In the 1st column, add''' .align-self-start class.'''&lt;br /&gt;
&lt;br /&gt;
And in the 3rd column, add''' .align-self-end class '''as shown here.&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 the output&lt;br /&gt;
&lt;br /&gt;
|  | Observe the 3rd row.&lt;br /&gt;
&lt;br /&gt;
The height of 1st and 3rd columns are adjusted according to the content.&lt;br /&gt;
&lt;br /&gt;
The 1st column is aligned to the top and the 3rd column is aligned to the bottom of the row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try other '''align-self classes''' later for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Horizontal and vertical alignment classes with breakpoints&lt;br /&gt;
&lt;br /&gt;
|  | '''Horizontal''' and '''vertical alignment classes''' can also be used with '''breakpoints''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try these classes later for your own understanding&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* '''Horizontal alignment classes '''and&lt;br /&gt;
* '''Vertical alignment classes'''&lt;br /&gt;
&lt;br /&gt;
for aligning columns in a row&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 '''Mypage.html''' file&lt;br /&gt;
&lt;br /&gt;
* In the '''3rd''' '''row''': &lt;br /&gt;
** change the horizontal alignment class with '''.justify-content-around.'''&lt;br /&gt;
** add the '''vertical alignment class .align-items-start'''&lt;br /&gt;
** remove individual column '''vertical alignment classes'''&lt;br /&gt;
&lt;br /&gt;
* Save both the files.&lt;br /&gt;
&lt;br /&gt;
* Observe the output on the '''web browser.'''&lt;br /&gt;
&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;
|  | The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Horizontal-and-Vertical-Alignment-Classes-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Horizontal-and-Vertical-Alignment-Classes-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Horizontal-and-Vertical-Alignment-Classes-in-Bootstrap/English"/>
				<updated>2021-05-11T15:15:36Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Horizontal and Vertical Alignment Classes in Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Horizontal and Vertical Alignment Classes in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Horizontal and Vertical Alignment Classes in Bootstrap, justify-content classes, align-items classes, align-self classes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Horizontal and Vertical Alignment Classes 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;
* '''Horizontal alignment classes '''and&lt;br /&gt;
* '''Vertical alignment classes'''&lt;br /&gt;
&lt;br /&gt;
for aligning columns in a row&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Layout&lt;br /&gt;
&lt;br /&gt;
Image1.png&lt;br /&gt;
&lt;br /&gt;
Highlight 3rd row&lt;br /&gt;
|  | In this tutorial, we will design a '''layout''' as shown here.&lt;br /&gt;
&lt;br /&gt;
'''Bootstrap '''has various '''horizontal''' and '''vertical alignment classes'''.&lt;br /&gt;
&lt;br /&gt;
Let’s learn how to implement '''horizontal''' and''' vertical alignment classes''' in the 3rd row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Horizontal Alignment Classes&lt;br /&gt;
|  | First let’s understand '''horizontal alignment classes.'''&lt;br /&gt;
&lt;br /&gt;
'''justify-content classes''' are used for '''horizontal alignment'''.&lt;br /&gt;
&lt;br /&gt;
These are:&lt;br /&gt;
* '''.justify-content-start'''&lt;br /&gt;
* '''.justify-content-end'''&lt;br /&gt;
* '''.justify-content-center'''&lt;br /&gt;
* '''.justify-content-between'''&lt;br /&gt;
* '''.justify-content-around'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: justify-content Classes&lt;br /&gt;
&lt;br /&gt;
Image2.png&lt;br /&gt;
&lt;br /&gt;
Highlight the image according to the narration&lt;br /&gt;
|  | Now let’s understand these''' classes''' one by one.&lt;br /&gt;
&lt;br /&gt;
* In '''.justify-content-start class, '''we see''' '''all columns shift to the start of the row&lt;br /&gt;
* In''' .justify-content-end class, '''all columns shift to the end of the row&lt;br /&gt;
* In''' .justify-content-center class, '''all columns shift to the center of the row&lt;br /&gt;
* Next class is .'''justify-content-between class.''' Here the extra space is equally divided in between amongst all the columns of the row&lt;br /&gt;
* And in''' .justify-content-around class, '''every column has equal left and right space around them&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use one of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | Locate the files '''Mypage.html''' and '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use '''Mypage.html''' and '''Mystyle.css files '''which we saved earlier''' '''for this demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&lt;br /&gt;
|  | &lt;br /&gt;
* The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract them.&lt;br /&gt;
* Make a copy and then use them while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, we have removed the '''order''' and '''offset classes''' from all the three columns.&lt;br /&gt;
&lt;br /&gt;
And we have added some height to this row using the '''style attribute'''.&lt;br /&gt;
&lt;br /&gt;
So we can see the '''horizontal alignment''' of columns very clearly.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in Firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Notice that '''order''' and '''offset''' have been removed from all columns of the 3rd row.&lt;br /&gt;
&lt;br /&gt;
And the height of the row has increased.&lt;br /&gt;
&lt;br /&gt;
Now let us see how we can add '''horizontal alignment class''' to the 3rd row'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row justify-content-between&amp;quot; style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, add''' .justify-content-between class '''as shown here.&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 the output&lt;br /&gt;
&lt;br /&gt;
|  | Observe the 3rd row.&lt;br /&gt;
&lt;br /&gt;
The extra space is equally divided in between amongst all the columns of this row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try other '''horizontal classes''' later for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Vertical Alignment Classes&lt;br /&gt;
|  | Now let’s understand '''vertical alignment classes.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Vertical Alignment Classes&lt;br /&gt;
|  | &lt;br /&gt;
* '''align-items classes'''&lt;br /&gt;
* '''align-self classes'''&lt;br /&gt;
&lt;br /&gt;
are used for '''vertical alignments'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-items Classes&lt;br /&gt;
|  | These are different types of''' align-items classes''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''.align-items-start'''&lt;br /&gt;
* '''.align-items-end'''&lt;br /&gt;
* '''.align-items-center'''&lt;br /&gt;
* '''.align-items-baseline'''&lt;br /&gt;
* '''.align-items-stretch'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-items Classes&lt;br /&gt;
&lt;br /&gt;
Image3.png&lt;br /&gt;
&lt;br /&gt;
Highlight 1&lt;br /&gt;
&lt;br /&gt;
Highlight 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 1,2,3,4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight 5&lt;br /&gt;
|  | Now let’s understand these''' classes''' one by one.&lt;br /&gt;
&lt;br /&gt;
* In '''.align-items-start,''' columns are''' '''aligned from the top of the row&lt;br /&gt;
* In '''.align-items-end, '''columns are''' '''aligned from the bottom of the row&lt;br /&gt;
* In '''.align-items-center, '''columns are''' '''aligned to the center of the row&lt;br /&gt;
* And in '''.align-items-baseline, '''columns are aligned according to the first line&lt;br /&gt;
&lt;br /&gt;
i.e baseline of every column&lt;br /&gt;
&lt;br /&gt;
For the first 4 '''align-items classes''', the height of the column is adjusted according to the content.&lt;br /&gt;
&lt;br /&gt;
* Lastly in '''.align-items-stretch, '''the column height is stretched to the height of the parent row.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use one of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row justify-content-between align-items-end&amp;quot;&lt;br /&gt;
style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, add''' .align-items-end class '''as shown here.&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 the output&lt;br /&gt;
&lt;br /&gt;
|  | Observe the 3rd row.&lt;br /&gt;
&lt;br /&gt;
Now the height of all columns is adjusted according to the content in them.&lt;br /&gt;
&lt;br /&gt;
And they are aligned from the bottom of the row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try other '''align-items classes''' later for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: align-items Classes&lt;br /&gt;
&lt;br /&gt;
Image3.png&lt;br /&gt;
|  | We saw that '''align-items class''' is used to apply the same '''vertical alignment''' to all the columns.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Different '''vertical alignment''' for different columns&lt;br /&gt;
&lt;br /&gt;
Image4.png&lt;br /&gt;
|  | But what if we want different vertical alignment for different columns?&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-self Classes&lt;br /&gt;
|  | This can be achieved by using '''align-self classes'''.&lt;br /&gt;
&lt;br /&gt;
These are different types of '''align-self classes''':&lt;br /&gt;
&lt;br /&gt;
* '''.align-self-start'''&lt;br /&gt;
* '''.align-self-end'''&lt;br /&gt;
* '''.align-self-center'''&lt;br /&gt;
* '''.align-self-baseline'''&lt;br /&gt;
* '''.align-self-stretch'''&lt;br /&gt;
&lt;br /&gt;
These work the same like '''align-items classes '''but are applied to an individual column. &lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now let’s understand these''' classes''' with examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : align-self classes&lt;br /&gt;
&lt;br /&gt;
Image5.png&lt;br /&gt;
|  | In this row, all columns have different '''vertical alignment classes'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use some of these '''classes''' in our '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row justify-content-between&amp;quot; style=&amp;quot;height: 160px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 align-self-start&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 align-self-end&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, remove .'''align-items-end class'''.&lt;br /&gt;
&lt;br /&gt;
In the 1st column, add''' .align-self-start class.'''&lt;br /&gt;
&lt;br /&gt;
And in the 3rd column, add''' .align-self-end class '''as shown here.&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 the output&lt;br /&gt;
&lt;br /&gt;
|  | Observe the 3rd row.&lt;br /&gt;
&lt;br /&gt;
The height of 1st and 3rd columns are adjusted according to the content.&lt;br /&gt;
&lt;br /&gt;
The 1st column is aligned to the top and the 3rd column is aligned to the bottom of the row.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try other '''align-self classes''' later for your own understanding.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Horizontal and vertical alignment classes with breakpoints&lt;br /&gt;
&lt;br /&gt;
|  | '''Horizontal''' and '''vertical alignment classes''' can also be used with '''breakpoints''' as shown here.&lt;br /&gt;
&lt;br /&gt;
* '''justify-content-[breakpoint]-[option]'''&lt;br /&gt;
* '''align-items-[breakpoint]-[option]'''&lt;br /&gt;
* '''align-self-[breakpoint]-[option]'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | You can try these classes later for your own understanding&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* '''Horizontal alignment classes '''and&lt;br /&gt;
* '''Vertical alignment classes'''&lt;br /&gt;
&lt;br /&gt;
for aligning columns in a row&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 '''Mypage.html''' file&lt;br /&gt;
&lt;br /&gt;
* In the '''3rd''' '''row''': &lt;br /&gt;
** change the horizontal alignment class with '''.justify-content-around.'''&lt;br /&gt;
** add the '''vertical alignment class .align-items-start'''&lt;br /&gt;
** remove individual column '''vertical alignment classes'''&lt;br /&gt;
&lt;br /&gt;
* Save both the files.&lt;br /&gt;
&lt;br /&gt;
* Observe the output on the '''web browser.'''&lt;br /&gt;
&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;
|  | The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Margin-and-Padding-Classes-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Margin-and-Padding-Classes-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Margin-and-Padding-Classes-in-Bootstrap/English"/>
				<updated>2021-04-20T10:33:13Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Margin and Padding Classes in Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhijit Bonik  '''K...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Margin and Padding Classes in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Margin and Padding Classes in Bootstrap, Margin Class, Padding Class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Margin and Padding Classes 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;
* '''Margin classes''' and&lt;br /&gt;
* '''Padding classes'''&lt;br /&gt;
&lt;br /&gt;
while designing a layout &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|  | This tutorial is recorded using,&lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''Bootstrap 4.6.0'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Layout&lt;br /&gt;
&lt;br /&gt;
Image1.png&lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we will design a '''layout''' as shown here.&lt;br /&gt;
&lt;br /&gt;
We will see how to implement '''margin''' to the '''column''' of '''1st row''' and '''last row'''.&lt;br /&gt;
&lt;br /&gt;
And '''padding''' to the '''columns''' of the '''2nd row'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Margin &amp;amp; Padding&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
* '''Margin''' adds whitespace outside the border&lt;br /&gt;
* '''Padding '''adds whitespace inside the border&lt;br /&gt;
* '''Bootstrap '''has various '''margin''' and '''padding classes'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Margin &amp;amp; Padding Classes- Format&lt;br /&gt;
|  | &lt;br /&gt;
* User has to follow the below format for naming the '''margin''' and '''padding''' '''classes'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Property&lt;br /&gt;
&lt;br /&gt;
[Table1]&lt;br /&gt;
|  | Here, '''property''' can be either '''m''' to set '''margin''' or '''p''' to set '''padding'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Sides&lt;br /&gt;
&lt;br /&gt;
[Table2]&lt;br /&gt;
|  | '''Sides''' specifies on which side of the element the '''margin''' or '''padding''' will be added.&lt;br /&gt;
&lt;br /&gt;
'''Sides '''should be one of the following.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Size&lt;br /&gt;
&lt;br /&gt;
[Table3]&lt;br /&gt;
&lt;br /&gt;
|  | '''Size''' specifies how much '''margin''' or '''padding''' will be added.&lt;br /&gt;
&lt;br /&gt;
'''Size '''should be one of the following.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now let’s understand all these with some examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | Locate the files '''Mypage.html''' and '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use '''Mypage.html''' and '''Mystyle.css files '''which we saved earlier''' '''for this demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 5: Code Files&lt;br /&gt;
|  |&lt;br /&gt;
* The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract them.&lt;br /&gt;
* Make a copy and then use them while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open the file in text editor&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
First we will see how to use the''' margin classes'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col m-4&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-danger&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''1st row''', for column add''' .m-4''' class as shown here.&lt;br /&gt;
&lt;br /&gt;
Here the format is specified with '''Property''' as '''m''', '''sides''' as '''blank '''and '''size''' as '''4'''.&lt;br /&gt;
&lt;br /&gt;
This''' class''' will set the '''margin '''of '''1.5rem '''on all 4 sides of the column.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html Downloads folder&lt;br /&gt;
&lt;br /&gt;
Open Mypage.html in Firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Now the '''margin''' is added to all 4 sides of the column of the '''1st row'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Text Box on the screen[&lt;br /&gt;
&lt;br /&gt;
1.5 X Browser's default font size]&lt;br /&gt;
|  | Let’s check how much '''margin''' is added.&lt;br /&gt;
&lt;br /&gt;
'''Margin''' added is '''1.5''' multiplied by the '''browser's''' default font size.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s find out what is the '''browser's''' default font size.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''Menu'''&amp;gt;&amp;gt; click on '''Preferences'''&lt;br /&gt;
&lt;br /&gt;
Under''' Font and Color'''&amp;gt;&amp;gt; point to''' 16px '''&lt;br /&gt;
&lt;br /&gt;
Text Box on the screen[&lt;br /&gt;
&lt;br /&gt;
1.5 X 16px = 24px]&lt;br /&gt;
|  | Open '''Menu'''at top right of this browser.&lt;br /&gt;
&lt;br /&gt;
Click on '''Preferences.'''&lt;br /&gt;
&lt;br /&gt;
Under''' Font and Color,''' we can see that '''16px '''is the '''browser's''' default font size.&lt;br /&gt;
&lt;br /&gt;
So the '''margin''' added is '''1.5''' multiplied by '''16px''' equals to '''24px'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next, let’s see how this page behaves in '''responsive mode''' after '''margin class'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Textbox [Press Ctrl+Shift+C]&lt;br /&gt;
&lt;br /&gt;
Right click &amp;gt;&amp;gt; Inspect Element&lt;br /&gt;
|  | Press '''Ctrl+Shift+C '''or right click on the page and select '''“Inspect Element”.'''&lt;br /&gt;
&lt;br /&gt;
The '''Inspect Element window '''opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | Textbox [Press Ctrl+Shift+M]&lt;br /&gt;
&lt;br /&gt;
Click on Responsive Design Mode&lt;br /&gt;
|  | Press '''Ctrl+Shift+M '''or click on the '''“Responsive Design Mode” '''at the top right of this window.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now the page is in '''responsive mode''' and we can change the size of the screen.&lt;br /&gt;
|-&lt;br /&gt;
|  | Using mouse, by dragging change the size&lt;br /&gt;
|  | By dragging the right border, we’ll increase and decrease the width of the screen.&lt;br /&gt;
&lt;br /&gt;
Observe that there is no change in the '''margin'''.&lt;br /&gt;
&lt;br /&gt;
So we can say that whatever is the size of screen, '''margin''' is added.&lt;br /&gt;
&lt;br /&gt;
Lets see one more example of margin class.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;width: 120px; border: 2px solid green;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copyright- 2021&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | We’ll add one more '''row''' at the end.&lt;br /&gt;
&lt;br /&gt;
Type the code as shown.&lt;br /&gt;
&lt;br /&gt;
We have created a row, with one column inside it.&lt;br /&gt;
&lt;br /&gt;
In the column we have created a '''block.'''&lt;br /&gt;
&lt;br /&gt;
Using '''style''' attributes, we have set some '''inline styles''' like '''width''' and '''border'''.&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 the output&lt;br /&gt;
&lt;br /&gt;
|  | We can observe a new row is added at the end.&lt;br /&gt;
&lt;br /&gt;
Using '''margin classes''', we can horizontally center this '''block-level '''element.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mx-auto&amp;quot; style=&amp;quot;width: 120px; border: 2px solid green;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copyright- 2021&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Add the '''.mx-auto''' '''margin class''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Here the format is specified with '''Property''' as '''m''', '''sides''' as '''x '''and''' size '''as''' auto'''&lt;br /&gt;
&lt;br /&gt;
This''' class''' will set the '''auto''' '''margin '''on '''left''' and '''right''' sides of the '''block'''&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 the output&lt;br /&gt;
|  | Observe the last '''row''', now the '''block''' is horizontally centered.&lt;br /&gt;
&lt;br /&gt;
This is because the '''margin''' is added to the '''left''' and '''right''' sides of the '''block.'''&lt;br /&gt;
&lt;br /&gt;
Please try other '''margin classes''' on your own.&lt;br /&gt;
&lt;br /&gt;
Next, let’s see '''padding classes.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-sm-last pt-5&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-9 pt-5&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods &lt;br /&gt;
and get them delivered straight to your doorstep. &lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''2nd row''', for both the '''columns''', add '''.pt-5 class''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Here the format is specified with '''Property''' as '''p''', '''sides''' as '''t '''and''' size '''as''' 5'''&lt;br /&gt;
&lt;br /&gt;
This '''class''' will set '''padding''' of '''3rem''' at the '''top''' of the columns.&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;
Text Box on the screen-&lt;br /&gt;
&lt;br /&gt;
[Browser's default font size is 16px.&lt;br /&gt;
&lt;br /&gt;
3 X 16px = 48px]&lt;br /&gt;
&lt;br /&gt;
Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
We can observe that''' padding''' is added at the top of both the columns.&lt;br /&gt;
&lt;br /&gt;
Here, '''browser’s''' default font size is 16px, so '''3rem''' is 3 multiplied by '''16px''' which is '''48px.'''&lt;br /&gt;
&lt;br /&gt;
Hence a '''padding''' of '''48px''' is added at the top.&lt;br /&gt;
&lt;br /&gt;
Observe that by default column has some '''left''' and '''right padding'''.&lt;br /&gt;
&lt;br /&gt;
By dragging the right border, we’ll increase and decrease the width of the screen.&lt;br /&gt;
&lt;br /&gt;
Observe that the top '''padding''' is still added to the columns.&lt;br /&gt;
&lt;br /&gt;
So, whatever is the size of the screen, the '''padding''' is added.&lt;br /&gt;
&lt;br /&gt;
We can use '''margin''' and '''padding classes''' with a '''breakpoint'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Margin and Padding classes with Breakpoints&lt;br /&gt;
&lt;br /&gt;
|  | Users have to follow these formats for naming '''margin''' and '''padding''' '''classes''' with '''Breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
* This is the format for '''xs''' '''breakpoint'''&lt;br /&gt;
* This is the format for '''sm, md, lg '''&amp;amp;''' xl breakpoints'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s use '''padding class''' with '''breakpoints'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-sm-last pt-sm-5&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-9 pt-sm-5&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods &lt;br /&gt;
and get them delivered straight to your doorstep. &lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the '''2nd row''', for both the '''columns''', change the '''padding''' '''class''' to '''.pt-sm-5''' as shown here.&lt;br /&gt;
&lt;br /&gt;
Here, format is specified with '''Property''' as '''p''', '''sides''' as '''t, breakpoint '''as '''sm '''and''' size '''as '''5.'''&lt;br /&gt;
&lt;br /&gt;
This '''class''' adds a '''padding''' of '''3rem '''to the '''top''' for screen size '''Small''' and above.&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;
Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
|  | Observe that now '''padding''' is not added to the columns.&lt;br /&gt;
&lt;br /&gt;
This is because the width of the screen is below '''576px.'''&lt;br /&gt;
&lt;br /&gt;
By dragging the right border, we’ll increase the width of the screen to above '''576px.'''&lt;br /&gt;
&lt;br /&gt;
Observe that now '''padding''' is added to the columns.&lt;br /&gt;
&lt;br /&gt;
So we can conclude that '''padding''' is added for screen size '''Small''' and above.&lt;br /&gt;
&lt;br /&gt;
You can try other '''padding classes''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Margin classes''' and&lt;br /&gt;
* '''Padding classes'''&lt;br /&gt;
&lt;br /&gt;
while designing a '''layout''' &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 8: Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file&lt;br /&gt;
* For the '''column''' of '''1st row '''change the '''margin class''' to '''.m-sm-4.'''&lt;br /&gt;
* Save both the files.&lt;br /&gt;
* Observe the output on the '''web browser.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Order-and-Offset-Classes-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Order-and-Offset-Classes-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Order-and-Offset-Classes-in-Bootstrap/English"/>
				<updated>2021-04-16T05:53:06Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Order and Offset Classes in Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhijit Bonik  '''Key...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Order and Offset Classes in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Order and Offset Classes in Bootstrap, Order class, Offset''' '''class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Order and Offset classes 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;
* '''Order classes''' and&lt;br /&gt;
* '''Offset classes'''&lt;br /&gt;
&lt;br /&gt;
while designing a layout&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Layout&lt;br /&gt;
&lt;br /&gt;
Image1.png&lt;br /&gt;
&lt;br /&gt;
Highlight 2nd and 3rd rows&lt;br /&gt;
|  | In this tutorial, we will design a '''layout''' as shown here.&lt;br /&gt;
&lt;br /&gt;
We will see how to implement '''order''' and '''offset''' '''classes''' to the columns of 2nd &amp;amp; 3rd rows.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Order Classes&lt;br /&gt;
|  | Let’s start with '''order classes'''.&lt;br /&gt;
&lt;br /&gt;
* '''Order''' '''classes''' are used to manage the visual order of the '''HTML''' elements.&lt;br /&gt;
* Following are the '''order classes''':&lt;br /&gt;
** '''.order-first: '''sets the visual order to first&lt;br /&gt;
** .'''order-last: '''sets the visual order to last&lt;br /&gt;
** '''.order-*:''' sets the visual order by grid numbers from 0 to 12.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Order Classes with Breakpoints&lt;br /&gt;
&lt;br /&gt;
table1.png&lt;br /&gt;
|  | '''Order classes '''are also set with '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
Following are the''' .order''' '''classes''' for different '''breakpoints'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Let’s understand '''.order classes''' with an example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | Locate the files '''Mypage.html''' and '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use '''Mypage.html''' and '''Mystyle.css files '''which we saved earlier''' '''for this demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 5: Code Files&lt;br /&gt;
|  | &lt;br /&gt;
* The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract them.&lt;br /&gt;
* Make a copy and then use them while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
Open the file in text editor&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-sm-last&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-9&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods &lt;br /&gt;
and get them delivered straight to your doorstep.&lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | First we will add the '''order class''' in this code.&lt;br /&gt;
&lt;br /&gt;
For the 2nd row 1st column, add '''order-sm-last''' '''class''' as shown.&lt;br /&gt;
&lt;br /&gt;
'''sm '''specifies the '''Small''' screen size.&lt;br /&gt;
&lt;br /&gt;
This will set the visual order of the first column to the last.&lt;br /&gt;
&lt;br /&gt;
Next we’ll set the '''order class''' for the 3rd row which contains 3 columns as shown.&lt;br /&gt;
&lt;br /&gt;
i.e 1st column with '''order-3''' '''class'''&lt;br /&gt;
&lt;br /&gt;
2nd column with '''order-2''' '''class'''&lt;br /&gt;
&lt;br /&gt;
3rd column with '''order-1''' '''class'''&lt;br /&gt;
&lt;br /&gt;
Here we have changed the visual order to 3, 2 and 1.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in the My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
Open Mypage.html in Firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Textbox [Press Ctrl+Shift+C]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Right click &amp;gt;&amp;gt; Inspect Element&lt;br /&gt;
&lt;br /&gt;
Textbox [Press Ctrl+Shift+M]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Click on Responsive Design Mode&lt;br /&gt;
&lt;br /&gt;
Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
|  | In the 3rd row, we see that the visual order of the columns has changed accordingly.&lt;br /&gt;
&lt;br /&gt;
That is, the 1st column became the 3rd and 3rd column became 1st.&lt;br /&gt;
&lt;br /&gt;
In the 2nd row, the visual order of the 1st column which consists of links is moved to last.&lt;br /&gt;
&lt;br /&gt;
Let’s see how this page behaves in responsive mode after using '''order class'''.&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl+Shift+C '''or right-click on the page and select '''“Inspect Element”.'''&lt;br /&gt;
&lt;br /&gt;
The '''Inspect Element window '''opens.&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl+Shift+M '''or click on the '''“Responsive Design Mode” '''at the bottom right.&lt;br /&gt;
&lt;br /&gt;
Now the page is in '''responsive mode''', so we can change the size of the screen.&lt;br /&gt;
&lt;br /&gt;
By dragging the right border, we’ll decrease the width of the screen to below '''576px.'''&lt;br /&gt;
&lt;br /&gt;
Observe that now the column that consists of '''links,''' is at the first in this row.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | So we can conclude that its '''order''' is set to last for screen size '''Small''' and above.&lt;br /&gt;
&lt;br /&gt;
You can also try '''.order''' '''classes''' with other '''breakpoints'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next we’ll learn about '''offset classes'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Offset Classes&lt;br /&gt;
|  |&lt;br /&gt;
* '''Offset''' '''classes''' are used to increase the left margin of the '''HTML''' elements.&lt;br /&gt;
* The class''' .offset-*''' increase the left margin by * grid columns&lt;br /&gt;
* Here, '''&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;''' represents any grid number between 1 to 11.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Let’s understand '''.offset classes''' with an example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-3 offset-1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-2 offset-1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-1 offset-1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 3rd row, add the''' offset-1''' '''class''' to all the columns, as shown.&lt;br /&gt;
&lt;br /&gt;
Here 1 represents 1 grid column and this '''class''' provides the left margin by default.&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;
&lt;br /&gt;
Using mouse, by dragging change the size&lt;br /&gt;
|  | We see that the margin of 1 grid column is added to the left of each of the three columns.&lt;br /&gt;
&lt;br /&gt;
So we can say that each column has shifted to the right by 1 grid column.&lt;br /&gt;
&lt;br /&gt;
By dragging the right border, we will increase the width of the screen.&lt;br /&gt;
&lt;br /&gt;
At every screen size, '''offset''' remains the same.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Offset Class with Breakpoints&lt;br /&gt;
&lt;br /&gt;
table2.png&lt;br /&gt;
|  | '''Offset classes''' can also be set with '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
Following are the '''.offset''' '''classes''' for different '''breakpoints'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now let’s understand this with an example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-3 offset-sm-1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-2 offset-sm-1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-sm-3 order-1 offset-sm-1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | We will look for '''Small breakpoint.'''&lt;br /&gt;
&lt;br /&gt;
In the 3rd row, update the '''offset class''' for all the columns to '''offset-sm-1''' as shown.&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;
&lt;br /&gt;
Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
|  | Observe that the margin of 1 grid column is set before all the three columns.&lt;br /&gt;
&lt;br /&gt;
By dragging the right border, we’ll decrease the width of the screen to below '''576px.'''&lt;br /&gt;
&lt;br /&gt;
Now the margin of 1 grid column is not set.&lt;br /&gt;
&lt;br /&gt;
So we can say that the '''offset''' is set for screen size '''Small '''and above.&lt;br /&gt;
&lt;br /&gt;
You can also try '''.offset''' '''class''' with other '''breakpoints'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | This is the final '''layout''' which we have designed using '''order''' and '''offset''' '''classes'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Order classes''' and&lt;br /&gt;
* '''Offset classes'''&lt;br /&gt;
&lt;br /&gt;
while designing a '''layout'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 8: Assignment&lt;br /&gt;
&lt;br /&gt;
|  | Do the below assignment-&lt;br /&gt;
&lt;br /&gt;
* In '''MyPage.html '''file, change the '''order class''' for '''3rd row''' with:&lt;br /&gt;
** '''.order-sm-3 '''for '''1st column'''&lt;br /&gt;
** '''.order-sm-2 '''for '''2nd column'''&lt;br /&gt;
** '''.order-sm-1''' for '''3rd column'''&lt;br /&gt;
* Save both the files.&lt;br /&gt;
* Observe the output on the '''web browser'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Grid-System-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Grid-System-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Grid-System-in-Bootstrap/English"/>
				<updated>2021-04-07T10:07:18Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Grid System in Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhijit Bonik  '''Keywords: '''Boo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Grid System in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Row class, Column class, Column class with breakpoints.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Grid System 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;
* '''Row class'''&lt;br /&gt;
* '''Column class'''&lt;br /&gt;
* '''Column class with breakpoints'''&lt;br /&gt;
* '''12 Column class'''&lt;br /&gt;
* '''12 Column class with breakpoints'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Grid System&lt;br /&gt;
&lt;br /&gt;
Image1.png&lt;br /&gt;
&lt;br /&gt;
Highlight container&lt;br /&gt;
&lt;br /&gt;
Highlight rows&lt;br /&gt;
&lt;br /&gt;
Highlight columns&lt;br /&gt;
|  | '''Grid system''' uses a '''container, row''' and '''column''' in series.&lt;br /&gt;
&lt;br /&gt;
We will create a '''layout''' as shown here at the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
First, a '''container''' is created using '''.container-lg class'''.&lt;br /&gt;
&lt;br /&gt;
Inside this, '''rows''' are created using '''.row class'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''row, columns''' are created using '''column classes.'''&lt;br /&gt;
&lt;br /&gt;
'''Row''' is used as a wrapper for '''columns'''.&lt;br /&gt;
&lt;br /&gt;
In this '''layout''', the 1st '''row''' has 1 '''column''', the 2nd '''row''' has 2 '''columns''' and the 3rd row has 3 '''columns'''.&lt;br /&gt;
&lt;br /&gt;
Let us see how to create this '''website layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html &amp;amp; Mystyle.css in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | Locate the files '''Mypage.html''' and '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
&lt;br /&gt;
We will use '''Mypage.html''' and '''Mystyle.css files '''which we saved earlier''' '''for this demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 5: Code Files&lt;br /&gt;
|  |&lt;br /&gt;
* The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
* Please download and extract them.&lt;br /&gt;
* Make a copy and then use them while practising.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
Open the file in text editor&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
Let us first see how to use the''' .row class'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt; Header &amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt; Content &amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt; Footer &amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | Replace the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; tag&amp;lt;/nowiki&amp;gt;''' with the code as shown here.&lt;br /&gt;
&lt;br /&gt;
Inside the '''container''', there are three '''&amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;''' sections with '''row class'''.&lt;br /&gt;
&lt;br /&gt;
Each section represents''' Header, Content '''and''' Footer''' for the '''web page.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to '''Mystyle.css''' in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
Open Mystyle.css&lt;br /&gt;
|  | Let’s open the file '''Mystyle.css''' in the '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
.row {border: 3px solid orange;}&lt;br /&gt;
|  | After the''' .container-lg class''', type the code as shown.&lt;br /&gt;
&lt;br /&gt;
For better clarity, we have set a '''3 pixel solid orange border '''for '''.row class'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in the My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
Open Mypage.html in Firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
|  | We see that 3 '''rows''' are added to the '''page''' which is defined in '''bootstrap.css'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Textbox [Press Ctrl+Shift+C]&lt;br /&gt;
&lt;br /&gt;
Right click &amp;gt;&amp;gt; Inspect Element&lt;br /&gt;
|  | Press '''Ctrl+Shift+C '''or right click on the page and select '''“Inspect Element”'''&lt;br /&gt;
&lt;br /&gt;
'''Inspect Element window '''opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | Textbox [Press Ctrl+Shift+M]&lt;br /&gt;
&lt;br /&gt;
Click on Responsive Design Mode&lt;br /&gt;
|  | Press '''Ctrl+Shift+M '''or Click on the '''“Responsive Design Mode” '''at the top right of this window.&lt;br /&gt;
&lt;br /&gt;
Now the page is in '''responsive mode'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Using mouse, drag to change the size&lt;br /&gt;
|  | Let’s drag the right border, and increase and decrease the size of the screen.&lt;br /&gt;
&lt;br /&gt;
We see that the width of the '''rows''' also changes as per the size of the '''container'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next we’ll learn about '''column class.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Column Class&lt;br /&gt;
|  | &lt;br /&gt;
* '''.col''' '''class''' is used to create '''columns''' of equal width.&lt;br /&gt;
* '''.col-auto class''' is used to create '''columns''' that have width according to the content inside it.&lt;br /&gt;
&lt;br /&gt;
Let's see how to use '''column class''' with an example. &lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;container-lg&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-danger&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods&lt;br /&gt;
and get them delivered straight to your doorstep.&lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-auto&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Update the '''container''' section''' '''as shown here.&lt;br /&gt;
&lt;br /&gt;
For the 1st '''row,''' we have created a single '''column''' using '''.col class''' which has a '''heading'''.&lt;br /&gt;
&lt;br /&gt;
For the 2nd '''row,''' we have created two equal width '''columns''' using '''.col class'''.&lt;br /&gt;
&lt;br /&gt;
The 1st '''column''' has a list and the 2nd '''column''' has some content.&lt;br /&gt;
&lt;br /&gt;
For the 3rd '''row,''' we have created three '''columns''' with some content.&lt;br /&gt;
&lt;br /&gt;
We have used '''.co'''l '''class''' for 1st and 3rd '''columns''', and '''.col-auto''' '''class''' for 2nd '''column'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mystyle.css&lt;br /&gt;
|  | Switch to the '''Mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
.col {border: 2px solid navy;}&lt;br /&gt;
&lt;br /&gt;
.col-auto {border: 5px solid navy;}&lt;br /&gt;
|  | Next to the .'''row class''', type the '''column classes''' as shown here.&lt;br /&gt;
&lt;br /&gt;
For better clarity, we have set a '''2 pixel solid navy border''' for''' .col class'''&lt;br /&gt;
&lt;br /&gt;
And '''5 pixel solid navy border '''for''' .col-auto class'''.&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;
Point as per the narration&lt;br /&gt;
|  | In this '''layout''', the 1st '''row''' has a single '''column''' with '''heading'''.&lt;br /&gt;
&lt;br /&gt;
The 2nd '''row''' has two '''columns''' with equal width.&lt;br /&gt;
&lt;br /&gt;
The 3rd '''row''' has three '''columns'''.&lt;br /&gt;
&lt;br /&gt;
In the 2nd '''column,''' width is set according to the content inside it.&lt;br /&gt;
&lt;br /&gt;
The remaining space is equally divided between 1st and 3rd '''columns'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Using mouse, drag to change the size&lt;br /&gt;
|  | By dragging the right border, we’ll increase and decrease the width of the screen.&lt;br /&gt;
&lt;br /&gt;
Observe that the width of the '''columns''' also changes as per the size of the '''container'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Column Class with Breakpoints&lt;br /&gt;
&lt;br /&gt;
table1.png&lt;br /&gt;
|  | We can also create '''column class''' with '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
This table shows the '''.col classes''' for different '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
They have '''100%''' width until the '''breakpoint''' is reached.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Column Class with Breakpoints&lt;br /&gt;
&lt;br /&gt;
table2.png&lt;br /&gt;
|  | Similarly,''' '''these are the '''.col-auto classes''' for different '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
You can try these '''classes''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: 12 Column Class&lt;br /&gt;
|  | Next, we’ll learn how to create unequal width '''columns''' using a 12''' column class'''.&lt;br /&gt;
&lt;br /&gt;
* A '''row''' is divided into 12''' '''equal width '''columns'''.&lt;br /&gt;
* '''.col-{*}''' '''class''' is used to create '''columns''' of equal and unequal widths.&lt;br /&gt;
* '''&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;''' represents the number of '''columns''' out of 12.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: 12 Column Class - Example&lt;br /&gt;
&lt;br /&gt;
Example1.png&lt;br /&gt;
&lt;br /&gt;
Example2.png&lt;br /&gt;
&lt;br /&gt;
Example3.png&lt;br /&gt;
|  | Few '''columns''' can be combined to create a single '''column'''.&lt;br /&gt;
&lt;br /&gt;
For example, '''.col-6''' '''class''' is used to divide this row into two equal '''columns'''.&lt;br /&gt;
&lt;br /&gt;
In this case, '''.col-7 '''and''' .col-5''' '''classes''' are used to divide this row into two unequal '''columns'''.&lt;br /&gt;
&lt;br /&gt;
Here '''.col-3, .col-4 '''&amp;amp;''' .col-5''' '''classes''' are used to divide this '''row''' into 3 unequal '''columns'''.&lt;br /&gt;
&lt;br /&gt;
Notice that the sum of no. of '''columns''' should not be greater than 12.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-9&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods&lt;br /&gt;
and get them delivered straight to your doorstep.&lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | In the 2nd '''row''',for the 1st '''column''' change the '''column class''' to '''col-3.'''&lt;br /&gt;
&lt;br /&gt;
For the 2nd '''column''' change the '''column class''' to '''col-9'''.&lt;br /&gt;
&lt;br /&gt;
For the 3rd '''row''', change all the three '''column classes''' to '''col-3.'''&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 Mystyle.css&lt;br /&gt;
|  | Switch to the '''Mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
.col-3, .col-9 {border: 2px dotted navy;}&lt;br /&gt;
|  | Next to the '''.col class''', update the '''column classes''' as shown here.&lt;br /&gt;
&lt;br /&gt;
For better clarity, we have set a '''2 pixel dotted navy border''' for '''.col-3 '''&amp;amp; '''.col-9''' '''classes'''.&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;
Let us see the changes in the '''layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Using mouse, by dragging change the size&lt;br /&gt;
|  | Notice that the 2nd '''row''' has unequal width '''columns''' of grid 3 and 9.&lt;br /&gt;
&lt;br /&gt;
And the 3rd '''row''' has equal width '''columns''', each of grid 3.&lt;br /&gt;
&lt;br /&gt;
By dragging the right border, we’ll increase and decrease the width of the screen.&lt;br /&gt;
&lt;br /&gt;
We see that the width of the '''columns''' also changes as per the size of the '''container'''.&lt;br /&gt;
&lt;br /&gt;
Note that the ratio of width of '''columns''' i.e 1:3 for 2nd row &amp;amp; 1:1:1 for 3rd '''row''' remains constant. &lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;col-10&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods and&lt;br /&gt;
get them delivered straight to your doorstep. &lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | What happens if the sum of no. '''columns''' is greater than 12?&lt;br /&gt;
&lt;br /&gt;
Let’s check.&lt;br /&gt;
&lt;br /&gt;
For the 2nd''' row''', change the 2nd '''column''' class to '''col-10'''&lt;br /&gt;
&lt;br /&gt;
Notice that now the sum of no. of '''columns''' is 3+10=13, which is greater than 12.&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 Mystyle.css&lt;br /&gt;
|  | Switch to the '''Mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
.col-3, .col-10 {border: 2px dotted navy;}&lt;br /&gt;
|  | Update the '''class''' as shown here&lt;br /&gt;
&lt;br /&gt;
For better clarity, we have set a '''2 pixel dotted navy border '''for '''.col-10 column class'''.&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;
|  | Now the 2nd '''column''' is shifted to the next '''row'''.&lt;br /&gt;
&lt;br /&gt;
This is because space is not enough for it. &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: 12 Column Class with Breakpoints&lt;br /&gt;
&lt;br /&gt;
table3.png&lt;br /&gt;
|  | We can also create a 12 '''column class''' with '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
Following are the 12 '''column classes''' for different '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
They have '''100%''' width until the '''breakpoint''' is reached.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Fruits &amp;amp; Vegetables &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Foodgrain &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Beverages &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Personal care &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;li&amp;gt; Snacks &amp;amp; Branded Foods &amp;lt;/li&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-9&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Welcome to Online Grocery Shopping!! &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Buy your essentials at the lowest price.&lt;br /&gt;
Choose from fresh produce to packaged goods and&lt;br /&gt;
get them delivered straight to your doorstep.&lt;br /&gt;
Shop for Rs.1000 and more to get FREE delivery. &amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ABOUT BHARAT &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; About us &amp;lt;br&amp;gt; FAQ &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; PAYMENT AND SHIPPING &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Payment Methods &amp;lt;br&amp;gt; Shipping Policy &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-3&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; CONTACT US &amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; contact@bharat-online.com &amp;lt;br&amp;gt; 9000000001 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Now we’ll see how this '''class''' behaves for '''Medium''' screen size.&lt;br /&gt;
&lt;br /&gt;
In the 2nd '''row''', for the 1st '''column''' change the '''column class''' to '''col-md-3.'''&lt;br /&gt;
&lt;br /&gt;
For the 2nd '''column''' change the '''column class''' to '''col-md-9'''.&lt;br /&gt;
&lt;br /&gt;
For the 3rd '''row''', change the all three '''column classes''' to '''col-md-3'''.&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 Mystyle.css&lt;br /&gt;
|  | Switch to the '''Mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
.col-md-3, .col-md-9 {border: 2px dashed navy;}&lt;br /&gt;
|  | Next to the '''.col class''', update the '''column classes''' as shown here.&lt;br /&gt;
&lt;br /&gt;
We have set a '''2 pixel dashed navy border''' for '''.col-md-3''' and '''.col-md-9 column classes'''.&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;
Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
By dragging the right border, we’ll decrease the width of the screen to below '''768px.'''&lt;br /&gt;
&lt;br /&gt;
Now each '''column''' takes 100% width.&lt;br /&gt;
|-&lt;br /&gt;
|  | Using mouse, by dragging change the size&lt;br /&gt;
|  | Let’s increase the width of the screen to '''768px '''or above.&lt;br /&gt;
&lt;br /&gt;
Now the '''columns''' of 2nd and 3rd '''row''' are in 1:3 and 1:1:1 ratio respectively.&lt;br /&gt;
&lt;br /&gt;
So the '''column''' has '''100%''' width until the''' Medium breakpoint''' is reached.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | You can also try a 12 '''column class''' with other '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
In this way we can create '''responsive website layouts''' with '''Bootstrap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* '''Row class'''&lt;br /&gt;
* '''Column class'''&lt;br /&gt;
* '''Column class with breakpoints'''&lt;br /&gt;
* '''12 Column class'''&lt;br /&gt;
* '''12 Column class with breakpoints'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 8: Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file.&lt;br /&gt;
* For '''2nd''' '''row''' change the '''column class''' to&lt;br /&gt;
** '''.col-sm-3 '''for '''1st column.'''&lt;br /&gt;
** '''.col-sm-9 '''for '''2nd column.'''&lt;br /&gt;
* For '''3rd''' '''row''' change all the '''column class''' to .'''col-sm-3.'''&lt;br /&gt;
* Open the '''Mystyle.css''' file.&lt;br /&gt;
* Set '''2px solid navy border''' for '''.col-sm-3 '''and''' .col-sm-9 classes.'''&lt;br /&gt;
* Save both the files.&lt;br /&gt;
* Observe the output on the '''web browser.'''&lt;br /&gt;
&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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Containers-in-Bootstrap/English</id>
		<title>Bootstrap/C2/Containers-in-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Containers-in-Bootstrap/English"/>
				<updated>2021-03-18T10:16:04Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Containers in Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhijit Bonik  '''Keywords: '''Boot...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Containers in Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap, CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, container class, container-fluid class, container-{breakpoint} class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Containers 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;
* '''Containers'''&lt;br /&gt;
* '''Breakpoints''' and&lt;br /&gt;
* Types of '''container classes''' such as&lt;br /&gt;
** '''.container '''&lt;br /&gt;
** '''.container-fluid '''&lt;br /&gt;
** '''.container-{breakpoint} '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|  | This tutorial is recorded using,&lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''Bootstrap 4.6.0'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''CSS3'''&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;
&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;
|-&lt;br /&gt;
|  | Slide: Containers&lt;br /&gt;
|  | &lt;br /&gt;
* '''Containers''' are used to create basic responsive '''website''' layout.&lt;br /&gt;
* Responsive '''webpages''' automatically adjust as per screen size.&lt;br /&gt;
* '''Containers''' are mainly used to wrap '''website''' elements. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 5: Code Files&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;
|  | Point to Mypage.html in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
|  | I will go to '''My-bootstrap '''folder on my '''Desktop '''which I had created earlier.&lt;br /&gt;
&lt;br /&gt;
Here, I had saved the '''Mypage.html''' file.&lt;br /&gt;
&lt;br /&gt;
I’ll use this file for demonstration.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in Firefox&lt;br /&gt;
|  | First open the file '''Mypage.html''' in '''Firefox web browser.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
|  | It has one '''heading''' which we had created earlier.&lt;br /&gt;
&lt;br /&gt;
Now we will add a '''container class''' in this '''HTML''' file to wrap this '''heading'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in My-bootstrap folder&lt;br /&gt;
&lt;br /&gt;
Open the file in text editor&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''gedit''' '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1 class=&amp;quot;text-danger&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | Let us see how to use the''' .container class.'''&lt;br /&gt;
&lt;br /&gt;
Add the '''.container class''' using '''&amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt; tag''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Next, we’ll create our own '''css''' file to assign some additional properties to the '''container class'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit]&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;Create a new document&lt;br /&gt;
|  | Click on '''“Create a new document.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - untitled document 1]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
.container {border: 5px solid black;}&lt;br /&gt;
|  | Type the code as shown.&lt;br /&gt;
&lt;br /&gt;
This will set a '''5 pixel black solid border '''for the '''.container class.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
&lt;br /&gt;
Save in My-bootstrap&lt;br /&gt;
|  | Save the file as '''Mystyle.css''' in the '''My-bootstrap''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Next we will link '''Mystyle.css''' file to '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch back to '''Mypage.html''' file in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;Mystyle.css&amp;quot;&amp;gt;&lt;br /&gt;
|  | Inside the '''&amp;lt;head&amp;gt;''' section, next to '''&amp;lt;link&amp;gt; tag''', type the code as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|  | Textbox:&lt;br /&gt;
&lt;br /&gt;
Bootstrap CSS link should always be written before any other CSS link.&lt;br /&gt;
|  | Note that '''Bootstrap CSS link''' should always be written before any other '''CSS link'''.&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;
|  | Here we see that the '''heading''' is now placed inside this '''container'''.&lt;br /&gt;
&lt;br /&gt;
We also see that the '''container''' is center aligned.&lt;br /&gt;
&lt;br /&gt;
We had set the black border for this '''container''' in '''Mystyle.css''' file.&lt;br /&gt;
&lt;br /&gt;
This is the '''container''' which is defined in the '''inbuilt''' code file '''bootstrap.css'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next we will see how this page works in '''responsive design mode.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Textbox [Press Ctrl+Shift+C]&lt;br /&gt;
&lt;br /&gt;
Right click &amp;gt;&amp;gt; Inspect Element&lt;br /&gt;
|  | Press '''Ctrl+Shift+C '''or right-click on the page and select '''“Inspect Element”.'''&lt;br /&gt;
&lt;br /&gt;
'''Inspect Element window '''opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Textbox [Press Ctrl+Shift+M]&lt;br /&gt;
&lt;br /&gt;
Click on Responsive Design Mode&lt;br /&gt;
&lt;br /&gt;
|  | Press '''Ctrl+Shift+M '''or click on '''“Responsive Design Mode” '''at the top right of this window.&lt;br /&gt;
&lt;br /&gt;
Now the page is in responsive mode.&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight the width and height of the page with red box&lt;br /&gt;
|  | At the top of the page, we can see the present width and height of the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
|  | We can change the size of the screen by dragging the right border with the mouse.&lt;br /&gt;
&lt;br /&gt;
Notice that the size of the '''container''' also changes correspondingly.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
|  | There are many '''breakpoints''' in the screen size.&lt;br /&gt;
&lt;br /&gt;
Let’s understand what are '''breakpoints'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Breakpoint&lt;br /&gt;
&lt;br /&gt;
Table 1&lt;br /&gt;
&lt;br /&gt;
|  | A '''breakpoint''' shows the layout responsive changes for a particular device.&lt;br /&gt;
&lt;br /&gt;
'''Bootstrap '''has 5 types of '''breakpoints''' as shown in the table.&lt;br /&gt;
&lt;br /&gt;
You can choose any screen size according to your device.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now we will learn how to change the size to '''Extra Large.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
Drag till screen width is greater than '''1200px'''&lt;br /&gt;
|  | Switch back to the '''browser'''.&lt;br /&gt;
&lt;br /&gt;
Using the mouse, we’ll drag the right border.&lt;br /&gt;
&lt;br /&gt;
We want to change the size to '''Extra Large''' i.e width greater than '''1200px'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Inspector -&amp;gt; click on &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | At the bottom of the page, under the''' “Inspector”''' section, click on the''' &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt; tag''' line.&lt;br /&gt;
&lt;br /&gt;
In the middle section, notice that the '''max-width''' is 1140px.&lt;br /&gt;
&lt;br /&gt;
It''' '''means the maximum width of 1140px is covered by the '''container''' for this screen size.&lt;br /&gt;
&lt;br /&gt;
In '''.container class''', the width of the '''container''' changes as per the screen size.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: .container Class&lt;br /&gt;
&lt;br /&gt;
Highlight Extra Large - 1140px&lt;br /&gt;
|  | '''.container:''' It is a responsive fixed width '''container.'''&lt;br /&gt;
&lt;br /&gt;
Refer this table for the '''container''' width and their respective screen size.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Using mouse, by dragging change the size&lt;br /&gt;
|  | Switch back to '''browser'''.&lt;br /&gt;
&lt;br /&gt;
Using the mouse, we’ll drag the right border as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | Drag till screen width is between '''1199px '''to''' 992px'''&lt;br /&gt;
|  | We’ll change the screen size to '''Large''' i.e width between '''1199px '''to''' 992px'''.&lt;br /&gt;
&lt;br /&gt;
Now observe the '''max-width''' of the '''container''', which is changed to '''960px'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
|  | Try changing to other screen sizes - '''Medium''', '''Small''' &amp;amp; '''Extra Small''' and observe the change.&lt;br /&gt;
&lt;br /&gt;
In this way '''.container class''' creates responsive web layout for all screen sizes.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next let’s understand '''.container-fluid class''' with an example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: .container-fluid Class&lt;br /&gt;
&lt;br /&gt;
Table3&lt;br /&gt;
|  | &lt;br /&gt;
* '''.container-fluid:''' It is a full width '''container'''.&lt;br /&gt;
* It spans across 100% width of the viewport as shown in table&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the''' Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;container-fluid&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | Inside the''' &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt; '''section, change the class name to '''container-fluid.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mystyle.css&lt;br /&gt;
|  | Switch to the '''Mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
.container-fluid { border: 5px dotted black;}&lt;br /&gt;
|  | Update the code shown here.&lt;br /&gt;
&lt;br /&gt;
For better visibility, we have set a border for '''.container-fluid class.'''&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;
Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
Inspector -&amp;gt; click on &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | Using the mouse, we’ll drag the right border to decrease the screen width.&lt;br /&gt;
&lt;br /&gt;
Under the '''“Inspector”''' section, click on the '''&amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag line.&lt;br /&gt;
&lt;br /&gt;
In the middle section at the bottom, you can see the '''width''' of the '''container-fluid''' is '''100%'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Using mouse, by dragging change the size&lt;br /&gt;
|  | Now we’ll increase the screen width.&lt;br /&gt;
&lt;br /&gt;
Even then the''' width''' of the''' container-fluid''' is '''100%.'''&lt;br /&gt;
&lt;br /&gt;
At any screen size, '''max-width '''of '''container-fluid''' will take up the entire width.&lt;br /&gt;
&lt;br /&gt;
In this way '''.container-fluid class''' creates a '''responsive web layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next let’s learn about '''.container-{breakpoint} class'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: .container - {breakpoint} Class&lt;br /&gt;
&lt;br /&gt;
Table 4&lt;br /&gt;
|  | &lt;br /&gt;
* '''.container-{breakpoint}: '''It''' '''is a full width '''container''' until a given '''breakpoint''' is reached.&lt;br /&gt;
&lt;br /&gt;
* Following are the '''container classes''' for different '''breakpoints'''.&lt;br /&gt;
&lt;br /&gt;
* They have '''100%''' width until the '''breakpoint''' is reached.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Let’s understand '''.container-{breakpoint} class '''with an example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;container-md&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | Inside the''' &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt; '''section, change the '''class''' name to '''container-md.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mystyle.css&lt;br /&gt;
|  | Switch to the''' Mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
.container-md {border: 5px dashed black;}&lt;br /&gt;
|  | Update the code''' '''as shown here.&lt;br /&gt;
&lt;br /&gt;
For better visibility, we have set a border for '''.container-md class.'''&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;
Using mouse, by dragging change the size&lt;br /&gt;
|  | Using the mouse, we’ll drag the right border such that the width of the screen is below '''768px'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Inspector -&amp;gt; click on &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Point to the middle section&lt;br /&gt;
|  | Under the''' “Inspector”''' section, click on the''' &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag line.&lt;br /&gt;
&lt;br /&gt;
In the middle section at the bottom, we see that the '''width''' of the '''container-md''' is 100%.&lt;br /&gt;
|-&lt;br /&gt;
|  | Using mouse, by dragging change the size&lt;br /&gt;
&lt;br /&gt;
Highlight '''720px'''&lt;br /&gt;
|  | Now we’ll increase the width of the screen to '''768px '''or above.&lt;br /&gt;
&lt;br /&gt;
We observe that the '''max-width''' of the '''container-md''' is '''720px'''.&lt;br /&gt;
&lt;br /&gt;
And at any screen size below '''Medium''' i.e width less than '''768px''', the width''' '''of '''container-md''' is 100%.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | So it has 100% width until the''' Medium breakpoint''' is reached.&lt;br /&gt;
&lt;br /&gt;
You can also try with other '''.container-{breakpoint} classes'''.&lt;br /&gt;
&lt;br /&gt;
Like '''.container-xl, .container-lg and .container-sm.'''&lt;br /&gt;
&lt;br /&gt;
In this way '''.container-{breakpoint} class''' creates a '''responsive web layout.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* '''Containers''' &lt;br /&gt;
* '''Breakpoints''' and&lt;br /&gt;
* Types of '''container classes''' such as&lt;br /&gt;
** '''.container '''&lt;br /&gt;
** '''.container-fluid '''&lt;br /&gt;
** '''.container-{breakpoint} '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 8: Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file and change the '''container class''' to '''.container-lg'''.&lt;br /&gt;
* Open the '''Mystyle.css''' file and set the '''5px solid black border''' for '''.container-lg class'''.&lt;br /&gt;
* Save both the files.&lt;br /&gt;
* Observe the output on the '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Introduction-to-Bootstrap/English</id>
		<title>Bootstrap/C2/Introduction-to-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Introduction-to-Bootstrap/English"/>
				<updated>2021-02-18T13:12:03Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Introduction to Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap,''' '''CSS, HTML, Webpage, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Download Bootstrap, Compiled CSS and JS, CDN link, bootstrap.css&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Introduction to 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 how to:&lt;br /&gt;
&lt;br /&gt;
* Download and use '''Bootstrap''' version '''4.6.0 '''and&lt;br /&gt;
* Include '''Bootstrap''' version '''4.6.0 '''from '''CDN '''link&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser '''and&lt;br /&gt;
* '''A working Internet connection '''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 4: Prerequisite &lt;br /&gt;
&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;
|-&lt;br /&gt;
|  | Open web browser and type[https://developer.android.com/studio/  ]https://getbootstrap.com/&lt;br /&gt;
|  | Open your '''web browser''' and type the '''URL''' as shown here. &lt;br /&gt;
&lt;br /&gt;
Make sure you’ve an active '''internet connection'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Click on the '''Download button '''at the top right corner of the page&lt;br /&gt;
|  | Click on the '''Download '''button''' '''at the top right corner of the page.&lt;br /&gt;
&lt;br /&gt;
'''Download webpage''' opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Select v4.6.x&lt;br /&gt;
|  | At the right corner, we can see the version of '''Bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
Click on it to expand the list and select '''v4.6.x'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | '''Introduction''' webpage &lt;br /&gt;
|  | Introduction webpage opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
On the left panel &amp;gt;&amp;gt; click on''' Download'''&lt;br /&gt;
|  | On the left panel, click on the''' Download link'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight - Compiled CSS and JS&lt;br /&gt;
|  | Let us now download the ready-to-use '''compiled code '''for '''Bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
Go to the section''' “Compiled CSS and JS”.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight the version Bootstrap v4.6.0&lt;br /&gt;
|  | The latest '''stable''' version at the time of recording this tutorial is '''Bootstrap v4.6.0.'''&lt;br /&gt;
&lt;br /&gt;
It may vary in future.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click '''Download '''button&lt;br /&gt;
|  | Click on the''' Download '''button.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Narration only&lt;br /&gt;
|  | Please note: Some '''web browsers''' may download automatically.&lt;br /&gt;
&lt;br /&gt;
Some may display a '''Save as''' dialog box.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click on Save File button &lt;br /&gt;
|  | In the '''Save as''' dialog box, click on the '''Save File''' option and then on the '''Ok''' button.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only Narration&lt;br /&gt;
|  | The download''' '''may take some time depending upon your '''Internet '''connection'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to the '''Downloads '''folder &amp;gt;&amp;gt; Point to the downloaded file &lt;br /&gt;
|  | Go to the '''Downloads '''folder where the ready-to-use '''compiled '''code file is saved.&lt;br /&gt;
|-&lt;br /&gt;
|  | Right-click bootstrap zip file&amp;gt;&amp;gt; select '''Extract to'''&lt;br /&gt;
|  | Right-click this file and select '''Extract to.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Select Desktop&lt;br /&gt;
|  | Now choose the desired location on your machine to save this file.&lt;br /&gt;
&lt;br /&gt;
I’ll select '''Desktop'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Create Folder →My-bootstrap&lt;br /&gt;
|  | Then create a new folder with the help of the “'''Create Folder'''” button.&lt;br /&gt;
&lt;br /&gt;
Name it as '''My hyphen bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
This folder will help to organize all our '''Bootstrap''' files in a single location on our machine.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click on Select&lt;br /&gt;
|  | Click on '''Select.'''&lt;br /&gt;
&lt;br /&gt;
The file is extracted now.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Desktop → My-bootstrap folder &amp;gt;&amp;gt; double-click to open&lt;br /&gt;
|  | Let us check the extracted file.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Desktop''' folder and open the folder '''My hyphen bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
The files are extracted into the '''bootstrap hyphen 4.6.0 hyphen dist''' folder. &lt;br /&gt;
&lt;br /&gt;
'''Bootstrap''' '''compiled code''' can be downloaded and extracted in the similar manner in '''Windows OS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Bootstrap-4.6.0-dist&amp;gt;&amp;gt;Double-click to open&lt;br /&gt;
|  | Open this folder.&lt;br /&gt;
&lt;br /&gt;
Inside it there are two folders: '''CSS''' and '''JS'''.&lt;br /&gt;
&lt;br /&gt;
These folders contain ready-to-use '''compiled''' and minified '''CSS''' files and '''JavaScript plugins'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to the My-bootstrap folder&lt;br /&gt;
|  | Go to the '''My-bootstrap''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in My-bootstrap folder&lt;br /&gt;
|  | I have saved another file named '''Mypage.html''' in this folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 5: Code Files&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;
|  | Right-click &amp;gt;&amp;gt; Select '''Open With Firefox'''&lt;br /&gt;
&lt;br /&gt;
File opens&lt;br /&gt;
|  | Let us open the file '''Mypage.html''' in a '''web browser.'''&lt;br /&gt;
&lt;br /&gt;
So, right-click on the '''HTML''' file and select any '''web browser''' of your choice. &lt;br /&gt;
&lt;br /&gt;
I will choose '''Firefox'''.&lt;br /&gt;
&lt;br /&gt;
The '''HTML''' file opens in the '''Firefox web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight the background&lt;br /&gt;
|  | This is a simple '''HTML webpage''' without '''Bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
Now let’s include '''Bootstrap '''in this''' HTML webpage''' and see the change.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let us open the''' Mypage.html''' file in any '''text editor'''. &lt;br /&gt;
|-&lt;br /&gt;
|  | Go to '''My-bootstrap '''folder&lt;br /&gt;
|  | Right-click on the '''HTML''' file and select '''Open With Other Application '''option.&lt;br /&gt;
|-&lt;br /&gt;
|  | Select '''Open With gedit'''&lt;br /&gt;
|  | Then choose any '''text editor''' that is available.&lt;br /&gt;
&lt;br /&gt;
I will choose '''gedit'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, &amp;lt;br&amp;gt;initial-scale=1, shrink-to-fit=no&amp;quot;&amp;gt;&lt;br /&gt;
|  | Inside the &amp;lt;'''head&amp;gt;''' section, always include the '''viewpoint''' '''&amp;lt;meta&amp;gt; tag''' as shown here.&lt;br /&gt;
&lt;br /&gt;
This helps to ensure proper rendering and touch zooming on mobile devices.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;bootstrap-4.6.0-dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Highlight the code&lt;br /&gt;
|  | Next to the '''viewpoint''' '''&amp;lt;meta&amp;gt; tag, '''type the code as shown.&lt;br /&gt;
&lt;br /&gt;
This will '''link''' the '''bootstrap.css''' file to '''Mypage.html''' file.&lt;br /&gt;
&lt;br /&gt;
Note that the '''HTML''' file and the '''bootstrap-4.6.0-dist''' folder should be in the same folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
bootstrap.css&lt;br /&gt;
|  | '''bootstrap.css''' is a default code file that is provided by '''Bootstrap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1 class=&amp;quot;text-warning&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | Inside the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag, add the '''class''' as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
class=&amp;quot;text-warning&amp;quot;&lt;br /&gt;
|  | This '''class''' is defined in '''Bootstrap CSS''' code file and it changes the color of the text to yellow.&lt;br /&gt;
&lt;br /&gt;
We will learn more about this '''class''' in upcoming tutorials later on.&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 - Grocery Store]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The text has changed to yellow colour.&lt;br /&gt;
&lt;br /&gt;
The '''font''' is also changed to '''Bootstrap’s''' default font.&lt;br /&gt;
&lt;br /&gt;
So now, we have successfully created a '''webpage''' with '''Bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
We’ll be using this method i.e '''Download Bootstrap''' in this course.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open bootstrap.css in gedit.&lt;br /&gt;
&lt;br /&gt;
Highlight the code: Font, text, background&lt;br /&gt;
|  | Let us see the '''ready-to-use compiled code '''for''' Bootstrap '''files.&lt;br /&gt;
&lt;br /&gt;
Go to the '''bootstrap-4.6.0-dist''' folder.&lt;br /&gt;
&lt;br /&gt;
Double-click on the '''CSS''' folder and then the '''bootstrap.css''' file.&lt;br /&gt;
&lt;br /&gt;
All the required '''classes''' are '''defined''' in this file. &lt;br /&gt;
&lt;br /&gt;
For eg. '''Font classes''', text color '''classes''', background color '''classes,''' etc.&lt;br /&gt;
&lt;br /&gt;
When we '''link''' this file in our '''HTML''' code, we get access to these '''inbuilt classes'''.&lt;br /&gt;
&lt;br /&gt;
Let’s close the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now let’s learn about the second way to use '''Bootstrap '''on a '''webpage'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Bootstrap from CDN link&lt;br /&gt;
|  | &lt;br /&gt;
* '''Content Delivery Network (CDN)''' links are used to include '''Bootstrap''' in a '''webpage.'''&lt;br /&gt;
* It delivers a '''cached''' version of '''Bootstrap’s compiled CSS''' and '''JS '''to the file.&lt;br /&gt;
* It reduces the loading time.&lt;br /&gt;
* '''Webpages''' with '''CDN '''link always require '''internet connection'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open web browser and switch to Bootstrap website tab&lt;br /&gt;
|  | Go to the '''Bootstrap website '''once again.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox-getbootstrap]&lt;br /&gt;
|  | Scroll down and go to the''' jsDelivr''' section.&lt;br /&gt;
&lt;br /&gt;
Here you can see two '''links'''.&lt;br /&gt;
&lt;br /&gt;
These '''links''' are for '''cached''' versions of '''Bootstrap’s compiled CSS''' and '''JS'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox-getbootstrap]&lt;br /&gt;
&lt;br /&gt;
Copy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0n&amp;lt;br&amp;gt;PEzvF6L/Z6nronJ3oU&amp;lt;br&amp;gt;OFUFpCjEUQouq2+l&amp;quot; &amp;lt;br&amp;gt;crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;lt;br&amp;gt;&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09R&amp;lt;br&amp;gt;mUpJ8jgGtD7zP9&amp;lt;br&amp;gt;yug3goQfGII0yAns&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
|  | Copy these two '''links.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Delete:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;bootstrap-4.6.0-dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
|  | First delete this line which we have added earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Paste:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0n&amp;lt;br&amp;gt;PEzvF6L/Z6nronJ3oU&amp;lt;br&amp;gt;OFUFpCjEUQouq2+l&amp;quot; &amp;lt;br&amp;gt;crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;lt;br&amp;gt;&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09R&amp;lt;br&amp;gt;mUpJ8jgGtD7zP9&amp;lt;br&amp;gt;yug3goQfGII0yAns&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
|  | Now paste these two '''links''' here as we are using '''Bootstrap''' from '''CDN''' link.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1 class=&amp;quot;text-primary&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
class=&amp;quot;text-primary&amp;quot;&lt;br /&gt;
|  | Inside the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag, update the '''class''' as “'''text-primary'''”&lt;br /&gt;
&lt;br /&gt;
This '''class''' changes the color of the text to blue.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
|  | This '''class''' is defined in the '''cached''' version of '''Bootstrap CSS''' code file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + Shift + S&lt;br /&gt;
|  | Save this file as “'''Mypage-cdn.html'''” in the '''My-bootstrap''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to My-bootstrap folder&lt;br /&gt;
|  | Open the “'''Mypage-cdn.html'''” file in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
I will open it in '''Firefox.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox - Grocery Store]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The color of the text is changed to blue.&lt;br /&gt;
&lt;br /&gt;
We have successfully created a '''webpage''' with '''Bootstrap''' using '''CDN link'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* Download and use '''Bootstrap''' version '''4.6.0 '''and&lt;br /&gt;
* Include '''Bootstrap''' version '''4.6.0 '''from '''CDN '''link&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file and change the '''class''' to '''text-danger'''.&lt;br /&gt;
* Save the file.&lt;br /&gt;
* Observe the output on the '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|  | The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Introduction-to-Bootstrap/English</id>
		<title>Bootstrap/C2/Introduction-to-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Introduction-to-Bootstrap/English"/>
				<updated>2021-02-18T13:05:08Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Introduction to Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap,''' '''CSS, HTML, Webpage, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Download Bootstrap, Compiled CSS and JS, CDN link, bootstrap.css&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Introduction to 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 how to:&lt;br /&gt;
&lt;br /&gt;
* Download and use '''Bootstrap''' version '''4.6.0 '''and&lt;br /&gt;
* Include '''Bootstrap''' version '''4.6.0 '''from '''CDN '''link&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser '''and&lt;br /&gt;
* '''A working Internet connection '''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 4: Prerequisite &lt;br /&gt;
&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;
|-&lt;br /&gt;
|  | Open web browser and type[https://developer.android.com/studio/  ]https://getbootstrap.com/&lt;br /&gt;
|  | Open your '''web browser''' and type the '''URL''' as shown here. &lt;br /&gt;
&lt;br /&gt;
Make sure you’ve an active '''internet connection'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Click on the '''Download button '''at the top right corner of the page&lt;br /&gt;
|  | Click on the '''Download '''button''' '''at the top right corner of the page.&lt;br /&gt;
&lt;br /&gt;
'''Download webpage''' opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Select v4.6.x&lt;br /&gt;
|  | At the right corner, we can see the version of '''Bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
Click on it to expand the list and select '''v4.6.x'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | '''Introduction''' webpage &lt;br /&gt;
|  | Introduction webpage opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
On the left panel &amp;gt;&amp;gt; click on''' Download'''&lt;br /&gt;
|  | On the left panel, click on the''' Download link'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight - Compiled CSS and JS&lt;br /&gt;
|  | Let us now download the ready-to-use '''compiled code '''for '''Bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
Go to the section''' “Compiled CSS and JS”.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight the version Bootstrap v4.6.0&lt;br /&gt;
|  | The latest '''stable''' version at the time of recording this tutorial is '''Bootstrap v4.6.0.'''&lt;br /&gt;
&lt;br /&gt;
It may vary in future.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click '''Download '''button&lt;br /&gt;
|  | Click on the''' Download '''button.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Narration only&lt;br /&gt;
|  | Please note: Some '''web browsers''' may download automatically.&lt;br /&gt;
&lt;br /&gt;
Some may display a '''Save as''' dialog box.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click on Save File button &lt;br /&gt;
|  | In the '''Save as''' dialog box, click on the '''Save File''' option and then on the '''Ok''' button.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only Narration&lt;br /&gt;
|  | The download''' '''may take some time depending upon your '''Internet '''connection'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to the '''Downloads '''folder &amp;gt;&amp;gt; Point to the downloaded file &lt;br /&gt;
|  | Go to the '''Downloads '''folder where the ready-to-use '''compiled '''code file is saved.&lt;br /&gt;
|-&lt;br /&gt;
|  | Right-click bootstrap zip file&amp;gt;&amp;gt; select '''Extract to'''&lt;br /&gt;
|  | Right-click this file and select '''Extract to.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Select Desktop&lt;br /&gt;
|  | Now choose the desired location on your machine to save this file.&lt;br /&gt;
&lt;br /&gt;
I’ll select '''Desktop'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Create Folder →My-bootstrap&lt;br /&gt;
|  | Then create a new folder with the help of the “'''Create Folder'''” button.&lt;br /&gt;
&lt;br /&gt;
Name it as '''My hyphen bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
This folder will help to organize all our '''Bootstrap''' files in a single location on our machine.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click on Select&lt;br /&gt;
|  | Click on '''Select.'''&lt;br /&gt;
&lt;br /&gt;
The file is extracted now.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Desktop → My-bootstrap folder &amp;gt;&amp;gt; double-click to open&lt;br /&gt;
|  | Let us check the extracted file.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Desktop''' folder and open the folder '''My hyphen bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
The files are extracted into the '''bootstrap hyphen 4.6.0 hyphen dist''' folder. &lt;br /&gt;
&lt;br /&gt;
'''Bootstrap''' '''compiled code''' can be downloaded and extracted in the similar manner in '''Windows OS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Bootstrap-4.6.0-dist&amp;gt;&amp;gt;Double-click to open&lt;br /&gt;
|  | Open this folder.&lt;br /&gt;
&lt;br /&gt;
Inside it there are two folders: '''CSS''' and '''JS'''.&lt;br /&gt;
&lt;br /&gt;
These folders contain ready-to-use '''compiled''' and minified '''CSS''' files and '''JavaScript plugins'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to the My-bootstrap folder&lt;br /&gt;
|  | Go to the '''My-bootstrap''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in My-bootstrap folder&lt;br /&gt;
|  | I have saved another file named '''Mypage.html''' in this folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 5: Code Files&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;
|  | Right-click &amp;gt;&amp;gt; Select '''Open With Firefox'''&lt;br /&gt;
&lt;br /&gt;
File opens&lt;br /&gt;
|  | Let us open the file '''Mypage.html''' in a '''web browser.'''&lt;br /&gt;
&lt;br /&gt;
So, right-click on the '''HTML''' file and select any '''web browser''' of your choice. &lt;br /&gt;
&lt;br /&gt;
I will choose '''Firefox'''.&lt;br /&gt;
&lt;br /&gt;
The '''HTML''' file opens in the '''Firefox web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight the background&lt;br /&gt;
|  | This is a simple '''HTML webpage''' without '''Bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
Now let’s include '''Bootstrap '''in this''' HTML webpage''' and see the change.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let us open the''' Mypage.html''' file in any '''text editor'''. &lt;br /&gt;
|-&lt;br /&gt;
|  | Go to '''My-bootstrap '''folder&lt;br /&gt;
|  | Right-click on the '''HTML''' file and select '''Open With Other Application '''option.&lt;br /&gt;
|-&lt;br /&gt;
|  | Select '''Open With gedit'''&lt;br /&gt;
|  | Then choose any '''text editor''' that is available.&lt;br /&gt;
&lt;br /&gt;
I will choose '''gedit'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, &amp;lt;br&amp;gt;initial-scale=1, shrink-to-fit=no&amp;quot;&amp;gt;&lt;br /&gt;
|  | Inside the &amp;lt;'''head&amp;gt;''' section, always include the '''viewpoint''' '''&amp;lt;meta&amp;gt; tag''' as shown here.&lt;br /&gt;
&lt;br /&gt;
This helps to ensure proper rendering and touch zooming on mobile devices.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;bootstrap-4.6.0-dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Highlight the code&lt;br /&gt;
|  | Next to the '''viewpoint''' '''&amp;lt;meta&amp;gt; tag, '''type the code as shown.&lt;br /&gt;
&lt;br /&gt;
This will '''link''' the '''bootstrap.css''' file to '''Mypage.html''' file.&lt;br /&gt;
&lt;br /&gt;
Note that the '''HTML''' file and the '''bootstrap-4.6.0-dist''' folder should be in the same folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
bootstrap.css&lt;br /&gt;
|  | '''bootstrap.css''' is a default code file that is provided by '''Bootstrap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1 class=&amp;quot;text-warning&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | Inside the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag, add the '''class''' as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
class=&amp;quot;text-warning&amp;quot;&lt;br /&gt;
|  | This '''class''' is defined in '''Bootstrap CSS''' code file and it changes the color of the text to yellow.&lt;br /&gt;
&lt;br /&gt;
We will learn more about this '''class''' in upcoming tutorials later on.&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 - Grocery Store]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The text has changed to yellow colour.&lt;br /&gt;
&lt;br /&gt;
The '''font''' is also changed to '''Bootstrap’s''' default font.&lt;br /&gt;
&lt;br /&gt;
So now, we have successfully created a '''webpage''' with '''Bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
We’ll be using this method i.e '''Download Bootstrap''' in this course.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open bootstrap.css in gedit.&lt;br /&gt;
&lt;br /&gt;
Highlight the code: Font, text, background&lt;br /&gt;
|  | Let us see the '''ready-to-use compiled code '''for''' Bootstrap '''files.&lt;br /&gt;
&lt;br /&gt;
Go to the '''bootstrap-4.6.0-dist''' folder.&lt;br /&gt;
&lt;br /&gt;
Double-click on the '''CSS''' folder and then the '''bootstrap.css''' file.&lt;br /&gt;
&lt;br /&gt;
All the required '''classes''' are '''defined''' in this file. &lt;br /&gt;
&lt;br /&gt;
For eg. '''Font classes''', text color '''classes''', background color '''classes,''' etc.&lt;br /&gt;
&lt;br /&gt;
When we '''link''' this file in our '''HTML''' code, we get access to these '''inbuilt classes'''.&lt;br /&gt;
&lt;br /&gt;
Let’s close the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now let’s learn about the second way to use '''Bootstrap '''on a '''webpage'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Bootstrap from CDN link&lt;br /&gt;
|  | &lt;br /&gt;
* '''Content Delivery Network (CDN)''' links are used to include '''Bootstrap''' in a '''webpage.'''&lt;br /&gt;
* It delivers a '''cached''' version of '''Bootstrap’s compiled CSS''' and '''JS '''to the file.&lt;br /&gt;
* It reduces the loading time.&lt;br /&gt;
* '''Webpages''' with '''CDN '''link always require '''internet connection'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open web browser and switch to Bootstrap website tab&lt;br /&gt;
|  | Go to the '''Bootstrap website '''once again.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox-getbootstrap]&lt;br /&gt;
|  | Scroll down and go to the''' jsDelivr''' section.&lt;br /&gt;
&lt;br /&gt;
Here you can see two '''links'''.&lt;br /&gt;
&lt;br /&gt;
These '''links''' are for '''cached''' versions of '''Bootstrap’s compiled CSS''' and '''JS'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox-getbootstrap]&lt;br /&gt;
&lt;br /&gt;
Copy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPE&amp;lt;br&amp;gt;zvF6L/Z6nronJ3oU&amp;lt;br&amp;gt;OFUFpCjEUQouq2+l&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;lt;br&amp;gt;&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09R&amp;lt;br&amp;gt;mUpJ8jgGtD7zP9&amp;lt;br&amp;gt;yug3goQfGII0yAns&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
|  | Copy these two '''links.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Delete:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;bootstrap-4.6.0-dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
|  | First delete this line which we have added earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Paste:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPE&amp;lt;br&amp;gt;zvF6L/Z6nronJ3oU&amp;lt;br&amp;gt;OFUFpCjEUQouq2+l&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;lt;br&amp;gt;&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09R&amp;lt;br&amp;gt;mUpJ8jgGtD7zP9&amp;lt;br&amp;gt;yug3goQfGII0yAns&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
|  | Now paste these two '''links''' here as we are using '''Bootstrap''' from '''CDN''' link.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1 class=&amp;quot;text-primary&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
class=&amp;quot;text-primary&amp;quot;&lt;br /&gt;
|  | Inside the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag, update the '''class''' as “'''text-primary'''”&lt;br /&gt;
&lt;br /&gt;
This '''class''' changes the color of the text to blue.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
|  | This '''class''' is defined in the '''cached''' version of '''Bootstrap CSS''' code file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + Shift + S&lt;br /&gt;
|  | Save this file as “'''Mypage-cdn.html'''” in the '''My-bootstrap''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to My-bootstrap folder&lt;br /&gt;
|  | Open the “'''Mypage-cdn.html'''” file in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
I will open it in '''Firefox.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox - Grocery Store]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The color of the text is changed to blue.&lt;br /&gt;
&lt;br /&gt;
We have successfully created a '''webpage''' with '''Bootstrap''' using '''CDN link'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* Download and use '''Bootstrap''' version '''4.6.0 '''and&lt;br /&gt;
* Include '''Bootstrap''' version '''4.6.0 '''from '''CDN '''link&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file and change the '''class''' to '''text-danger'''.&lt;br /&gt;
* Save the file.&lt;br /&gt;
* Observe the output on the '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|  | The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Introduction-to-Bootstrap/English</id>
		<title>Bootstrap/C2/Introduction-to-Bootstrap/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Bootstrap/C2/Introduction-to-Bootstrap/English"/>
				<updated>2021-02-18T13:01:24Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Introduction to Bootstrap  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske  '''Novice Reviewer:''' Abhijit Bonik  '''Keywords: '''Bo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Introduction to Bootstrap&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Abhijit Bonik&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Bootstrap,''' '''CSS, HTML, Webpage, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Download Bootstrap, Compiled CSS and JS, CDN link, bootstrap.css&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''“Introduction to 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 how to:&lt;br /&gt;
&lt;br /&gt;
* Download and use '''Bootstrap''' version '''4.6.0 '''and&lt;br /&gt;
* Include '''Bootstrap''' version '''4.6.0 '''from '''CDN '''link&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser '''and&lt;br /&gt;
* '''A working Internet connection '''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 4: Prerequisite &lt;br /&gt;
&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;
|-&lt;br /&gt;
|  | Open web browser and type[https://developer.android.com/studio/  ]https://getbootstrap.com/&lt;br /&gt;
|  | Open your '''web browser''' and type the '''URL''' as shown here. &lt;br /&gt;
&lt;br /&gt;
Make sure you’ve an active '''internet connection'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Click on the '''Download button '''at the top right corner of the page&lt;br /&gt;
|  | Click on the '''Download '''button''' '''at the top right corner of the page.&lt;br /&gt;
&lt;br /&gt;
'''Download webpage''' opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Select v4.6.x&lt;br /&gt;
|  | At the right corner, we can see the version of '''Bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
Click on it to expand the list and select '''v4.6.x'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | '''Introduction''' webpage &lt;br /&gt;
|  | Introduction webpage opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
On the left panel &amp;gt;&amp;gt; click on''' Download'''&lt;br /&gt;
|  | On the left panel, click on the''' Download link'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight - Compiled CSS and JS&lt;br /&gt;
|  | Let us now download the ready-to-use '''compiled code '''for '''Bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
Go to the section''' “Compiled CSS and JS”.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight the version Bootstrap v4.6.0&lt;br /&gt;
|  | The latest '''stable''' version at the time of recording this tutorial is '''Bootstrap v4.6.0.'''&lt;br /&gt;
&lt;br /&gt;
It may vary in future.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click '''Download '''button&lt;br /&gt;
|  | Click on the''' Download '''button.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Narration only&lt;br /&gt;
|  | Please note: Some '''web browsers''' may download automatically.&lt;br /&gt;
&lt;br /&gt;
Some may display a '''Save as''' dialog box.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click on Save File button &lt;br /&gt;
|  | In the '''Save as''' dialog box, click on the '''Save File''' option and then on the '''Ok''' button.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only Narration&lt;br /&gt;
|  | The download''' '''may take some time depending upon your '''Internet '''connection'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to the '''Downloads '''folder &amp;gt;&amp;gt; Point to the downloaded file &lt;br /&gt;
|  | Go to the '''Downloads '''folder where the ready-to-use '''compiled '''code file is saved.&lt;br /&gt;
|-&lt;br /&gt;
|  | Right-click bootstrap zip file&amp;gt;&amp;gt; select '''Extract to'''&lt;br /&gt;
|  | Right-click this file and select '''Extract to.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Select Desktop&lt;br /&gt;
|  | Now choose the desired location on your machine to save this file.&lt;br /&gt;
&lt;br /&gt;
I’ll select '''Desktop'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Create Folder →My-bootstrap&lt;br /&gt;
|  | Then create a new folder with the help of the “'''Create Folder'''” button.&lt;br /&gt;
&lt;br /&gt;
Name it as '''My hyphen bootstrap'''.&lt;br /&gt;
&lt;br /&gt;
This folder will help to organize all our '''Bootstrap''' files in a single location on our machine.&lt;br /&gt;
|-&lt;br /&gt;
|  | Click on Select&lt;br /&gt;
|  | Click on '''Select.'''&lt;br /&gt;
&lt;br /&gt;
The file is extracted now.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Desktop → My-bootstrap folder &amp;gt;&amp;gt; double-click to open&lt;br /&gt;
|  | Let us check the extracted file.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Desktop''' folder and open the folder '''My hyphen bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
The files are extracted into the '''bootstrap hyphen 4.6.0 hyphen dist''' folder. &lt;br /&gt;
&lt;br /&gt;
'''Bootstrap''' '''compiled code''' can be downloaded and extracted in the similar manner in '''Windows OS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Bootstrap-4.6.0-dist&amp;gt;&amp;gt;Double-click to open&lt;br /&gt;
|  | Open this folder.&lt;br /&gt;
&lt;br /&gt;
Inside it there are two folders: '''CSS''' and '''JS'''.&lt;br /&gt;
&lt;br /&gt;
These folders contain ready-to-use '''compiled''' and minified '''CSS''' files and '''JavaScript plugins'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to the My-bootstrap folder&lt;br /&gt;
|  | Go to the '''My-bootstrap''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in My-bootstrap folder&lt;br /&gt;
|  | I have saved another file named '''Mypage.html''' in this folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide 5: Code Files&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;
|  | Right-click &amp;gt;&amp;gt; Select '''Open With Firefox'''&lt;br /&gt;
&lt;br /&gt;
File opens&lt;br /&gt;
|  | Let us open the file '''Mypage.html''' in a '''web browser.'''&lt;br /&gt;
&lt;br /&gt;
So, right-click on the '''HTML''' file and select any '''web browser''' of your choice. &lt;br /&gt;
&lt;br /&gt;
I will choose '''Firefox'''.&lt;br /&gt;
&lt;br /&gt;
The '''HTML''' file opens in the '''Firefox web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight the background&lt;br /&gt;
|  | This is a simple '''HTML webpage''' without '''Bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
Now let’s include '''Bootstrap '''in this''' HTML webpage''' and see the change.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let us open the''' Mypage.html''' file in any '''text editor'''. &lt;br /&gt;
|-&lt;br /&gt;
|  | Go to '''My-bootstrap '''folder&lt;br /&gt;
|  | Right-click on the '''HTML''' file and select '''Open With Other Application '''option.&lt;br /&gt;
|-&lt;br /&gt;
|  | Select '''Open With gedit'''&lt;br /&gt;
|  | Then choose any '''text editor''' that is available.&lt;br /&gt;
&lt;br /&gt;
I will choose '''gedit'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, &amp;lt;br&amp;gt;initial-scale=1, shrink-to-fit=no&amp;quot;&amp;gt;&lt;br /&gt;
|  | Inside the &amp;lt;'''head&amp;gt;''' section, always include the '''viewpoint''' '''&amp;lt;meta&amp;gt; tag''' as shown here.&lt;br /&gt;
&lt;br /&gt;
This helps to ensure proper rendering and touch zooming on mobile devices.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;bootstrap-4.6.0-dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Highlight the code&lt;br /&gt;
|  | Next to the '''viewpoint''' '''&amp;lt;meta&amp;gt; tag, '''type the code as shown.&lt;br /&gt;
&lt;br /&gt;
This will '''link''' the '''bootstrap.css''' file to '''Mypage.html''' file.&lt;br /&gt;
&lt;br /&gt;
Note that the '''HTML''' file and the '''bootstrap-4.6.0-dist''' folder should be in the same folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
bootstrap.css&lt;br /&gt;
|  | '''bootstrap.css''' is a default code file that is provided by '''Bootstrap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1 class=&amp;quot;text-warning&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | Inside the '''&amp;lt;h1&amp;gt;''' tag, add the '''class''' as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
class=&amp;quot;text-warning&amp;quot;&lt;br /&gt;
|  | This '''class''' is defined in '''Bootstrap CSS''' code file and it changes the color of the text to yellow.&lt;br /&gt;
&lt;br /&gt;
We will learn more about this '''class''' in upcoming tutorials later on.&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 - Grocery Store]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The text has changed to yellow colour.&lt;br /&gt;
&lt;br /&gt;
The '''font''' is also changed to '''Bootstrap’s''' default font.&lt;br /&gt;
&lt;br /&gt;
So now, we have successfully created a '''webpage''' with '''Bootstrap.'''&lt;br /&gt;
&lt;br /&gt;
We’ll be using this method i.e '''Download Bootstrap''' in this course.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open bootstrap.css in gedit.&lt;br /&gt;
&lt;br /&gt;
Highlight the code: Font, text, background&lt;br /&gt;
|  | Let us see the '''ready-to-use compiled code '''for''' Bootstrap '''files.&lt;br /&gt;
&lt;br /&gt;
Go to the '''bootstrap-4.6.0-dist''' folder.&lt;br /&gt;
&lt;br /&gt;
Double-click on the '''CSS''' folder and then the '''bootstrap.css''' file.&lt;br /&gt;
&lt;br /&gt;
All the required '''classes''' are '''defined''' in this file. &lt;br /&gt;
&lt;br /&gt;
For eg. '''Font classes''', text color '''classes''', background color '''classes,''' etc.&lt;br /&gt;
&lt;br /&gt;
When we '''link''' this file in our '''HTML''' code, we get access to these '''inbuilt classes'''.&lt;br /&gt;
&lt;br /&gt;
Let’s close the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now let’s learn about the second way to use '''Bootstrap '''on a '''webpage'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Bootstrap from CDN link&lt;br /&gt;
|  | &lt;br /&gt;
* '''Content Delivery Network (CDN)''' links are used to include '''Bootstrap''' in a '''webpage.'''&lt;br /&gt;
* It delivers a '''cached''' version of '''Bootstrap’s compiled CSS''' and '''JS '''to the file.&lt;br /&gt;
* It reduces the loading time.&lt;br /&gt;
* '''Webpages''' with '''CDN '''link always require '''internet connection'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open web browser and switch to Bootstrap website tab&lt;br /&gt;
|  | Go to the '''Bootstrap website '''once again.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox-getbootstrap]&lt;br /&gt;
|  | Scroll down and go to the''' jsDelivr''' section.&lt;br /&gt;
&lt;br /&gt;
Here you can see two '''links'''.&lt;br /&gt;
&lt;br /&gt;
These '''links''' are for '''cached''' versions of '''Bootstrap’s compiled CSS''' and '''JS'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox-getbootstrap]&lt;br /&gt;
&lt;br /&gt;
Copy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPE&amp;lt;br&amp;gt;zvF6L/Z6nronJ3oU&amp;lt;br&amp;gt;OFUFpCjEUQouq2+l&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;lt;br&amp;gt;&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09R&amp;lt;br&amp;gt;mUpJ8jgGtD7zP9&amp;lt;br&amp;gt;yug3goQfGII0yAns&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
|  | Copy these two '''links.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
|  | Switch to the '''Mypage.html '''file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Delete:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;bootstrap-4.6.0-dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
|  | First delete this line which we have added earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Paste:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; &amp;lt;br&amp;gt;href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPE&amp;lt;br&amp;gt;zvF6L/Z6nronJ3oU&amp;lt;br&amp;gt;OFUFpCjEUQouq2+l&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;lt;br&amp;gt;&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js&amp;quot; &amp;lt;br&amp;gt;integrity=&amp;quot;sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09R&amp;lt;br&amp;gt;mUpJ8jgGtD7zP9&amp;lt;br&amp;gt;yug3goQfGII0yAns&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
|  | Now paste these two '''links''' here as we are using '''Bootstrap''' from '''CDN''' link.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;text-primary&amp;quot;&amp;gt; Bharat Mart &amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
class=&amp;quot;text-primary&amp;quot;&lt;br /&gt;
|  | Inside the '''&amp;lt;h1&amp;gt;''' tag, update the '''class''' as “'''text-primary'''”&lt;br /&gt;
&lt;br /&gt;
This '''class''' changes the color of the text to blue.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
|  | This '''class''' is defined in the '''cached''' version of '''Bootstrap CSS''' code file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + Shift + S&lt;br /&gt;
|  | Save this file as “'''Mypage-cdn.html'''” in the '''My-bootstrap''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Go to My-bootstrap folder&lt;br /&gt;
|  | Open the “'''Mypage-cdn.html'''” file in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
I will open it in '''Firefox.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox - Grocery Store]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The color of the text is changed to blue.&lt;br /&gt;
&lt;br /&gt;
We have successfully created a '''webpage''' with '''Bootstrap''' using '''CDN link'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Summary &lt;br /&gt;
&lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* Download and use '''Bootstrap''' version '''4.6.0 '''and&lt;br /&gt;
* Include '''Bootstrap''' version '''4.6.0 '''from '''CDN '''link&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Assignment&lt;br /&gt;
|  | As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Open the '''Mypage.html''' file and change the '''class''' to '''text-danger'''.&lt;br /&gt;
* Save the file.&lt;br /&gt;
* Observe the output on the '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide :&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|  | The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide : Thanks&lt;br /&gt;
|  | This is Neha Solanki from Spoken Tutorial, 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>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Overview-of-CSS/English</id>
		<title>CSS/C2/Overview-of-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Overview-of-CSS/English"/>
				<updated>2021-02-09T11:10:17Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Overview of CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer: '''Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Video Tutorial, Spoken Tutorial, Cascading Style Sheet, Overview of CSS, Markup Language, Web Layout&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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;
|  | Hello and welcome to the spoken tutorial on “Overview of '''CSS'''”. &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
* About '''CSS '''and&lt;br /&gt;
* The content available in various tutorials in this series&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | What is '''CSS'''?&lt;br /&gt;
&lt;br /&gt;
'''CSS''' stands for '''Cascading Style Sheet.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | &lt;br /&gt;
* It''' '''is a '''style sheet''' language.&lt;br /&gt;
* It is used to '''style''' documents written in '''markup''' language like''' HTML''', '''XML '''etc.&lt;br /&gt;
* It is an independent file and saved with '''.css''' extension.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | &lt;br /&gt;
* It allows '''developers''' to control how the '''webpage''' should be displayed.&lt;br /&gt;
* For e.g color, font, space, etc.&lt;br /&gt;
* It is platform independent and hence works on all '''operating systems'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisites for using '''CSS'''&lt;br /&gt;
|  | To work with '''CSS,''' we need-&lt;br /&gt;
&lt;br /&gt;
* A '''text editor '''or a '''WYSIWYG editor''' to&lt;br /&gt;
** write our '''CSS '''code and&lt;br /&gt;
** understand various '''CSS '''properties&lt;br /&gt;
* A '''web browser''' to display the '''formatted''' content.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: For recording of '''CSS''' series&lt;br /&gt;
|  | Throughout this series I will be using:&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser '''and&lt;br /&gt;
* '''Ubuntu Linux OS v 18.04'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now, we will briefly go through some of the individual tutorials in this series. &lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of First CSS File&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
03:35 - 03:43&lt;br /&gt;
&lt;br /&gt;
05:44 - 05:50 ] &lt;br /&gt;
&lt;br /&gt;
|  | '''First CSS File '''is the introductory tutorial of the series.&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will learn how to create a '''CSS''' file and the '''syntax''' of '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
We’ll also see how to '''link''' a '''CSS''' file with an '''HTML''' file and see the output on a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Dimensions and Measuring Units&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
04:05 - 04:12&lt;br /&gt;
&lt;br /&gt;
07:51 - 07:57 ] &lt;br /&gt;
|  | '''Dimensions and Measuring Units '''is the next tutorial.&lt;br /&gt;
&lt;br /&gt;
In this, we’ll learn about measuring '''units''' and''' '''width &amp;amp; height properties in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Box Model&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:03&lt;br /&gt;
&lt;br /&gt;
01:27 - 01:36&lt;br /&gt;
&lt;br /&gt;
09:57 - 10:02 ] &lt;br /&gt;
|  | The next tutorial is '''Box Model''', in which we’ll learn about '''CSS''' '''Box Model '''and its '''layers'''.&lt;br /&gt;
&lt;br /&gt;
We will also learn about the '''Box sizing.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Background&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:03&lt;br /&gt;
&lt;br /&gt;
04:26 - 04:36&lt;br /&gt;
&lt;br /&gt;
05:53 - 05:57 ] &lt;br /&gt;
|  | Next tutorial is '''Background.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we'll learn how to set the''' background '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
&lt;br /&gt;
Like '''background-color, background-image, background-repeat,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Text Properties&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
02:28 - 02:42] &lt;br /&gt;
|  | After this, comes '''Text Properties.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we’ll learn how to '''set''' the '''Text '''properties to '''format''' and '''style''' the '''text''' '''elements.'''&lt;br /&gt;
&lt;br /&gt;
Like '''color, alignment,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Font properties&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
10:55 - 11:09 ] &lt;br /&gt;
|  | Next tutorial is '''Font properties'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn about '''Font properties''' of an '''element '''to '''style''' the '''font''' of the '''text.'''&lt;br /&gt;
&lt;br /&gt;
Like '''font-style, font-size, font-family,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Display property&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
03:57 - 04:03] &lt;br /&gt;
|  | The tutorial named '''Display''' '''property '''is next in the series.&lt;br /&gt;
&lt;br /&gt;
In this we’ll see how to display''' '''an '''element''' in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Float and Overflow&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
04:18 - 04:27&lt;br /&gt;
&lt;br /&gt;
11:06 - 11:10 ] &lt;br /&gt;
|  | Next tutorial is '''Float''' '''and''' '''Overflow.'''&lt;br /&gt;
&lt;br /&gt;
Here, we’ll learn about '''Float''' &amp;amp; '''Clear '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
&lt;br /&gt;
We’ll also learn '''Overflow '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Link&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
06:11 - 06:25] &lt;br /&gt;
|  | After this is '''Link.'''&lt;br /&gt;
&lt;br /&gt;
In this, we can '''style links''' by applying different properties to all the four states of '''link.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of List&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
02:20 - 02:34] &lt;br /&gt;
|  | Next tutorial is '''List'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn about '''list''' properties to '''style''' and '''format lists.'''&lt;br /&gt;
&lt;br /&gt;
Like''' type, background-color, '''etc&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Table&lt;br /&gt;
&lt;br /&gt;
[Video - Table: 00:00 - 00:02&lt;br /&gt;
&lt;br /&gt;
Video - Advanced Table Design: 00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
Video - Advanced Table Design: 03:35 - 03:43 ] &lt;br /&gt;
|  | '''Table '''and''' Advanced Table Design''' in '''CSS''' are the next tutorials in this series.&lt;br /&gt;
&lt;br /&gt;
They will teach us to '''style''' and '''format tables''' using '''CSS table''' properties.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Forms&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
11:49 - 12:03 ] &lt;br /&gt;
|  | Next tutorial is '''Forms'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn to '''style''' and '''format forms '''using various''' CSS properties.'''&lt;br /&gt;
&lt;br /&gt;
Like '''border''', '''background-color, padding, '''etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Counters&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
06:45 - 06:58&lt;br /&gt;
|  | The tutorial named '''Counters '''is next in the series.&lt;br /&gt;
&lt;br /&gt;
With the help of this tutorial, we will learn to number '''elements''' automatically in a '''webpage.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Multi-column Layout&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
4:04 - 4:17&lt;br /&gt;
&lt;br /&gt;
|  | Next tutorial is '''Multi-column Layout.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, learners can create '''Multi-column Layouts '''of their''' webpages.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Web layout&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00-00:05&lt;br /&gt;
&lt;br /&gt;
7:35 - 07:49&lt;br /&gt;
|  | The last tutorial is '''Web layout.'''&lt;br /&gt;
&lt;br /&gt;
In this, learners will be able to design and structure '''web pages '''with proper '''web layout.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* About '''CSS''' and&lt;br /&gt;
* The tutorials covered in this series&lt;br /&gt;
&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;
|  | 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;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|  | The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Overview-of-CSS/English</id>
		<title>CSS/C2/Overview-of-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Overview-of-CSS/English"/>
				<updated>2021-02-03T08:35:37Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Overview of CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer: '''Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Video Tutorial, Spoken Tutorial, Cascading Style Sheet, Overview of CSS, Markup Language, Web Layout&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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;
|  | Hello and welcome to the spoken tutorial on “Overview of '''CSS'''”. &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
* About '''CSS '''and&lt;br /&gt;
* The content available in various tutorials in this series&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | What is '''CSS'''?&lt;br /&gt;
&lt;br /&gt;
'''CSS''' stands for '''Cascading Style Sheet.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | &lt;br /&gt;
* It''' '''is a '''style sheet''' language.&lt;br /&gt;
* It is used to '''style''' documents written in '''markup''' language like''' HTML''', '''XML '''etc.&lt;br /&gt;
* It is an independent file and saved with '''[dot] css (.css)''' extension.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | &lt;br /&gt;
* It allows '''developers''' to control how the '''webpage''' should be displayed.&lt;br /&gt;
* For e.g color, font, space, etc.&lt;br /&gt;
* It is platform independent and hence works on all '''operating systems'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisites for using '''CSS'''&lt;br /&gt;
|  | To work with '''CSS,''' we need-&lt;br /&gt;
&lt;br /&gt;
* A '''text editor '''or a '''WYSIWYG editor''' to&lt;br /&gt;
** write our '''CSS '''code and&lt;br /&gt;
** understand various '''CSS '''properties&lt;br /&gt;
* A '''web browser''' to display the '''formatted''' content.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: For recording of '''CSS''' series&lt;br /&gt;
|  | Throughout this series I will be using:&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser '''and&lt;br /&gt;
* '''Ubuntu Linux OS v 18.04'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now, we will briefly go through some of the individual tutorials in this series. &lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of First CSS File&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
03:35 - 03:43&lt;br /&gt;
&lt;br /&gt;
05:44 - 05:50 ] &lt;br /&gt;
&lt;br /&gt;
|  | '''First CSS File '''is the introductory tutorial of the series.&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will learn how to create a '''CSS''' file and the '''syntax''' of '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
We’ll also see how to '''link''' a '''CSS''' file with an '''HTML''' file and see the output on a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Dimensions and Measuring Units&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
04:05 - 04:12&lt;br /&gt;
&lt;br /&gt;
07:51 - 07:57 ] &lt;br /&gt;
|  | '''Dimensions and Measuring Units '''is the next tutorial.&lt;br /&gt;
&lt;br /&gt;
In this, we’ll learn about measuring '''units''' and''' '''width &amp;amp; height properties in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Box Model&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:03&lt;br /&gt;
&lt;br /&gt;
01:27 - 01:36&lt;br /&gt;
&lt;br /&gt;
09:57 - 10:02 ] &lt;br /&gt;
|  | The next tutorial is '''Box Model''', in which we’ll learn about '''CSS''' '''Box Model '''and its '''layers'''.&lt;br /&gt;
&lt;br /&gt;
We will also learn about the '''Box sizing.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Background&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:03&lt;br /&gt;
&lt;br /&gt;
04:26 - 04:36&lt;br /&gt;
&lt;br /&gt;
05:53 - 05:57 ] &lt;br /&gt;
|  | Next tutorial is '''Background.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we'll learn how to set the''' background '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
&lt;br /&gt;
Like '''background-color, background-image, background-repeat,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Text Properties&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
02:28 - 02:42] &lt;br /&gt;
|  | After this, comes '''Text Properties.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we’ll learn how to '''set''' the '''Text '''properties to '''format''' and '''style''' the '''text''' '''elements.'''&lt;br /&gt;
&lt;br /&gt;
Like '''color, alignment,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Font properties&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
10:55 - 11:09 ] &lt;br /&gt;
|  | Next tutorial is '''Font properties'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn about '''Font properties''' of an '''element '''to '''style''' the '''font''' of the '''text.'''&lt;br /&gt;
&lt;br /&gt;
Like '''font-style, font-size, font-family,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Display property&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
03:57 - 04:03] &lt;br /&gt;
|  | The tutorial named '''Display''' '''property '''is next in the series.&lt;br /&gt;
&lt;br /&gt;
In this we’ll see how to display''' '''an '''element''' in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Float and Overflow&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
04:18 - 04:27&lt;br /&gt;
&lt;br /&gt;
11:06 - 11:10 ] &lt;br /&gt;
|  | Next tutorial is '''Float''' '''and''' '''Overflow.'''&lt;br /&gt;
&lt;br /&gt;
Here, we’ll learn about '''Float''' &amp;amp; '''Clear '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
&lt;br /&gt;
We’ll also learn '''Overflow '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Link&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
06:11 - 06:25] &lt;br /&gt;
|  | After this is '''Link.'''&lt;br /&gt;
&lt;br /&gt;
In this, we can '''style links''' by applying different properties to all the four states of '''link.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of List&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
02:20 - 02:34] &lt;br /&gt;
|  | Next tutorial is '''List'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn about '''list''' properties to '''style''' and '''format lists.'''&lt;br /&gt;
&lt;br /&gt;
Like''' type, background-color, '''etc&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Table&lt;br /&gt;
&lt;br /&gt;
[Video - Table: 00:00 - 00:02&lt;br /&gt;
&lt;br /&gt;
Video - Advanced Table Design: 00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
Video - Advanced Table Design: 03:35 - 03:43 ] &lt;br /&gt;
|  | '''Table '''and''' Advanced Table Design''' in '''CSS''' are next tutorial in this series.&lt;br /&gt;
&lt;br /&gt;
They will teach us to '''style''' and '''format tables''' using '''CSS''' '''table''' properties.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Forms&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
11:49 - 12:03 ] &lt;br /&gt;
|  | Next tutorial is '''Forms'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn to '''style''' and '''format forms '''using various''' CSS properties.'''&lt;br /&gt;
&lt;br /&gt;
Like '''border''', '''background-color, padding, '''etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Counters&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
06:45 - 06:58&lt;br /&gt;
|  | The tutorial named '''Counters '''is next in the series.&lt;br /&gt;
&lt;br /&gt;
With the help of this tutorial, we will learn to number '''elements''' automatically in a '''webpage.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Multi-column Layout&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
4:04 - 4:17&lt;br /&gt;
&lt;br /&gt;
|  | Next tutorial is '''Multi-column Layout.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, learners can create '''Multi-column Layouts '''of their''' webpages.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Web layout&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00-00:05&lt;br /&gt;
&lt;br /&gt;
7:35 - 07:49&lt;br /&gt;
|  | The last tutorial is '''Web layout.'''&lt;br /&gt;
&lt;br /&gt;
In this, learners will be able to design and structure '''web pages '''with proper '''web layout.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* About '''CSS''' and&lt;br /&gt;
* The tutorials covered in this series&lt;br /&gt;
&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;
|  | 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;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|  | The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Overview-of-CSS/English</id>
		<title>CSS/C2/Overview-of-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Overview-of-CSS/English"/>
				<updated>2021-01-27T11:33:10Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Overview of CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer: '''Madhuri Ganapathi  '''Keyw...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Overview of CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer: '''Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Video Tutorial, Spoken Tutorial&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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;
|  | Hello and welcome to the spoken tutorial on “Overview of '''CSS'''”. &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn:&lt;br /&gt;
&lt;br /&gt;
* About '''CSS '''and&lt;br /&gt;
* The content available in various tutorials in this series&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | What is '''CSS'''?&lt;br /&gt;
&lt;br /&gt;
'''CSS''' stands for '''Cascading Style Sheet.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | &lt;br /&gt;
* It''' '''is a '''style sheet''' language.&lt;br /&gt;
* It is used to '''style''' documents written in '''markup''' language like''' HTML''', '''XML '''etc.&lt;br /&gt;
* It is an independent file and saved with '''[dot] css (.css)''' extension.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: '''CSS'''&lt;br /&gt;
|  | &lt;br /&gt;
* It allows '''developers''' to control how the '''webpage''' should be displayed.&lt;br /&gt;
* For e.g color, font, space, etc.&lt;br /&gt;
* It is platform independent and hence works on all '''operating systems'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisites for using '''CSS'''&lt;br /&gt;
|  | To work with '''CSS,''' we need-&lt;br /&gt;
&lt;br /&gt;
* A '''text editor '''or a '''WYSIWYG editor''' to&lt;br /&gt;
** write our '''CSS '''code and&lt;br /&gt;
** understand various '''CSS '''properties&lt;br /&gt;
* A '''web browser''' to display the '''formatted''' content.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: For recording of '''CSS''' series&lt;br /&gt;
|  | Throughout this series I will be using:&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser '''and&lt;br /&gt;
* '''Ubuntu Linux OS v 18.04'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now, we will briefly go through some of the individual tutorials in this series. &lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of First CSS File&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
03:35 - 03:43&lt;br /&gt;
&lt;br /&gt;
05:44 - 05:50 ] &lt;br /&gt;
&lt;br /&gt;
|  | '''First CSS File '''is the introductory tutorial of the series.&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will learn how to create a '''CSS''' file and the '''syntax''' of '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
We’ll also see how to '''link''' a '''CSS''' file with an '''HTML''' file and see the output on a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Dimensions and Measuring Units&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
04:05 - 04:12&lt;br /&gt;
&lt;br /&gt;
07:51 - 07:57 ] &lt;br /&gt;
|  | '''Dimensions and Measuring Units '''is the next tutorial.&lt;br /&gt;
&lt;br /&gt;
In this, we’ll learn about measuring '''units''' and''' '''width &amp;amp; height properties in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Box Model&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:03&lt;br /&gt;
&lt;br /&gt;
01:27 - 01:36&lt;br /&gt;
&lt;br /&gt;
09:57 - 10:02 ] &lt;br /&gt;
|  | The next tutorial is '''Box Model''', in which we’ll learn about '''CSS''' '''Box Model '''and its '''layers'''.&lt;br /&gt;
&lt;br /&gt;
We will also learn about the '''Box sizing.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Background&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:03&lt;br /&gt;
&lt;br /&gt;
04:26 - 04:36&lt;br /&gt;
&lt;br /&gt;
05:53 - 05:57 ] &lt;br /&gt;
|  | Next tutorial is '''Background.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we'll learn how to set the''' background '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
&lt;br /&gt;
Like '''background-color, background-image, background-repeat,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Text Properties&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
02:28 - 02:42] &lt;br /&gt;
|  | After this, comes '''Text Properties.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we’ll learn how to '''set''' the '''Text '''properties to '''format''' and '''style''' the '''text''' '''elements.'''&lt;br /&gt;
&lt;br /&gt;
Like '''color, alignment,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Font properties&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
10:55 - 11:09 ] &lt;br /&gt;
|  | Next tutorial is '''Font properties'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn about '''Font properties''' of an '''element '''to '''style''' the '''font''' of the '''text.'''&lt;br /&gt;
&lt;br /&gt;
Like '''font-style, font-size, font-family,''' etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Display property&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
03:57 - 04:03] &lt;br /&gt;
|  | The tutorial named '''Display''' '''property '''is next in the series.&lt;br /&gt;
&lt;br /&gt;
In this we’ll see how to display''' '''an '''element''' in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Float and Overflow&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
04:18 - 04:27&lt;br /&gt;
&lt;br /&gt;
11:06 - 11:10 ] &lt;br /&gt;
|  | Next tutorial is '''Float''' '''and''' '''Overflow.'''&lt;br /&gt;
&lt;br /&gt;
Here, we’ll learn about '''Float''' &amp;amp; '''Clear '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
&lt;br /&gt;
We’ll also learn '''Overflow '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Link&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
06:11 - 06:25] &lt;br /&gt;
|  | After this is '''Link.'''&lt;br /&gt;
&lt;br /&gt;
In this, we can '''style links''' by applying different properties to all the four states of '''link.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of List&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
02:20 - 02:34] &lt;br /&gt;
|  | Next tutorial is '''List'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn about '''list''' properties to '''style''' and '''format lists.'''&lt;br /&gt;
&lt;br /&gt;
Like''' type, background-color, '''etc&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Table&lt;br /&gt;
&lt;br /&gt;
[Video - Table: 00:00 - 00:02&lt;br /&gt;
&lt;br /&gt;
Video - Advanced Table Design: 00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
Video - Advanced Table Design: 03:35 - 03:43 ] &lt;br /&gt;
|  | '''Table '''and''' Advanced Table Design''' in '''CSS''' are next tutorial in this series.&lt;br /&gt;
&lt;br /&gt;
It will teach us to '''style''' and '''format tables''' using '''CSS''' '''table''' properties.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Forms&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:04&lt;br /&gt;
&lt;br /&gt;
11:49 - 12:03 ] &lt;br /&gt;
|  | Next tutorial is '''Forms'''.&lt;br /&gt;
&lt;br /&gt;
In this we’ll learn to '''style''' and '''format forms '''using various''' CSS properties.'''&lt;br /&gt;
&lt;br /&gt;
Like '''border''', '''background-color, padding, '''etc.&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Counters&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
06:45 - 06:58&lt;br /&gt;
|  | The tutorial named '''Counters '''is next in the series.&lt;br /&gt;
&lt;br /&gt;
With the help of this tutorial, we will learn to number '''elements''' automatically in a '''webpage.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Multi-column Layout&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00 - 00:06&lt;br /&gt;
&lt;br /&gt;
4:04 - 4:17&lt;br /&gt;
&lt;br /&gt;
|  | Next tutorial is '''Multi-column Layout.'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, learners can create '''Multi-column Layouts '''of their''' webpages.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Glimpse of Web layout&lt;br /&gt;
&lt;br /&gt;
[Video:&lt;br /&gt;
&lt;br /&gt;
00:00-00:05&lt;br /&gt;
&lt;br /&gt;
7:35 - 07:49&lt;br /&gt;
|  | The last tutorial is '''Web layout.'''&lt;br /&gt;
&lt;br /&gt;
In this, learners will be able to design and structure '''web pages '''with proper '''web layout.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* About '''CSS''' and&lt;br /&gt;
* The tutorials covered in this series&lt;br /&gt;
&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;
|  | 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;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|  | The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C4/Web-Layout-in-CSS/English</id>
		<title>CSS/C4/Web-Layout-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C4/Web-Layout-in-CSS/English"/>
				<updated>2021-01-06T02:45:17Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Web Layout in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Ke...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Web Layout in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Web Layouts,''' '''CSS Header, CSS Menu Bar, CSS Content, CSS Footer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 “'''Web Layout in CSS'''”.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial we will learn to:&lt;br /&gt;
&lt;br /&gt;
* Structure the '''layout '''of a '''web page '''using''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Web Layout&lt;br /&gt;
|  | &lt;br /&gt;
* For clarity and easy accessibility the content has to be organised on a '''web page'''.&lt;br /&gt;
* Using '''CSS '''we can structure the '''web layouts '''as per our requirements.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Web Layout&lt;br /&gt;
|  | A '''web page''' is divided into various parts:&lt;br /&gt;
&lt;br /&gt;
* '''Header'''&lt;br /&gt;
* '''Menu Bar'''&lt;br /&gt;
* '''Content'''&lt;br /&gt;
* '''Footer'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Web Layout&lt;br /&gt;
&lt;br /&gt;
[Image = 3image.png]&lt;br /&gt;
|  | There are many different ways to structure our '''web page'''. &lt;br /&gt;
&lt;br /&gt;
This is the most common structure.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Myweb.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Myweb.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Myweb.html in gedit&lt;br /&gt;
|  | Open the file '''Myweb.html''' in a '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Myweb.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
All code&lt;br /&gt;
|  | In this '''HTML''' file, I have already created some '''elements.'''&lt;br /&gt;
&lt;br /&gt;
Like, a title for the '''page '''followed by three '''links'''.&lt;br /&gt;
&lt;br /&gt;
Then some '''paragraphs '''with''' headings'''.&lt;br /&gt;
&lt;br /&gt;
I have linked this '''HTML '''file to''' webstyle.css stylesheet'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Myweb.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Myweb.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [browser]&lt;br /&gt;
|  | Observe the '''page'''.&lt;br /&gt;
&lt;br /&gt;
This '''page''' is not structured properly.&lt;br /&gt;
&lt;br /&gt;
Using '''CSS '''properties, I will make a proper '''layout''' for this '''web page'''. &lt;br /&gt;
&lt;br /&gt;
Let's start with the '''header'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Header&lt;br /&gt;
|  | &lt;br /&gt;
* '''Header''' is placed at the top of the '''web''' '''page'''.&lt;br /&gt;
* It contains the title,''' logo, search bar''' etc.&lt;br /&gt;
&lt;br /&gt;
Let us understand this through example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to my-css folder&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open webstyle.css in gedit&lt;br /&gt;
|  | Now open the file '''webstyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - webstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
.header {&lt;br /&gt;
&lt;br /&gt;
background-color: #4d4d4d;&lt;br /&gt;
&lt;br /&gt;
color: #ffffff;&lt;br /&gt;
&lt;br /&gt;
padding: 22px;&lt;br /&gt;
&lt;br /&gt;
text-align: center;}&lt;br /&gt;
|  | Type the code as shown.&lt;br /&gt;
&lt;br /&gt;
I have created a '''class '''named '''“header”'''. &lt;br /&gt;
&lt;br /&gt;
You can give any name of your choice.&lt;br /&gt;
&lt;br /&gt;
I have set some properties for this '''class.'''&lt;br /&gt;
&lt;br /&gt;
These are '''background-color, color, padding''' and '''text-align '''properties.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now I will assign this '''header class''' to the '''h1 heading '''in the''' web page'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Myweb.html&lt;br /&gt;
|  | Switch to the '''Myweb.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Myweb.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class =&amp;quot;header&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; Welcome to Spoken Tutorial &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | Using the '''div tag''', I''' '''will assign the '''class''' '''header''' to the '''h1 heading'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''body''', update the '''heading''' as shown. &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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the heading&lt;br /&gt;
|  | Observe the modified '''heading'''.&lt;br /&gt;
&lt;br /&gt;
Next we will see how to structure the '''menu bar'''.  &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Menu Bar&lt;br /&gt;
|  | &lt;br /&gt;
* '''Menu bar''' consists of '''links''', which are used to navigate through the '''website'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to webstyle.css&lt;br /&gt;
|  | Switch to the '''webstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - webstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.menubar {&lt;br /&gt;
&lt;br /&gt;
background-color: &amp;lt;nowiki&amp;gt;#d1e0e0;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
padding: 4px 16px;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a {&lt;br /&gt;
&lt;br /&gt;
color: #000000;&lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
&lt;br /&gt;
padding: 4px 16px;&lt;br /&gt;
&lt;br /&gt;
text-decoration: none;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a:hover {&lt;br /&gt;
&lt;br /&gt;
background-color: #ffffff;&lt;br /&gt;
&lt;br /&gt;
color: #ee7811;}&lt;br /&gt;
|  | Next to '''header class''', type the code as shown.&lt;br /&gt;
&lt;br /&gt;
I have created a '''class “menubar”''' and set '''background-color''' and '''padding '''property for this '''class'''.&lt;br /&gt;
&lt;br /&gt;
Then I have set some properties for '''links'''.&lt;br /&gt;
&lt;br /&gt;
I have also set some properties when the '''user''' moves the '''mouse '''over the '''links'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now I will assign this '''menu class''' to the '''links '''of the '''web page'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Myweb.html&lt;br /&gt;
|  | Switch to the '''Myweb.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Myweb.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;menubar&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Tutorial&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Assignment&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Test&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Inside the '''body''', next to the '''heading''', update the '''links''' as shown. &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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Our new''' Menu bar''' is added to the '''web page.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Content&lt;br /&gt;
|  | &lt;br /&gt;
* '''Content '''is the main section of the '''web''' '''page'''.&lt;br /&gt;
* It can be divided into many '''columns '''for better readability.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Content &lt;br /&gt;
&lt;br /&gt;
[Image = 3image.png]&lt;br /&gt;
|  | '''1-column layout '''is mostly used for mobile devices.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Content&lt;br /&gt;
&lt;br /&gt;
[Image = 2image.png]&lt;br /&gt;
|  | '''2-column layout '''is''' '''mostly used for tablets and laptops.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Content&lt;br /&gt;
&lt;br /&gt;
[Image = 1image.png]&lt;br /&gt;
|  | '''3-column layout '''is''' '''mostly used for desktops.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to webstyle.css&lt;br /&gt;
|  | Switch to the '''webstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - webstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
.col {float: left;&lt;br /&gt;
&lt;br /&gt;
width: 30%;&lt;br /&gt;
&lt;br /&gt;
padding: 7px;&lt;br /&gt;
&lt;br /&gt;
text-align: justify;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@media screen and (max-width:600px) { &lt;br /&gt;
&lt;br /&gt;
.col{ width: 100%; } }&lt;br /&gt;
|  | Now I will create a '''3-column layout''' for our content.&lt;br /&gt;
&lt;br /&gt;
Next to the''' a:hover tag,''' type the''' '''code''' '''as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - webstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
.col {float: left;&lt;br /&gt;
&lt;br /&gt;
width: 30%;&lt;br /&gt;
&lt;br /&gt;
padding: 7px;&lt;br /&gt;
&lt;br /&gt;
text-align: justify;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@media screen and (max-width:600px) { &lt;br /&gt;
&lt;br /&gt;
.col{ width: 100%; } }&lt;br /&gt;
|  | I have created a''' class “col”''' and set the''' float''' to '''left '''and '''width '''to '''30%'''.&lt;br /&gt;
&lt;br /&gt;
This will split my content into a '''3-column layout'''.&lt;br /&gt;
&lt;br /&gt;
I have also set '''padding''' and '''text-align''' properties.&lt;br /&gt;
&lt;br /&gt;
Here I have used the '''media rule'''.&lt;br /&gt;
&lt;br /&gt;
When the '''browser window''' is '''600px '''or smaller, then the '''width '''of the '''column''' becomes '''100%'''.&lt;br /&gt;
&lt;br /&gt;
This will display the content in '''1-column layout'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now I will assign this '''col class''' to the''' '''first three''' paragraphs '''on the '''web page'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Myweb.html&lt;br /&gt;
|  | Switch to the '''Myweb.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Myweb.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class = &amp;quot;col&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
... &lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
|  | Inside the '''body''', add the '''div tag''' with the''' class col''' before the '''heading''' of all the '''paragraphs.'''&lt;br /&gt;
&lt;br /&gt;
Then close the''' div tag''' at the end of each paragraph as shown.&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Our content is displayed in '''3-column layout'''.&lt;br /&gt;
&lt;br /&gt;
Now resize the '''browser''' to '''600px '''or smaller.&lt;br /&gt;
&lt;br /&gt;
On doing so, the content '''layout''' has changed to '''1-column layout.'''&lt;br /&gt;
&lt;br /&gt;
And the '''columns '''get stacked on the top of other '''columns '''instead of next to each other.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Footer&lt;br /&gt;
|  | &lt;br /&gt;
* '''Footer''' is placed at the bottom of the '''web''' '''page'''.&lt;br /&gt;
* It contains details like '''copyrights, address,''' etc.&lt;br /&gt;
&lt;br /&gt;
Let us understand this through example.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to webstyle.css&lt;br /&gt;
|  | Switch to the '''webstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - webstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
.footer {&lt;br /&gt;
&lt;br /&gt;
clear:both;&lt;br /&gt;
&lt;br /&gt;
background-color: #4d4d4d;&lt;br /&gt;
&lt;br /&gt;
padding: 2px;&lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
&lt;br /&gt;
color: #ffffff;} &lt;br /&gt;
|  | Next to the '''media rule''', type the code as shown.&lt;br /&gt;
&lt;br /&gt;
I have created a '''class “footer”''' and set some properties for this '''class'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now I will assign this '''footer class''' to the last '''paragraph '''of the '''web page'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Myweb.html&lt;br /&gt;
|  | Switch to the '''Myweb.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Myweb.html]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;footer&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;p&amp;gt;Copyright-2020&amp;lt;/p&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|  | Inside the '''body''', update the code as shown.&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the modified '''footer '''now.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt to:&lt;br /&gt;
&lt;br /&gt;
* Structure the '''layout '''of a '''web page '''using''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Create a file '''layoutpage.html'''.&lt;br /&gt;
* Create the following parts:&lt;br /&gt;
** '''Header'''&lt;br /&gt;
** '''Menu bar'''&lt;br /&gt;
** '''Content : 2-columns'''&lt;br /&gt;
** '''Footer'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Create a file '''layoutstyle.css.'''&lt;br /&gt;
* Style all the parts.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Link the '''layoutstyle.css''' file to '''layoutpage.html''' file&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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: About Workshop&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;
|  | Slide: Forum questions&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C4/Multi-column-Layout-in-CSS/English</id>
		<title>CSS/C4/Multi-column-Layout-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C4/Multi-column-Layout-in-CSS/English"/>
				<updated>2021-01-06T02:22:39Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Multi-column Layout in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapat...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Multi-column Layout in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, Multi-column Layout, CSS Column, column-count, column-width, column-gap, column-rule-style, column-rule-width, column-rule-color, column-rule, column-span&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 “'''Multi-column Layout in CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial we will learn:&lt;br /&gt;
&lt;br /&gt;
* How to create a '''Multi-column Layout '''in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Multi-column Layout&lt;br /&gt;
|  | '''Multi-column layout'''&lt;br /&gt;
* It is used mostly for creating layouts for newspapers, magazines, etc.&lt;br /&gt;
* It is created and styled using the '''CSS column '''properties.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Column Property&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 22em;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''column-width''' || '''column-count'''&lt;br /&gt;
|-&lt;br /&gt;
| '''column-gap || '''column-rule-style'''&lt;br /&gt;
|-&lt;br /&gt;
| '''column-rule-width || '''column-rule-color'''&lt;br /&gt;
|-&lt;br /&gt;
| '''column-rule''' || '''column-span'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|  | These are some '''CSS''' '''column''' properties.&lt;br /&gt;
&lt;br /&gt;
Let us understand these using some examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mycolumn.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Mycolumn.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is provided in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mycolumn.html in gedit&lt;br /&gt;
|  | Open the file '''Mycolumn.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mycolumn.html]&lt;br /&gt;
&lt;br /&gt;
Highlight all&lt;br /&gt;
|  | In this '''HTML '''file, I have written some text and linked it to''' Colstyle.css stylesheet'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to my-css folder&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Colstyle.css in gedit&lt;br /&gt;
|  | Now open the file '''Colstyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: body property&lt;br /&gt;
|  | I have set the '''background color''' for this page to''' light cyan.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mycolumn.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mycolumn.html''' in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
I have opened it in the''' Firefox web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the text&lt;br /&gt;
|  | Observe the page.&lt;br /&gt;
&lt;br /&gt;
We see a paragraph displayed without any formatting.&lt;br /&gt;
&lt;br /&gt;
Now I will apply all the '''column '''properties to this page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-width&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-width''' property is used to '''set''' the '''width '''of every '''column'''.&lt;br /&gt;
* It also controls the number of '''columns'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mycolumn.html&lt;br /&gt;
|  | Switch to the '''Mycolumn.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mycolumn.html]&lt;br /&gt;
&lt;br /&gt;
Type: &amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Type: &amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | I will add the '''div tag''' with '''class “col”''' for the text.&lt;br /&gt;
&lt;br /&gt;
Next to the '''body''' '''tag,''' add the '''div tag''' with the '''class col.'''&lt;br /&gt;
&lt;br /&gt;
Then before the''' body closing tag''', close the '''div tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
.col {column-width: 400px;}&lt;br /&gt;
|  | I will create a '''class “col”'''.&lt;br /&gt;
&lt;br /&gt;
Next to the '''body tag''', type the code as shown.&lt;br /&gt;
&lt;br /&gt;
Here I have '''set''' the '''width '''to '''400 pixels'''&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
In my case, the content is divided into '''two columns'''.&lt;br /&gt;
&lt;br /&gt;
It may vary in your case, as it depends on the size of the '''browser'''.&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl '''and '''minus '''keys together to increase the no. of '''columns'''.&lt;br /&gt;
&lt;br /&gt;
If we press '''Ctrl '''&amp;amp; '''+ '''keys together the number of '''columns '''will decrease accordingly.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-count&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-count''' property is used to divide the '''element''' into a number of '''columns'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
.col {column-count: 2;}&lt;br /&gt;
|  | Update the property for '''col''' '''class''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: column-count: 2;&lt;br /&gt;
|  | Here I have set the '''column-count''' to '''2'''.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the content is divided into two '''columns.'''&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl '''and '''minus '''keys or '''Ctrl '''and '''plus '''keys together.&lt;br /&gt;
&lt;br /&gt;
The number of '''columns '''will remain as it is.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: column-count: 2;&lt;br /&gt;
|  | We can divide our content into any number of '''columns '''by changing '''column-count''' value.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-gap&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-gap''' property is used to '''set''' the gap between '''columns.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
column-gap: 50px;&lt;br /&gt;
|  | Inside the''' '''class''' col, '''next to the''' column-count '''property''',''' type the''' '''code''' '''as shown.&lt;br /&gt;
&lt;br /&gt;
I have '''set''' a gap of '''50 pixels''' between the '''columns.'''&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''50 pixel''' gap is '''set''' between the '''columns.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-rule-style&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-rule-style''' property is used to display a ruler between the '''columns.'''&lt;br /&gt;
* Rulers can be styled as '''solid, dotted, dashed, '''etc'''.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
column-rule-style: solid;&lt;br /&gt;
|  | Inside the''' '''class''' “col”, '''next to the''' column-gap '''property''',''' type the''' '''code''' '''as shown.&lt;br /&gt;
&lt;br /&gt;
I have '''set''' a '''solid '''ruler between the '''columns'''.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
A solid ruler is inserted between the '''columns'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-rule-width&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-rule-width''' property is used to set the '''width '''of ruler between '''columns.'''&lt;br /&gt;
* This property works after specifying''' column-rule-style '''property.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
column-rule-width: 5px;&lt;br /&gt;
|  | Inside the''' class “col”, '''next to the''' column-rule-style '''property''',''' type the''' '''code''' '''as shown.&lt;br /&gt;
&lt;br /&gt;
I have set the '''width '''of the '''line '''to''' 5 pixels'''.&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 width of the line is increased&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-rule-color&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-rule-color''' property is used to set the '''color '''of ruler between '''columns.'''&lt;br /&gt;
* This property works after specifying''' column-rule-style '''property.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
column-rule-color: blue;&lt;br /&gt;
|  | I will set the '''color '''of the ruler to''' blue.'''&lt;br /&gt;
&lt;br /&gt;
Inside the''' '''class''' “col”, '''next to the''' column-rule-width '''property''',''' type the''' '''code''' '''as shown.&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;
Blue color is set for the ruler.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-rule&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-rule''' is shorthand property for setting '''style, width '''and '''color '''of''' '''ruler'''.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
.col { &lt;br /&gt;
column-count: 2; column-gap: 50px; column-rule: solid 3px red; }&lt;br /&gt;
&lt;br /&gt;
|  | Update the property for '''col''' '''class''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
column-rule: solid 3px red;&lt;br /&gt;
|  | Here I have '''set''' the ruler '''style '''as '''solid''', '''width 3 pixels''' and '''color''' '''red'''.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Ruler is set between the '''columns '''having''' style solid, width 3 pixels '''and '''color red.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: column-span&lt;br /&gt;
|  | &lt;br /&gt;
* '''column-span''' property is used to stretch an '''element''' across '''columns'''.&lt;br /&gt;
* Its values are: '''none, all, initial '''and''' inherit'''.&lt;br /&gt;
* Its default value is '''none.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | To understand this property, first let us add a '''heading '''to the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mycolumn.html&lt;br /&gt;
|  | Switch to the '''Mycolumn.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mycolumn.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; Spoken Tutorial &amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | After the '''div start tag''', type the code as shown. &lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
h1 {text-align: center;}&lt;br /&gt;
|  | Next to the''' class “col”,''' type the''' '''code''' '''as shown.&lt;br /&gt;
&lt;br /&gt;
I have set the '''h1 heading to centre align.'''&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Heading '''is added to the first '''column''' not to the whole page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mycolumn.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;Spoken Tutorial&amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | This is because the '''heading '''is included inside the '''class col'''.&lt;br /&gt;
&lt;br /&gt;
Here the default '''column-span''' value is '''none'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Colstyle.css&lt;br /&gt;
|  | Switch to the '''Colstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Colstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
column-span: all;&lt;br /&gt;
|  | Inside the '''h1''' tag, next to the '''text-align '''property''' ''', type the''' '''code''' '''as shown.&lt;br /&gt;
&lt;br /&gt;
I have '''set''' the '''column-span '''to all.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the heading spans across all the '''columns'''.&lt;br /&gt;
&lt;br /&gt;
Likewise we can customise our web page content using '''CSS column''' properties, as required.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Multi-column Layout '''in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
| As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''webpage.html''' which you have created earlier.&lt;br /&gt;
* Add some content more than 10 lines'''.'''&lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Divide the content into '''4 columns'''.&lt;br /&gt;
* Using shorthand add a '''dotted red 4px''' '''ruler.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file.&lt;br /&gt;
&lt;br /&gt;
* Observe the output.&lt;br /&gt;
&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: About Workshop&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;
|  | Slide: Forum questions&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C4/Counters-in-CSS/English</id>
		<title>CSS/C4/Counters-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C4/Counters-in-CSS/English"/>
				<updated>2021-01-06T01:45:32Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Counters in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keyw...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Counters in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Counters, CSS counter-reset, CSS counter-increment, CSS content, CSS counter() or counters() function&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''Counters in CSS'''. &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''Counters '''in''' CSS '''and&lt;br /&gt;
* Their properties and usage&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Counters&lt;br /&gt;
|  | &lt;br /&gt;
* '''Counters''' are variables used for numbering '''elements''' automatically in the '''webpage.'''&lt;br /&gt;
* They are incremented by '''CSS''' rules.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Counter Property&lt;br /&gt;
|  | The properties used for '''counters''' are:&lt;br /&gt;
&lt;br /&gt;
* '''counter-reset '''&lt;br /&gt;
* '''counter-increment'''&lt;br /&gt;
* '''content'''&lt;br /&gt;
* '''counter() '''or''' counters() function'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: counter-reset&lt;br /&gt;
|  | &lt;br /&gt;
* '''Counter-reset''' property is used to create a '''counter''' or reset a '''counter''' value.&lt;br /&gt;
* By default, the '''counter''' value is initialized to '''zero'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: counter-increment&lt;br /&gt;
|  | &lt;br /&gt;
* '''Counter-increment''' property is used to increment '''counter '''values.&lt;br /&gt;
* It is useful for automatically increasing step values.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: content&lt;br /&gt;
|  |&lt;br /&gt;
* '''Content''' property is used to generate content for an '''element'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: counter() or counters() function&lt;br /&gt;
|  | &lt;br /&gt;
* '''counter() '''or''' counters() function '''assigns the '''counter''' value to an '''element'''.&lt;br /&gt;
&lt;br /&gt;
Let us understand these through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open my-css''' '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mycounter.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Mycounter.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mycounter.html in gedit&lt;br /&gt;
|  | Open the file '''Mycounter.html''' in the '''text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mycounter.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
All code&lt;br /&gt;
|  | This '''HTML''' file has one '''h1 heading '''- '''Welcome to Farmer's Market.'''&lt;br /&gt;
&lt;br /&gt;
This is followed by three '''h2 headings''', having their respective content.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to my-css folder&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open counterstyle.css&lt;br /&gt;
|  | Now open the file '''counterstyle.css''' in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: All code&lt;br /&gt;
|  | Here, I have already defined some properties for '''body '''and '''h1 heading.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mycounter.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mycounter.html''' in a '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
I have opened it in the''' Firefox web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the page&lt;br /&gt;
|  | Observe the page.&lt;br /&gt;
&lt;br /&gt;
In this page, we can see three '''h2 headings:'''&lt;br /&gt;
&lt;br /&gt;
'''Vegetables''',''' Fruits''',''' Dry Fruits.'''&lt;br /&gt;
&lt;br /&gt;
Now I will apply '''counter '''properties to these '''headings'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to counterstyle.css&lt;br /&gt;
|  | Switch to the '''counterstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
counter-reset: countval;&lt;br /&gt;
|  | First I will create a '''counter'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', next to the '''background-color''' property, type the code as shown.&lt;br /&gt;
&lt;br /&gt;
A''' Counter''' named '''countval''' is created.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
h2::before {counter-increment: countval;&lt;br /&gt;
&lt;br /&gt;
content: &amp;quot;Category &amp;quot; counter(countval) &amp;quot;. &amp;quot;;}&lt;br /&gt;
|  | Now I will assign this '''counter''' to '''h2 heading.'''&lt;br /&gt;
&lt;br /&gt;
Next to the '''h1 tag''', type the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: h2::before &lt;br /&gt;
|  | '''Counter'''s will be displayed before the '''heading''' content.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
counter-increment: countval;&lt;br /&gt;
|  | By using '''counter-increment''' property I have incremented the '''countval counter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
content: &amp;quot;Category &amp;quot; &lt;br /&gt;
&lt;br /&gt;
&amp;quot;. &amp;quot;;&lt;br /&gt;
&lt;br /&gt;
counter(countval)&lt;br /&gt;
|  | Here '''content''' property will generate the word “'''category'''” first. &lt;br /&gt;
&lt;br /&gt;
Then it will generate the '''counter''' value followed by the '''dot symbol'''.&lt;br /&gt;
&lt;br /&gt;
Here '''countval''' is assigned to the '''counter function'''.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now, '''Category 1. Category 2. Category 3.'''&lt;br /&gt;
&lt;br /&gt;
are added before the '''content''' of the '''headings'''.&lt;br /&gt;
&lt;br /&gt;
Here the word “'''Category'''” is the '''content''' added to the '''counter.'''&lt;br /&gt;
&lt;br /&gt;
'''1, 2 '''and''' 3''' are the '''counters'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Nested Counters&lt;br /&gt;
|  | &lt;br /&gt;
* '''Nested counter''' means a '''counter''' within a '''counter'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to counterstyle.css&lt;br /&gt;
|  | Switch to the '''counterstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to''' h1''' heading.&lt;br /&gt;
&lt;br /&gt;
Highlight '''h1''' heading.&lt;br /&gt;
|  | First I will create a '''counter''' for '''h1 heading “Welcome to Farmer's Market”'''&lt;br /&gt;
&lt;br /&gt;
Then I will create''' h2 heading counters '''within the '''h1 heading counter.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
counter-reset: countmain;&lt;br /&gt;
|  | For this, create a '''counter''' named '''countmain''' for '''h1 heading'''.&lt;br /&gt;
&lt;br /&gt;
Inside the''' body tag, '''update the '''counter-reset '''property''' '''as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
counter-reset: countval;&lt;br /&gt;
|  | Now I will create a '''counter''' named '''countval''' for '''h2 heading''' inside '''h1 heading'''.&lt;br /&gt;
&lt;br /&gt;
Inside the''' h1 tag, '''next to the''' text-align '''property''',''' type the''' '''code''' '''as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
h1::before { counter-increment: countmain;&lt;br /&gt;
&lt;br /&gt;
content: counter(countmain) &amp;quot;. &amp;quot;;}&lt;br /&gt;
|  | I will assign the '''counter''' '''countmain '''to '''h1 heading.'''&lt;br /&gt;
&lt;br /&gt;
Next to '''h1 tag''', type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - counterstyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
h2::before { counter-increment: countval;&lt;br /&gt;
&lt;br /&gt;
content: counter(countmain) &amp;quot;.&amp;quot; counter(countval) &amp;quot; &amp;quot;;}&lt;br /&gt;
|  | Now I will assign the '''counter''' '''countval '''to '''h2 heading.'''&lt;br /&gt;
&lt;br /&gt;
Update the '''h2::before property''' as shown.&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;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Counter''' '''“1. '''” is displayed before the '''heading''' '''“Welcome to Farmer's Market”.'''&lt;br /&gt;
&lt;br /&gt;
'''Counter''' '''“1. '''” is displayed as a main '''counter.'''&lt;br /&gt;
&lt;br /&gt;
The sub-counters for '''h2 headings''' are displayed as:&lt;br /&gt;
&lt;br /&gt;
'''1.1 Vegetables'''&lt;br /&gt;
&lt;br /&gt;
'''1.2 Fruits'''&lt;br /&gt;
&lt;br /&gt;
'''1.3 Dry Fruits'''&lt;br /&gt;
&lt;br /&gt;
In this manner, you can add '''counters''' to your '''webpage, '''as per your requirements.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Counters '''in''' CSS '''and&lt;br /&gt;
* Their properties and usage&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
| As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''webpage.html''' which you have created earlier.&lt;br /&gt;
* Add three '''h3 headings.'''&lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Set '''counter '''for''' h3 headings'''&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
&lt;br /&gt;
* Observe the output&lt;br /&gt;
&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: About Workshop&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;
|  | Slide: Forum questions&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C3/Forms-in-CSS/English</id>
		<title>CSS/C3/Forms-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C3/Forms-in-CSS/English"/>
				<updated>2020-11-11T14:19:15Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Forms in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keyword...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Forms in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Forms, CSS Forms Border, CSS Forms Width, CSS Forms Padding, CSS Forms Color, CSS Forms Focus, CSS Forms Image, CSS Forms Animation, CSS Forms Label, Media rule, CSS Forms Select Menu, CSS Forms Textarea, CSS Forms Input Buttons, CSS Responsive Form&lt;br /&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 CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
* Styling '''Forms '''in''' CSS '''and&lt;br /&gt;
* Customise the '''input fields''' as per our requirements&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Forms&lt;br /&gt;
|  | &lt;br /&gt;
* Using '''CSS''' we can style and format '''forms '''as per our requirements.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Forms&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 22em;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Border''' || '''Width'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Padding || '''Color'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Focus''' || '''Image'''&lt;br /&gt;
|-&lt;br /&gt;
|'''Animation'''&lt;br /&gt;
|}&lt;br /&gt;
|  | These are some '''CSS '''properties used for '''forms''':&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Forms&lt;br /&gt;
|  | We will learn how to design:&lt;br /&gt;
&lt;br /&gt;
* '''Input text'''&lt;br /&gt;
* '''Label'''&lt;br /&gt;
* '''Select Menu'''&lt;br /&gt;
* '''Textarea'''&lt;br /&gt;
* '''Input Buttons'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Forms&lt;br /&gt;
|  | We will also learn how to create a '''Responsive Form.'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | For this demonstration I have created a '''Registration form '''and saved it as '''MyWebForm.html'''&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files '''link.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - MyWebForm.html]&lt;br /&gt;
|  | Open the file '''MyWebForm.html '''in any '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - MyWebForm.html] Highlight:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;label for=&amp;quot;fname&amp;quot;&amp;gt; First Name &amp;lt;/label&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;fname&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Submit&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;Style.css&amp;quot;&amp;gt;&lt;br /&gt;
|  | Here I have created a simple '''form''' to fetch '''First Name''' from the '''user'''.&lt;br /&gt;
&lt;br /&gt;
And linked this file to '''style'''.'''css''' stylesheet.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open MyWebForm.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''MyWebForm.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
It displays an '''input textbox''' to get the '''First name''' from the '''user'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration &lt;br /&gt;
|  | Let us apply '''CSS '''properties to this '''form'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Border&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
* '''Border '''property is used to set the size, type and color for the '''borders'''.&lt;br /&gt;
* '''Border-radius''' property is used to make the corners round.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Style.css in gedit&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Open the file '''Style.css''' in any '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Type:&lt;br /&gt;
&lt;br /&gt;
input[type=text]{&lt;br /&gt;
&lt;br /&gt;
border: 3px solid purple;&lt;br /&gt;
&lt;br /&gt;
border-radius: 10px;}&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Now type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] &lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
input[type=text]&lt;br /&gt;
|  | The way to define the '''CSS''' property for a '''form''' is different from other '''elements'''.&lt;br /&gt;
&lt;br /&gt;
Here I have written the name of the '''form element''' first.&lt;br /&gt;
&lt;br /&gt;
Then within the square bracket I have mentioned the '''type''' of the '''element'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
border: 3px solid purple;&lt;br /&gt;
&lt;br /&gt;
border-radius: 10px;&lt;br /&gt;
|  | I have set the '''border''' '''size''' to '''3 pixels''', '''border''' '''type''' to '''solid''' and '''border color '''to''' purple.'''&lt;br /&gt;
&lt;br /&gt;
To increase the size of roundness I have set the '''radius''' to '''10 pixels'''.&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] Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The border is set now.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Next, using '''CSS width '''property we can set '''width''' of the '''form elements.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Type:&lt;br /&gt;
&lt;br /&gt;
width: 60%;&lt;br /&gt;
|  | I will set the '''width '''of the '''input field '''to''' 60% '''of the '''web page'''.&lt;br /&gt;
&lt;br /&gt;
Inside the''' input text tag''', next to '''border-radius''' property, type the code as shown.&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] Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Width is set to 60% of the width of '''web''' '''page''' &lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Next, using''' Padding '''property we can add some space around the '''text'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Type:&lt;br /&gt;
&lt;br /&gt;
padding: 10px;&lt;br /&gt;
|  | I will set the '''padding '''to''' 10 pixels.'''&lt;br /&gt;
&lt;br /&gt;
Inside the''' input text tag''', next to '''width''' property, type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Size of the '''input field''' has increased because we have set the '''padding''' space to '''10 pixels.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Using '''CSS color '''property we can set colors to the forms, as well.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Type:&lt;br /&gt;
&lt;br /&gt;
background-color: lightcyan;&lt;br /&gt;
&lt;br /&gt;
color: blue;&lt;br /&gt;
|  | I will set the '''background color '''to''' light cyan '''and the '''color '''of the text to''' blue.'''&lt;br /&gt;
&lt;br /&gt;
Inside the''' input text tag''', next to '''padding''' property, type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Background color''' is set''' '''to''' light cyan.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Type: Spoken&lt;br /&gt;
|  | Now type some text in the''' input field '''for testing purposes.&lt;br /&gt;
&lt;br /&gt;
We can see the''' color '''of the text is''' blue.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Focus&lt;br /&gt;
|  | Next, '''Focus selector '''is used to '''style''' the '''input field '''when the '''element '''is focused.&lt;br /&gt;
&lt;br /&gt;
Let us try this. &lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Type:&lt;br /&gt;
&lt;br /&gt;
input[type=text]:focus {background-color: lightgreen;}&lt;br /&gt;
|  | I will set the '''background color '''to''' green '''when the '''input text box''' is focused.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next to the''' input text tag''', type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now click on the '''input field''', and see the '''background''' '''color''' changes to '''green'''.&lt;br /&gt;
&lt;br /&gt;
Now click anywhere outside the''' input field.'''&lt;br /&gt;
&lt;br /&gt;
The '''background color''' of the '''input''' '''textbox''' changes to its original color, '''light cyan.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Image&lt;br /&gt;
|  | &lt;br /&gt;
* '''background-image '''property is used to set an '''image''' inside the '''input field'''.&lt;br /&gt;
* Along with this, we can use '''background-position '''and''' background-repeat''' property&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] &lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
background-image:url(&amp;quot;index.png&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
background-repeat: no-repeat;&lt;br /&gt;
|  | I will set a '''background image''' with '''no repeat '''property.&lt;br /&gt;
&lt;br /&gt;
Inside the''' input text tag''', next to '''color''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: &amp;quot;index.png&amp;quot;&lt;br /&gt;
|  | This image is available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and keep it in the folder where you have saved your code files.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Our selected '''background image''' is set in the '''input field.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | We see that the text overlaps the '''image'''.&lt;br /&gt;
&lt;br /&gt;
To solve this problem, we will use '''text-indent''' property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] &lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
text-indent: 50px;&lt;br /&gt;
|  | I will set the '''text indentation '''to''' 50 pixels.'''&lt;br /&gt;
&lt;br /&gt;
Next to the''' background-repeat '''property, type the code as shown.&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] Highlight the output&lt;br /&gt;
&lt;br /&gt;
Type: Spoken&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
We can see that text does not overlap the '''image'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Animation&lt;br /&gt;
|  | &lt;br /&gt;
* '''Animation''' can be done in '''forms''' using '''transition''' property.&lt;br /&gt;
* '''Transition''' property is used to change the property values over a given duration.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Type:&lt;br /&gt;
&lt;br /&gt;
transition: width 0.2s ease-in-out;&lt;br /&gt;
|  | Inside the''' input text tag''', next to the '''text indent '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Highlight&lt;br /&gt;
&lt;br /&gt;
transition: width 0.2s;&lt;br /&gt;
|  | Here the '''transition '''property is set for '''width '''with a duration of '''0'''.'''2 seconds'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Style.css] Type:&lt;br /&gt;
&lt;br /&gt;
width: 100%;&lt;br /&gt;
|  | Inside the '''input focus tag''', next to the '''background color '''property,&lt;br /&gt;
&lt;br /&gt;
Type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now click on the '''input field'''.&lt;br /&gt;
&lt;br /&gt;
The '''width''' of the '''input text box''' is scaled to '''100%''' of the '''web page'''.&lt;br /&gt;
&lt;br /&gt;
Now click anywhere outside the '''input field''', &lt;br /&gt;
&lt;br /&gt;
The '''width''' of the '''input textbox is '''scaled back to its previous size.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css '''folder&lt;br /&gt;
|  | Switch to the '''my-css '''folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to the files &lt;br /&gt;
&lt;br /&gt;
'''MyForm.html'''&lt;br /&gt;
&lt;br /&gt;
'''formstyle.css'''&lt;br /&gt;
&lt;br /&gt;
In the file browser&lt;br /&gt;
|  | Likewise I have formatted some more '''form''' attributes in the file '''MyForm.html'''.&lt;br /&gt;
&lt;br /&gt;
I have added some '''CSS''' to '''Style''' the '''form''' in the file '''formstyle.css'''.&lt;br /&gt;
&lt;br /&gt;
This file is available in the '''Code files''' link.&lt;br /&gt;
&lt;br /&gt;
Let us look at them.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''MyForm.html''']&lt;br /&gt;
&lt;br /&gt;
Highlight the '''div''' tags&lt;br /&gt;
|  | First we will see the '''HTML code'''.&lt;br /&gt;
&lt;br /&gt;
Open this file in any '''text editor'''&lt;br /&gt;
&lt;br /&gt;
Using the '''div tag''', I have formatted the '''form''' for better visibility.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''MyForm.html'''] Highlight &lt;br /&gt;
&lt;br /&gt;
class=”column1”&lt;br /&gt;
&lt;br /&gt;
class=”column2”&lt;br /&gt;
&lt;br /&gt;
class=”column3”&lt;br /&gt;
|  | Inside the '''div tag''', I have declared the '''CSS''' '''class''' named '''column1, column2 '''and '''column3.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''MyForm.html''']&lt;br /&gt;
&lt;br /&gt;
Highlight '''Select''' section&lt;br /&gt;
|  | Then I have included the '''select menu''' to select the '''country'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''MyForm.html''']&lt;br /&gt;
&lt;br /&gt;
Highlight '''Text''' area&lt;br /&gt;
|  | I have also included a '''text area''' to get the information about the '''user'''.&lt;br /&gt;
&lt;br /&gt;
It is used to get a multi-line text input from the '''user'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''formstyle.css''']&lt;br /&gt;
|  | Now we will have a look at the '''CSS''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open formstyle.css in gedit&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Open the file '''formstyle.css''' in any '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''formstyle.css'''] Highlight&lt;br /&gt;
&lt;br /&gt;
'''column''' '''1''', '''column 2, column 3''' properties&lt;br /&gt;
|  | Here I have defined all the classes '''column1,''' '''column2 '''and '''column3.'''&lt;br /&gt;
&lt;br /&gt;
Then based on my requirement I have set the '''float''', '''width''' and '''top''' '''margin''' values.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''formstyle.css'''] &lt;br /&gt;
&lt;br /&gt;
Highlight: '''CSS''' property for '''label'''&lt;br /&gt;
|  | For the '''label''' property, I have set the '''font''' '''weight''' to '''bold''' and '''padding''' to '''8 pixels.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''formstyle.css'''] &lt;br /&gt;
&lt;br /&gt;
Highlight: '''CSS''' property for '''Select''' menu&lt;br /&gt;
|  | For the '''Select''' menu, I have set some properties.&lt;br /&gt;
&lt;br /&gt;
Like '''width, padding, border, border-radius, background-color '''&amp;amp;''' color '''property'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''formstyle.css'''] Highlight:&lt;br /&gt;
&lt;br /&gt;
'''CSS''' property for '''input text box ''', '''textarea &amp;amp;''' '''Button'''&lt;br /&gt;
|  | Lastly I have also set some property for the '''input text box ''', '''textarea''' and '''button'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''MyForm.html''' in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''MyForm.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Point to the '''textarea''' boundary&lt;br /&gt;
|  | Let us resize the text area.&lt;br /&gt;
&lt;br /&gt;
Place the mouse pointer at the bottom right corner of the textarea and drag.&lt;br /&gt;
&lt;br /&gt;
To stop this resizing, we use '''resize '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to formstyle.css&lt;br /&gt;
|  | Switch to the '''formstyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - '''formstyle.css]'''&lt;br /&gt;
&lt;br /&gt;
Type: resize: none;&lt;br /&gt;
|  | Inside the '''textarea tag,''' next to '''color '''property, type the code as shown.&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] Highlight the output&lt;br /&gt;
|  | Observe that we cannot resize the '''textarea '''anymore.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the page&lt;br /&gt;
|  | Now resize the browser width to '''600px '''or smaller.&lt;br /&gt;
&lt;br /&gt;
We see that alignment of this form has not changed. &lt;br /&gt;
&lt;br /&gt;
Note that, this representation of the '''form''' is not '''user friendly''' for small screen '''users'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | So I will make it '''user friendly''' for small screen '''devices'''.&lt;br /&gt;
&lt;br /&gt;
For this, I will create a '''responsive form''' using the '''Media rule.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Responsive Forms&lt;br /&gt;
|  | &lt;br /&gt;
* Using '''responsive''' '''forms''' we can make our '''form''' compatible for all screen sizes.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Media rule&lt;br /&gt;
|  | &lt;br /&gt;
* '''Media rule''' is used to set some '''CSS''' properties if a certain condition is true.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Style.css&lt;br /&gt;
|  | Switch to the '''Style.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit '''formstyle.css]'''&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
@media screen and (max-width: 600px) {&lt;br /&gt;
&lt;br /&gt;
.column1, .column2{&lt;br /&gt;
&lt;br /&gt;
width: 100%;} }&lt;br /&gt;
|  | Next to the '''input button tag''', type the code as shown.&lt;br /&gt;
&lt;br /&gt;
Here I have used '''media''' '''rule'''.&lt;br /&gt;
&lt;br /&gt;
It sets the '''label, input text''', '''select menu, textarea '''and '''input button '''to''' 100% width'''&lt;br /&gt;
&lt;br /&gt;
This happens when the '''width''' of the '''browser window''' is '''600px '''or smaller.&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 the output&lt;br /&gt;
|  | The '''label, input text''', '''select menu, textarea '''and '''input button '''stack on top of each other.&lt;br /&gt;
&lt;br /&gt;
This is because the '''width '''of all the '''elements '''is now set to '''100%'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* Styling '''Forms '''in''' CSS '''and&lt;br /&gt;
* Customise the '''input fields''' as per our requirements&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Create a file '''loginpage.html'''.&lt;br /&gt;
* Obtain the following details from the user&lt;br /&gt;
** Email Address&lt;br /&gt;
** Password&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Add a '''select''' '''menu''' to select the '''gender'''.&lt;br /&gt;
* Add a '''button''' as '''Login'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Create a file '''webformstyles.css.'''&lt;br /&gt;
* Style all the '''form elements'''.&lt;br /&gt;
* Link the '''webformstyles.css''' file to '''loginpage.html''' file.&lt;br /&gt;
* Observe the output&lt;br /&gt;
&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;
|  | 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;
|  | Slide: Forums&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C3/Advanced-Table-Design-in-CSS/English</id>
		<title>CSS/C3/Advanced-Table-Design-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C3/Advanced-Table-Design-in-CSS/English"/>
				<updated>2020-11-11T13:55:56Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Advanced Table Design in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganap...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Advanced Table Design in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Table, CSS Table Decoration, CSS Table Horizontal Border Divider, CSS Table Hover Color, Table Zebra Stripes, CSS Table Column Decoration, CSS Table Image, CSS Table Layout, CSS Table Responsive&lt;br /&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 “'''Advanced Table Design in CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn about:&lt;br /&gt;
&lt;br /&gt;
* Some''' advanced Table designs''' in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Table&lt;br /&gt;
|  | &lt;br /&gt;
* Using '''CSS''' we can design '''tables '''in many ways.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Table&lt;br /&gt;
&lt;br /&gt;
'''Horizontal Border Divider'''&lt;br /&gt;
&lt;br /&gt;
'''Hover Color'''&lt;br /&gt;
&lt;br /&gt;
'''Zebra Stripes'''&lt;br /&gt;
&lt;br /&gt;
'''Column Decoration'''&lt;br /&gt;
&lt;br /&gt;
'''Setting Background Image'''&lt;br /&gt;
&lt;br /&gt;
'''Table Layout'''&lt;br /&gt;
&lt;br /&gt;
'''Responsive Table'''&lt;br /&gt;
|  | These are the different ways to design '''tables.'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | '''Border''' property is used to set and '''style''' the '''borders''' for the '''table.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to mystyle.css in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''mystyle.css'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Now open the file '''mystyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | First, I will remove the previously set '''border '''style for the '''table.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Delete:&lt;br /&gt;
&lt;br /&gt;
table, th, td { border: 2px solid black;}&lt;br /&gt;
|  | Delete the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
th, td {&lt;br /&gt;
&lt;br /&gt;
border-bottom: 2px solid black;}&lt;br /&gt;
|  | Now I will set a '''border''' divider for the''' heading '''and '''standard cell.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next to the '''caption tag, '''type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
border-bottom: 2px solid black;&lt;br /&gt;
|  | We have used '''border-bottom''' property.&lt;br /&gt;
&lt;br /&gt;
It sets the '''horizontal border divider''' with size '''2 pixels''', style '''solid '''and color '''black'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a web browser.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
We see '''horizontal border dividers''' are added after the '''heading '''and each '''standard cell.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
&lt;br /&gt;
|  | Let’s decorate the '''table '''some more.&lt;br /&gt;
&lt;br /&gt;
Let’s set the '''background color '''of a '''row '''to a particular '''color''' on hovering the mouse.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
tr:hover {background-color: ivory;}&lt;br /&gt;
|  | Whenever the '''user''' hovers the mouse over any row, '''background color''' will be set to '''ivory.'''&lt;br /&gt;
&lt;br /&gt;
Next to the '''th,td tag, '''type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
tr:hover {background-color:ivory;}&lt;br /&gt;
|  | I have defined the''' hover selector '''for''' table row''' to set the '''background 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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now move the '''mouse '''over any '''row '''of the '''table'''.&lt;br /&gt;
&lt;br /&gt;
'''Background color '''of the''' row '''changes to''' ivory'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Delete:&lt;br /&gt;
&lt;br /&gt;
tr:hover {background-color: ivory;}&lt;br /&gt;
&lt;br /&gt;
Ctrl+S&lt;br /&gt;
|  | For the next '''designing style''', delete this code and save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Now I will decorate the '''table '''by setting an '''image '''as a '''background '''for the '''table'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
background-image:url(&amp;quot;design.png&amp;quot;);&lt;br /&gt;
|  | Inside the '''table tag''', next to the '''width '''property''', '''type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
design.png&lt;br /&gt;
|  | This image is available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and keep it in the same folder where you have saved your code files.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now a new '''background''' '''image '''is set for the '''table.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Delete:&lt;br /&gt;
&lt;br /&gt;
background-image:url(&amp;quot;design.png&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
Ctrl+S&lt;br /&gt;
|  | Once again for the next '''designing style''', delete this code and save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | Now I will decorate the '''table''' with '''zebra''' '''stripes''' to make it more attractive.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
tr:nth-child(odd){&lt;br /&gt;
&lt;br /&gt;
background-color: lightcyan;}&lt;br /&gt;
|  | I will set the''' background color '''to''' light cyan '''for every '''odd row'''.&lt;br /&gt;
&lt;br /&gt;
Next to the '''th, td tag '''type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
tr:nth-child(odd)&lt;br /&gt;
|  | By defining the '''selector''' for '''table rows''' like this, it sets the '''CSS''' property for that specific '''row'''. &lt;br /&gt;
&lt;br /&gt;
If you need to style the '''odd rows''', enter the value as '''odd'''.&lt;br /&gt;
&lt;br /&gt;
For '''even rows''', enter the value as '''even.'''&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''background''' '''color''' of the '''odd rows '''are set''' '''to''' light cyan.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Delete:&lt;br /&gt;
&lt;br /&gt;
tr:nth-child(odd) &lt;br /&gt;
&lt;br /&gt;
{background-color: lightcyan;}&lt;br /&gt;
&lt;br /&gt;
Ctrl+S&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
For the next '''designing style''', delete this code&lt;br /&gt;
&lt;br /&gt;
and save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | Now I will decorate the '''table,''' column-wise.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
td:nth-child(1){background-color: lightpink;}&lt;br /&gt;
|  | I will set the''' background color '''to''' light cyan '''for the first '''column'''.&lt;br /&gt;
&lt;br /&gt;
Next to the '''th, td tag, '''type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight&lt;br /&gt;
&lt;br /&gt;
td:nth-child(1)&lt;br /&gt;
&lt;br /&gt;
|  | Here we have defined the''' selector '''for '''table data.'''&lt;br /&gt;
&lt;br /&gt;
This will set the '''CSS''' property for that specific '''column'''. &lt;br /&gt;
&lt;br /&gt;
Here, I have set it to value 1 to style the first column.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''background''' '''color''' of the first '''column '''is set''' '''to''' light pink.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Layout&lt;br /&gt;
|  | &lt;br /&gt;
* '''Tables '''can expand and contract according to the text in the '''table'''.&lt;br /&gt;
* '''Layout''' property controls the expansion and contraction of the '''tables'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Layout Values&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''auto(default)''': '''column width''' is set automatically to fit the text.&lt;br /&gt;
* '''fixed''': '''width''' is fixed and it does not change automatically to fit the text.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | First, let us make some changes to the text of the '''table.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html] Update:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; GreenApple &amp;amp; YellowApple &amp;lt;/td&amp;gt;&lt;br /&gt;
|  | Inside the''' table tag, '''in the fifth row and first column, update the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Width''' of the first '''column''' has increased to adjust the text.&lt;br /&gt;
&lt;br /&gt;
As we haven’t set the '''layout '''property, the default '''auto''' value is considered.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
table-layout: fixed;&lt;br /&gt;
|  | Now I will set the '''layout''' to '''fixed'''.&lt;br /&gt;
&lt;br /&gt;
Inside the''' table tag, '''next to''' width '''property, type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the text is not affecting the total '''width '''of the '''table.'''&lt;br /&gt;
&lt;br /&gt;
Here the '''table width''' is fixed.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Let’s understand how to create a '''responsive table.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Responsive&lt;br /&gt;
|  | &lt;br /&gt;
* '''Responsive''' property helps to display the '''tables''' smoothly on any screen size.&lt;br /&gt;
* It enables '''horizontal scroll bars''' to display full content of the '''table''' if required.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css '''folder&lt;br /&gt;
|  | Switch to the '''my-css '''folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | To understand this property I have created a '''table.html''' web page &lt;br /&gt;
&lt;br /&gt;
And '''tablestyle.css''' stylesheet.&lt;br /&gt;
&lt;br /&gt;
The same are available in the '''Code files''' link for practice.&lt;br /&gt;
&lt;br /&gt;
Please download and save it.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open table.html in gedit&lt;br /&gt;
|  | Open the file '''table.html''' in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - table.html] &lt;br /&gt;
&lt;br /&gt;
Highlight table&lt;br /&gt;
|  | In this '''html '''file I have created a '''table''' and linked it to''' tablestyle.css '''stylesheet.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css '''folder&lt;br /&gt;
|  | Switch to the '''my-css '''folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open tablestyle.css in gedit&lt;br /&gt;
|  | Now open the file '''tablestyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - tablestyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
body{background-color: lightpink;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
table,th,td {&lt;br /&gt;
&lt;br /&gt;
border: 2px solid black;&lt;br /&gt;
&lt;br /&gt;
border-collapse: collapse;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|  | I have already set the '''background color''' for this page to''' light pink.'''&lt;br /&gt;
&lt;br /&gt;
And''' '''some '''border''' properties for the table.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open table.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''table.html''' in a web browser.&lt;br /&gt;
|-&lt;br /&gt;
|  | [browser]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The displayed '''table''' is very wide in size.&lt;br /&gt;
&lt;br /&gt;
So we have to use the horizontal scroll bar of the '''browser''' to see the full content.&lt;br /&gt;
&lt;br /&gt;
When we scroll to see the '''table'''’s''' '''content, the entire page gets scrolled.&lt;br /&gt;
&lt;br /&gt;
To avoid this, we will add the '''responsive '''property for the '''table'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to tablestyle.css&lt;br /&gt;
|  | Switch to the '''tablestyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - tablestyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
.responsive-table{overflow-x: auto;}&lt;br /&gt;
|  | Here I will define a '''class responsive-table.'''&lt;br /&gt;
&lt;br /&gt;
Next to the '''table,th,td tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - tablestyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
overflow-x: auto;&lt;br /&gt;
|  | This property adds a '''scroll bar''' automatically if the content overflows at the left or right edges.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to table.html in gedit&lt;br /&gt;
|  | Switch to the '''table.html''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - table.html] Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;responsive-table&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|  | I will wrap the '''table''' inside the '''div tag''' with '''class responsive-table.'''&lt;br /&gt;
&lt;br /&gt;
Type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
A '''horizontal scroll bar''' is added only to the table to see the full content.&lt;br /&gt;
&lt;br /&gt;
If we scroll, we observe that only the '''table''' is getting scrolled and not the entire page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | These are some of the ways in which we can make the '''table''' attractive and responsive.&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* Some''' advanced Table designs''' in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Set the '''Zebra style '''for the '''table '''with '''lightcyan color '''for the '''even '''rows.&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file.&lt;br /&gt;
* Observe the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C3/Table-in-CSS/English</id>
		<title>CSS/C3/Table-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C3/Table-in-CSS/English"/>
				<updated>2020-11-11T13:28:31Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Table in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keyword...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Table in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Table, CSS Table Border, CSS Table Width, CSS Table CSS Height, CSS Table Alignment, CSS Table Padding, CSS Table Color, CSS Table Caption&lt;br /&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 “'''Table in CSS'''”.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''Table '''properties in''' CSS '''and&lt;br /&gt;
* Customising the width, height, padding, colour and alignment of '''cells''' in the '''table'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Table&lt;br /&gt;
|  | &lt;br /&gt;
* Using '''CSS''' we can style and format the '''tables'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Table&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 22em;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Border''' || '''Width'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Height || '''Alignment'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Padding'''|| '''Color'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Caption''' &lt;br /&gt;
|}&lt;br /&gt;
|  | These are the '''CSS table '''properties.&lt;br /&gt;
&lt;br /&gt;
Let us understand these through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | First, we will add a '''table''' to our '''web page.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Today’s Rate &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;th&amp;gt; Item &amp;lt;/th&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;th&amp;gt; Price &amp;lt;/th&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; Onion&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; 20 Rs/Kg &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; Potato &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; 15 Rs/kg &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; Tomato &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; 22 Rs/kg &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; Apple &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; 100 Rs/kg &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; Banana &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; 15 Rs/kg &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; Orange &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt; 50 Rs/kg &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;caption&amp;gt; Table 1 &amp;lt;/caption&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|  | Inside the '''body tag''', next to the '''ol tag''', type the code as shown.&lt;br /&gt;
&lt;br /&gt;
I have added a '''table''' with '''two columns'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
A '''table '''with two''' columns '''and without any '''borders''' is added to the end of the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | Now let us apply some '''CSS''' properties to the '''table'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | '''Border''' property is used to set and style the '''borders''' for the '''table.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css '''folder&lt;br /&gt;
|  | Switch to the '''my-css '''folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Now open the file '''mystyle.css''' in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
table {border: 2px solid black;}&lt;br /&gt;
|  | Now I will set a '''border''' for the''' table.'''&lt;br /&gt;
&lt;br /&gt;
Next to the '''ul tag, '''type code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
border: 2px solid black;&lt;br /&gt;
|  | Here I have set the '''border width''' to '''2 pixels, border''' '''style''' to '''solid, '''and '''border color '''to''' black.'''&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
We can see a '''border''' around the '''table.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | But I want '''borders '''for the '''headings '''and '''standard''' '''cells '''as well.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
table, th, td {border: 2px solid black;}&lt;br /&gt;
|  | Update the '''CSS''' '''table''' property as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
table, th, td&lt;br /&gt;
|  | Using '''th''' and '''td''', we can set the '''border''' for '''heading''' and '''standard''' '''cells.'''&lt;br /&gt;
&lt;br /&gt;
In this''' '''case I have set the common '''border''' style for all of these.&lt;br /&gt;
&lt;br /&gt;
To set different properties for the individual elements, write them separately.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Since I have set the '''border''' for the '''table''' and '''cells''', the resultant '''table''' has 2 '''borders'''.&lt;br /&gt;
&lt;br /&gt;
To solve this, we will use '''border-collapse''' property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
table {&lt;br /&gt;
&lt;br /&gt;
border-collapse: collapse;}&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Next to the current '''table,th,td''' '''tag''' type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''table '''and''' '''the '''cells '''have a single''' border '''around them.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Using '''CSS''' we can set a fixed '''width '''and''' height '''for the '''table'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
width: 20%;&lt;br /&gt;
|  | Now I will set the '''width''' of the '''table''' to '''20%.''' &lt;br /&gt;
&lt;br /&gt;
Inside the '''table tag''', next to the '''border-collapse '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
td {height: 40px;}&lt;br /&gt;
|  | Next I will set the '''height '''of the '''standard''' '''cells''' to '''40 pixels.''' &lt;br /&gt;
&lt;br /&gt;
Next to the '''table tag''', type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''width''' of the '''table''' is set to '''20%''' of the page width.&lt;br /&gt;
&lt;br /&gt;
And the '''height''' of the '''standard cells''' is set to '''40 pixels.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:Alignment&lt;br /&gt;
|  | Text inside the '''table '''can be aligned '''horizontally '''or''' vertically.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Horizontal-Alignment&lt;br /&gt;
|  | In''' horizontal alignment:'''* The text''' '''inside the '''table '''can be aligned either to the''' left, right, center '''or''' justify.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Horizontal-Alignment&lt;br /&gt;
&lt;br /&gt;
[Image = horizontal-left.png]&lt;br /&gt;
|  | By default, the text of the '''standard cell '''is''' left-aligned.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Horizontal-Alignment&lt;br /&gt;
&lt;br /&gt;
[Image = horizontal-center.png]&lt;br /&gt;
|  | The text of the '''heading '''is''' center-aligned.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Vertical-Alignment&lt;br /&gt;
|  | In''' vertical alignment:'''* The text''' '''inside the '''table '''can be aligned either to the''' top, bottom, '''or''' middle.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Vertical-Alignment&lt;br /&gt;
&lt;br /&gt;
[Image = vertical.png]&lt;br /&gt;
|  | By default''', '''the text of the''' standard cell '''and '''heading '''is set to the '''middle.'''&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
&lt;br /&gt;
vertical-align: bottom;&lt;br /&gt;
|  | Inside''' td tag, '''next to the''' height '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: &lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
&lt;br /&gt;
vertical-align: bottom;&lt;br /&gt;
|  | Here I have set the '''horizontal alignment '''of the text to '''center'''&lt;br /&gt;
&lt;br /&gt;
And '''vertical alignment''' to '''bottom'''.&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;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the text of the '''standard cell '''is '''horizontally aligned '''to the '''center.'''&lt;br /&gt;
&lt;br /&gt;
And '''vertically aligned '''to the '''bottom.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Padding&lt;br /&gt;
&lt;br /&gt;
[Image = padding.png]&lt;br /&gt;
|  | &lt;br /&gt;
* Apart from '''alignment''' property, '''padding '''property is used to set the position of the text&lt;br /&gt;
* '''Padding '''property controls the space between the '''border''' and '''text''' inside the '''table.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Padding&lt;br /&gt;
|  | We can customize the '''padding '''property in all the four directions: '''top, right, bottom '''&amp;amp;''' left.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
th {padding: 20px 10px 10px 20px;}&lt;br /&gt;
|  | Now I will set the '''padding''' space to '''20 pixels''' for '''top '''and '''left'''.&lt;br /&gt;
&lt;br /&gt;
Then '''10''' '''pixels''' for '''right''' and '''bottom.'''&lt;br /&gt;
&lt;br /&gt;
Next to the''' td tag, '''type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Padding''' is added to the '''header''' '''cell''' in the '''table'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only Narration&lt;br /&gt;
|  | Using '''CSS color '''property we can also set the color for the '''tables'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
color: blue;&lt;br /&gt;
&lt;br /&gt;
background-color: lightblue;&lt;br /&gt;
|  | Inside the '''th tag''', next to the''' padding '''property''', '''type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
color: blue;&lt;br /&gt;
&lt;br /&gt;
background-color:lightblue;&lt;br /&gt;
|  | For the '''header''' '''cell''' , I have set the '''text''' '''color''' to '''blue '''and''' background''' '''color''' to '''light''' '''blue.'''&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Background''' and '''text color''' have been set for the header cell.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Caption&lt;br /&gt;
|  | &lt;br /&gt;
* Using '''CSS''', we can set the position of the '''caption '''for the '''table.'''&lt;br /&gt;
* '''Caption '''can be placed at the '''top '''or''' bottom '''of the''' table.'''&lt;br /&gt;
* By default, the position of the''' caption''' is set to '''top.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Point to the caption&lt;br /&gt;
|  | Notice that in the output, we can see the '''caption '''placed at the '''top '''of the '''table'''.&lt;br /&gt;
&lt;br /&gt;
Let’s change its position to '''bottom'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
caption {&lt;br /&gt;
&lt;br /&gt;
caption-side: bottom;}&lt;br /&gt;
|  | Next to the''' th tag, '''type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now the '''caption '''is placed at the '''bottom''' of the '''table'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | We will learn about more '''styling''' options for '''tables''' in the upcoming tutorials.&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Table '''properties in''' CSS '''and&lt;br /&gt;
* Customising the width, height, padding, colour and alignment of '''cells''' in the '''table'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''webpage.html''' which you have created earlier.&lt;br /&gt;
* Add a '''table''' with a''' caption'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Set following properties for '''table''':&lt;br /&gt;
** '''Solid blue 4px''' '''border '''with''' border-collapse '''property&lt;br /&gt;
** '''Width '''to '''30%.'''&lt;br /&gt;
** '''Height '''of the '''heading '''to''' 30px'''.&lt;br /&gt;
** '''Background color '''of''' '''the''' heading '''to '''pink.'''&lt;br /&gt;
** '''Caption '''at the''' bottom.'''&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C3/List-in-CSS/English</id>
		<title>CSS/C3/List-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C3/List-in-CSS/English"/>
				<updated>2020-11-11T13:06:11Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''List in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keywords...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''List in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS List, List Type, List Color, List Position, List Image&lt;br /&gt;
&lt;br /&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 “'''List in CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''List '''properties in''' CSS '''of '''ordered '''and '''unordered lists'''&lt;br /&gt;
* Customising the '''list markers'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor '''and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: List&lt;br /&gt;
|  | &lt;br /&gt;
* Using '''CSS''' we can style and format '''lists'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: List&lt;br /&gt;
|  | '''CSS list '''properties are as follows:&lt;br /&gt;
&lt;br /&gt;
* '''Type'''&lt;br /&gt;
* '''Color'''&lt;br /&gt;
* '''Position'''&lt;br /&gt;
* '''Image'''&lt;br /&gt;
* '''Shorthand'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | First, we will add two different '''lists '''to our '''webpage'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h2&amp;gt; Vegetables &amp;lt;/h2&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt; Onion &amp;lt;br&amp;gt; 1kg &amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt; Potato &amp;lt;br&amp;gt; 1kg &amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt; Tomato &amp;lt;br&amp;gt; 1kg &amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;h2&amp;gt; Fruits &amp;lt;/h2&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;ol&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt; Apple &amp;lt;br&amp;gt; 1kg &amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt; Banana &amp;lt;br&amp;gt; 1kg &amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt; Orange &amp;lt;br&amp;gt; 1kg &amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/ol&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
At the end of the '''body tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Switch back to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''lists '''are added to the page. &lt;br /&gt;
&lt;br /&gt;
The first '''list '''is an '''unordered list.'''&lt;br /&gt;
&lt;br /&gt;
It has the default '''marker '''namely the '''round bullets'''.&lt;br /&gt;
&lt;br /&gt;
While the second one,''' '''is an '''ordered list.'''&lt;br /&gt;
&lt;br /&gt;
It has the default '''marker, numerals.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | Let us apply '''CSS list''' properties to these '''lists'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Type&lt;br /&gt;
|  | &lt;br /&gt;
* '''Type''' property is used to set the shape or style of the '''marker'''.&lt;br /&gt;
* For an '''unordered list '''the''' '''shape of the '''marker''' can be '''circle, square,''' etc.&lt;br /&gt;
* For an '''ordered list '''the style of the '''marker''' can be '''decimals, lower-alpha,''' etc&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css '''folder&lt;br /&gt;
|  | Switch to the “'''my-css'''” folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Now open the file '''mystyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type-&lt;br /&gt;
&lt;br /&gt;
ul {list-style-type: square;}&lt;br /&gt;
&lt;br /&gt;
ol {list-style-type: lower-roman;}&lt;br /&gt;
|  | Next to the '''a:active tag, '''type code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight-&lt;br /&gt;
&lt;br /&gt;
ul {list-style-type: square;}&lt;br /&gt;
&lt;br /&gt;
ol {list-style-type: lower-roman;}&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Here I have set the''' marker '''shape for the '''unordered list '''to '''square.'''&lt;br /&gt;
&lt;br /&gt;
And''' lower-roman '''for the''' ordered list.'''&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;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
We can see that the '''marker''' of the '''unordered list '''is set to''' square.'''&lt;br /&gt;
&lt;br /&gt;
And the '''marker''', '''lower-roman''' is set''' '''for the''' ordered list.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only Narration&lt;br /&gt;
|  | Using '''CSS '''property, we can also set '''colors '''for the '''lists.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
ul {list-style-type: square;&lt;br /&gt;
&lt;br /&gt;
background-color: green;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ol {list-style-type: lower-roman;&lt;br /&gt;
&lt;br /&gt;
background-color: red;}&lt;br /&gt;
|  | Now I will set the '''background color '''for the '''lists '''to''' green''' and''' red.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next to '''a:active tag''', update the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''background''' '''color''' is set for both the''' lists, '''as per the specified colours.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | We can also set the '''background color''' for''' list items'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
ul li {background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
margin: 5px;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ol li {background-color: lightpink;&lt;br /&gt;
&lt;br /&gt;
margin: 5px;}&lt;br /&gt;
|  | Next to '''a:active tag, '''update the '''ul''' and '''ol tag styles''' as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
highlight: margin: 5px;&lt;br /&gt;
|  | Here I have also added the '''margin '''for better visibility.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the specified '''background''' '''color''' is set for the '''list items''' of both the''' lists.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Let’s move on to '''position '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Position&lt;br /&gt;
|  | &lt;br /&gt;
* '''Position''' property is used to set the position of the '''marker'''.&lt;br /&gt;
* It decides whether the''' marker''' should be placed inside or outside the''' list item'''.&lt;br /&gt;
* By default, the position of the '''marker''' is set to '''outside'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
ul{list-style-position:inside;}&lt;br /&gt;
|  | Now I will set the position for the '''unordered list''' marker, to '''inside.'''&lt;br /&gt;
&lt;br /&gt;
Next to the '''ol li tag''', type the code as shown.&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 the first list&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''markers''' of the '''unordered list''' are positioned inside the '''list.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the second list&lt;br /&gt;
|  | While the '''markers '''of the '''ordered list '''are positioned outside the '''list.'''&lt;br /&gt;
&lt;br /&gt;
This is because of its default property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | Using''' CSS '''we can also set''' Image''' as a '''marker '''for the''' list.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
list-style-image: url(&amp;quot;purplesquare.png&amp;quot;);&lt;br /&gt;
|  | Now inside the '''ul tag''', next to '''list-style-position''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
purplesquare.png&lt;br /&gt;
|  | '''purplesquare.png''' image is available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and keep it in the folder where you have saved your code files.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now the '''markers''' of the '''unordered list''' are set to the specified '''image.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: shorthand&lt;br /&gt;
|  | &lt;br /&gt;
* Using '''shorthand''', we can write the '''list '''properties in a single declaration.&lt;br /&gt;
* The order of the properties is: '''list-style-type, list-style-position, list-style-image.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: shorthand&lt;br /&gt;
|  | &lt;br /&gt;
* If any property is missing, then its default value will be considered.&lt;br /&gt;
* '''list-style-type '''value will be considered if '''list-style-image '''value is unavailable.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
ul {list-style: circle inside url(&amp;quot;purplesquare.png&amp;quot;);}&lt;br /&gt;
|  | Now I will set the '''list''' properties to the '''unordered list''' using the '''shorthand''' method.&lt;br /&gt;
&lt;br /&gt;
Next to the '''ol li tag, '''update the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Image''' as a '''marker '''does not fail to display.&lt;br /&gt;
&lt;br /&gt;
This is because the '''marker''' is set to '''image''', not to '''circle'''.&lt;br /&gt;
&lt;br /&gt;
And the''' list items''' are positioned inside.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | Now let us check what happens if the '''image '''fails to display.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
list-style: circle inside url(&amp;quot;img.png&amp;quot;);&lt;br /&gt;
|  | Inside '''ul tag''', change the name of the image to '''img.png '''instead of '''purplesquare.png'''&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;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Since the '''image '''failed to display, the '''marker '''is set to '''circle''', which is the default '''marker'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
ul {list-style: circle inside url(&amp;quot;purplesquare.png&amp;quot;);}&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
&lt;br /&gt;
I will set it with the correct '''image''' name.&lt;br /&gt;
&lt;br /&gt;
Next to the '''ol li tag, '''update the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
This is our required '''list'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''List '''properties in''' CSS '''of '''ordered '''and '''unordered lists'''&lt;br /&gt;
* Customising the '''list markers'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''webpage.html''' which you have created earlier.&lt;br /&gt;
* Add an '''unordered''' '''list '''with some''' list items'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Using '''shorthand''':&lt;br /&gt;
** Set the '''image''' '''purplesquare.png''' as a '''marker '''and &lt;br /&gt;
** Position it '''inside'''.&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C3/Link-in-CSS/English</id>
		<title>CSS/C3/Link-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C3/Link-in-CSS/English"/>
				<updated>2020-11-11T12:45:23Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Link in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keywords...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Link in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Link, Visited link''', '''Hover link''', '''Active link''', '''a:link, a:visited, a:hover, a:active&lt;br /&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 “'''Link in CSS'''” .&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn about:&lt;br /&gt;
&lt;br /&gt;
* Styling '''links''' in''' CSS '''by applying different properties&lt;br /&gt;
* Customising '''links''' to match their individual '''website''' designs.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor''' and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: System Requirements&lt;br /&gt;
|  | You will also need '''internet connectivity''' to go to the external websites.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Link&lt;br /&gt;
|  | &lt;br /&gt;
* '''Links '''allow users to navigate through the '''website''' from '''page''' to '''page'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration:&lt;br /&gt;
|  | Let’s add a '''link''' to a '''page'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;[https://spoken-tutorial.org/ https://spoken-tutorial.org]&amp;quot; target=”_blank”&amp;gt; Spoken Tutorial &amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', next to the '''div closing tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;[https://spoken-tutorial.org/ https://spoken-tutorial.org]&amp;quot; target=”_blank”&amp;gt; Spoken Tutorial &amp;lt;/a&amp;gt;&lt;br /&gt;
|  | I have created a '''link''' for the '''Spoken Tutorial website homepage.'''&lt;br /&gt;
&lt;br /&gt;
Here, '''target=&amp;quot;_blank&amp;quot;''' is used, so that the '''link''' will be opened in a new '''browser tab'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''link '''for the''' Spoken Tutorial webpage '''is added to this '''page'''. &lt;br /&gt;
&lt;br /&gt;
The color of the '''link''' is by default set to '''blue''' and it is '''underlined'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Click on the link&lt;br /&gt;
&lt;br /&gt;
Point to the link&lt;br /&gt;
&lt;br /&gt;
Point to the web page&lt;br /&gt;
|  | Click on the '''link'''. &lt;br /&gt;
&lt;br /&gt;
While clicking, the color of the '''link''' appears in '''red'''.&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial web page''' opens.&lt;br /&gt;
&lt;br /&gt;
Since, '''target=&amp;quot;_blank&amp;quot;''' was used, the '''link''' opened in a new '''tab.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Switch to previous page&lt;br /&gt;
&lt;br /&gt;
Point to the link&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Come back to the previous '''page'''.&lt;br /&gt;
&lt;br /&gt;
Observe the color of the '''link'''.&lt;br /&gt;
&lt;br /&gt;
Now it has changed to '''purple'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Link&lt;br /&gt;
|  | By default: &lt;br /&gt;
* All '''links''' are underlined&lt;br /&gt;
* The color of the &lt;br /&gt;
** unvisited '''link''' is set to '''blue'''&lt;br /&gt;
** active '''link''' is set to '''red'''&lt;br /&gt;
** visited '''link''' is set to '''purple'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | '''Slide: Link States'''&lt;br /&gt;
|  | '''Links''' can be in any of the four possible states.&lt;br /&gt;
&lt;br /&gt;
* '''link''': It is a normal and unvisited '''link'''&lt;br /&gt;
* '''visited''': '''link '''which is already visited&lt;br /&gt;
* '''hover''': '''link '''when we place the mouse over it&lt;br /&gt;
* '''active''': '''link '''which is just clicked&lt;br /&gt;
&lt;br /&gt;
The order in which '''link '''states have to be written is: '''link, visited, hover, active.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | '''Slide: Link'''&lt;br /&gt;
|  | Using '''CSS property '''we can style the '''links''' in many ways, to make them stand out.&lt;br /&gt;
&lt;br /&gt;
We can change the values of any of the following to match our web design:&lt;br /&gt;
&lt;br /&gt;
* '''Color'''&lt;br /&gt;
* '''Background'''&lt;br /&gt;
* '''Text Decoration'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css '''folder&lt;br /&gt;
|  | Switch to the “'''my-css'''” folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Now open the file '''mystyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type-&lt;br /&gt;
&lt;br /&gt;
a:link {color: black;}&lt;br /&gt;
&lt;br /&gt;
a:visited {color: red;}&lt;br /&gt;
&lt;br /&gt;
a:hover {color: green;}&lt;br /&gt;
&lt;br /&gt;
a:active {color: blue;}&lt;br /&gt;
|  | Now I will set '''color '''property for all the '''link''' states.&lt;br /&gt;
&lt;br /&gt;
Next to the '''img tag, '''type code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight-&lt;br /&gt;
&lt;br /&gt;
a:link {color: black;}&lt;br /&gt;
&lt;br /&gt;
a:visited {color: red;}&lt;br /&gt;
&lt;br /&gt;
a:hover {color: green;}&lt;br /&gt;
&lt;br /&gt;
a:active {color: blue;}&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
In this code, we are changing the default state colours.&lt;br /&gt;
&lt;br /&gt;
Normal and unvisited '''link''' is set to '''black'''.&lt;br /&gt;
&lt;br /&gt;
Visited '''link''' is set to '''red'''.&lt;br /&gt;
&lt;br /&gt;
Hover '''link''' is set to '''green'''.&lt;br /&gt;
&lt;br /&gt;
Active '''link''' is set to '''blue'''.&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;
Point to the link&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Color of the '''link''' is '''red '''&lt;br /&gt;
&lt;br /&gt;
This is because we have already visited this '''link '''in our previous example.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Point to the link&lt;br /&gt;
|  | Move the mouse pointer over the '''link'''.&lt;br /&gt;
&lt;br /&gt;
Notice that the color of the '''link '''has changed from '''red '''to '''green'''.&lt;br /&gt;
&lt;br /&gt;
This is because we have set the color '''green '''to the '''hover '''state.&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration:&lt;br /&gt;
|  | Let us now add two more '''links''' to the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html in gedit&lt;br /&gt;
|  | Switch to '''Mypage.html''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://forums.spoken-tutorial.org&amp;quot; target=”_blank”&amp;gt; Forum Spoken Tutorial &amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://www.google.com&amp;quot; target=”_blank”&amp;gt; Google &amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | At the end of the '''body tag''', type the code as shown.&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;
Point to the link&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The new '''links '''are added to the page. &lt;br /&gt;
&lt;br /&gt;
The color of these '''links''' is set to '''black.'''&lt;br /&gt;
&lt;br /&gt;
This is because the '''links '''are unvisited.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Click on the link&lt;br /&gt;
&lt;br /&gt;
Point to the link&lt;br /&gt;
&lt;br /&gt;
Point to the web page&lt;br /&gt;
|  | Click on the '''link - Forum Spoken Tutorial.'''&lt;br /&gt;
&lt;br /&gt;
While clicking, notice the color of the '''link''' changes to '''blue'''.&lt;br /&gt;
&lt;br /&gt;
'''Forum Spoken tutorial page''' opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Switch to previous page&lt;br /&gt;
&lt;br /&gt;
Point to the link&lt;br /&gt;
&lt;br /&gt;
|  | Come back to the previous page.&lt;br /&gt;
&lt;br /&gt;
Observe the color of the '''link - Forum Spoken Tutorial.'''&lt;br /&gt;
&lt;br /&gt;
Now the color of the '''link '''has changed to '''red.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration&lt;br /&gt;
|  | Generally '''links '''are present as '''menus''' in '''web pages'''.&lt;br /&gt;
&lt;br /&gt;
Usually the '''menus '''are not underlined.&lt;br /&gt;
&lt;br /&gt;
So we will use '''text decoration''' property to remove the '''underline'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
a:link {&lt;br /&gt;
&lt;br /&gt;
color: black;&lt;br /&gt;
&lt;br /&gt;
text-decoration: none;&lt;br /&gt;
&lt;br /&gt;
background-color: palegreen;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a:visited {&lt;br /&gt;
&lt;br /&gt;
color: red;&lt;br /&gt;
&lt;br /&gt;
background-color: lightcyan;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a:hover {&lt;br /&gt;
&lt;br /&gt;
color: green;&lt;br /&gt;
&lt;br /&gt;
text-decoration: underline;&lt;br /&gt;
&lt;br /&gt;
background-color: hotpink;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a:active {&lt;br /&gt;
&lt;br /&gt;
color: blue;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Next to the '''img tag, '''update the code as shown.&lt;br /&gt;
&lt;br /&gt;
To remove the underline from a '''link, '''we are using this '''text decoration''' property.&lt;br /&gt;
&lt;br /&gt;
Here, I am also changing the '''background color''' of the '''links'''.&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;
Point to the first two links&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''background color''' for the first two '''links '''is set to '''lightcyan'''.&lt;br /&gt;
&lt;br /&gt;
This is because they are '''visited''' '''links.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Point to the third link&lt;br /&gt;
|  | The '''background color''' for the third '''link '''is set to '''palegreen'''.&lt;br /&gt;
&lt;br /&gt;
This is because it is an '''unvisited''' '''link.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Point to the third link&lt;br /&gt;
|  | These '''links''' are not underlined.&lt;br /&gt;
&lt;br /&gt;
This is because the '''text decoration''' property for '''a:link''' '''state '''is set to '''none'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Point to the link&lt;br /&gt;
|  | When we move the mouse over the '''link''', it gets underlined.&lt;br /&gt;
&lt;br /&gt;
Also, the '''background color''' of the '''link '''changes to '''hot pink.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Point to the link&lt;br /&gt;
|  | When we click on the '''link''', the '''background color''' changes to '''light green.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | In this manner, we can style our '''links''' using '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary&lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* Styling '''links''' in''' CSS '''by applying different properties&lt;br /&gt;
* Customising '''links''' to match their individual '''website''' designs.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''webpage.html''' which you have created earlier.&lt;br /&gt;
* Add a '''link '''to''' https://forums.spoken-tutorial.org.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Set '''red color''' for the''' unvisited''' '''link.'''&lt;br /&gt;
* Set''' green color '''for''' '''the''' visited link'''.&lt;br /&gt;
* Remove '''underline''' from all the '''link''' states.&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forums&lt;br /&gt;
|  | Please post your timed queries on 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;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C3/Float-and-Overflow-in-CSS/English</id>
		<title>CSS/C3/Float-and-Overflow-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C3/Float-and-Overflow-in-CSS/English"/>
				<updated>2020-11-11T12:19:01Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Float and Overflow in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer: '''Madhuri Ganapath...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Float and Overflow in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer: '''Madhuri Ganapathi &lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Float, CSS Clear, CSS Overflow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 “'''Float and Overflow in CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial, we will learn about&lt;br /&gt;
&lt;br /&gt;
* '''Float''', '''Clear '''and '''Overflow '''properties of an '''element '''in''' CSS'''&lt;br /&gt;
* Use these properties to achieve the desired output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor''' and&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Float Property&lt;br /&gt;
|  | '''Float Property'''&lt;br /&gt;
* It''' '''is used to set the horizontal positioning of an '''element '''inside the parent '''block'''.&lt;br /&gt;
* It allows the '''text '''to wrap around an '''element.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Float Property Value&lt;br /&gt;
|  | The values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''left''': this positions the '''element''' to the '''left '''side of the parent '''block'''&lt;br /&gt;
* '''right''': this positions the '''element''' to the '''right '''side of the parent '''block'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Float Property Value&lt;br /&gt;
|  |&lt;br /&gt;
* '''none '''(default): does not position the '''element'''&lt;br /&gt;
* '''initial: '''sets the '''float''' property to its default value&lt;br /&gt;
* '''inherit''' : inherits the position of its parent '''element'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration:&lt;br /&gt;
|  | To observe the '''float''' property, let's add an image.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src= &amp;quot;veg.png&amp;quot;&amp;gt;&lt;br /&gt;
|  | Add the '''img tag''' in the''' div block.'''&lt;br /&gt;
&lt;br /&gt;
Between the '''div tag''' and '''p tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
veg.png&lt;br /&gt;
|  | '''veg.png''' image is available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and keep it in the folder where you have saved your code files.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css folder'''&lt;br /&gt;
|  | Switch to the “'''my-css'''” folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Now open the file '''mystyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type-&lt;br /&gt;
&lt;br /&gt;
img {&lt;br /&gt;
&lt;br /&gt;
width: 100px;&lt;br /&gt;
&lt;br /&gt;
height: 90px;}&lt;br /&gt;
|  | Let us set '''image '''properties '''width '''to 100''' '''pixels''' '''and''' height '''to 90 pixels'''.'''&lt;br /&gt;
&lt;br /&gt;
Next to the''' div tag, '''type the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''image '''is added in the '''div block.'''&lt;br /&gt;
&lt;br /&gt;
The '''text '''has floated outside the '''block''' due to its restricted size.&lt;br /&gt;
&lt;br /&gt;
To arrange the '''image '''and '''text '''inside the '''block''', we will use '''float '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
float: left;&lt;br /&gt;
|  | Now I will set the '''float property value '''to''' left, '''for the '''image'''.&lt;br /&gt;
&lt;br /&gt;
In the '''img tag''', next to the '''height''' property, type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''image''' is set to the left side and the '''text''' is wrapped around it.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit] highlight:&lt;br /&gt;
&lt;br /&gt;
float: right;&lt;br /&gt;
&lt;br /&gt;
[Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | If I set the '''float''' value to '''right''', then the image will move to the right side'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''text''' will wrap around it.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Come back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
float: inherit;&lt;br /&gt;
|  | Now I will set the '''float property value '''to''' inherit '''for''' '''this '''image'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''image''' and '''text '''are set to the previous '''style'''.&lt;br /&gt;
&lt;br /&gt;
This is because the '''image inherits''' the property of the '''div block.'''&lt;br /&gt;
&lt;br /&gt;
Observe that the '''div block '''does not have '''float '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
float: right;&lt;br /&gt;
|  | Now I will set the '''float '''property value''' '''for the '''div block.'''&lt;br /&gt;
&lt;br /&gt;
Inside the''' div tag''', next to the '''padding''' property, type the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''block '''has shifted to the right side.&lt;br /&gt;
&lt;br /&gt;
The '''image '''inside it also shifted to the right because it '''inherits '''the '''div block''' property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
float: left;&lt;br /&gt;
|  | Now I will set the '''float '''property value''' '''to '''left '''for the '''image.'''&lt;br /&gt;
&lt;br /&gt;
Inside the''' img tag''', update the code as shown.&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 the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Though the '''block '''was set to the right, the '''image '''has shifted to the left.&lt;br /&gt;
&lt;br /&gt;
This is because the '''float '''value of the '''image '''is set to '''left''' instead of '''inherit'''.&lt;br /&gt;
&lt;br /&gt;
Earlier '''float''' property of the '''image '''was inheriting the '''float '''value of the '''div block.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Delete: float: right;&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Delete the '''float '''property of the '''div tag '''and 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;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Both the '''block''' and '''image''' are set to the left now.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property&lt;br /&gt;
|  | '''Clear Property'''&lt;br /&gt;
* It is related to''' float.'''&lt;br /&gt;
* It prevents an''' element '''from being displayed next to''' floated elements.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property Value&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''left''': '''elements''' are not allowed to '''float''' on the left''' '''side of the specified''' element'''&lt;br /&gt;
* '''right''': '''elements''' are not allowed to '''float''' on the right''' '''side of the specified''' element'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property Value&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
* '''both''': '''elements''' are not allowed to '''float''' on both sides of the specified''' element'''&lt;br /&gt;
* '''none''' (default):'''elements''' are allowed to '''float''' on both sides of the specified''' element'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property Value&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
* '''initial: '''sets the''' clear '''property to its default value&lt;br /&gt;
* '''inherit: element '''inherits the '''clear''' value of its parent.&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
clear: none;&lt;br /&gt;
|  | I will set the '''clear property value '''to''' none '''for the '''paragraph.'''&lt;br /&gt;
&lt;br /&gt;
In the '''p tag''', next to the '''font '''property, type the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
There is no change in the output because '''none''' is the default value of '''clear '''property.&lt;br /&gt;
&lt;br /&gt;
The text''' float'''s around the '''image'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
clear: both;&lt;br /&gt;
|  | Now I will change the '''clear '''property value''' '''to''' both '''for the '''paragraph.'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''paragraph''' moved down because it does not allow the '''image '''to '''float''' on both sides.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | The '''image''' and '''paragraph''' are too big to fit within the '''block.'''&lt;br /&gt;
&lt;br /&gt;
That is why the '''paragraph''' flows out of the '''block'''.&lt;br /&gt;
&lt;br /&gt;
To solve this problem, we use '''overflow '''property.&lt;br /&gt;
&lt;br /&gt;
Let us understand about this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property&lt;br /&gt;
|  | '''Overflow''' property decides what to do when the content''' '''overflows the''' block.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property Value&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''visible '''(default): &lt;br /&gt;
** Overflowed content is not clipped.&lt;br /&gt;
** It is visible outside the''' block'''.&lt;br /&gt;
* '''scroll''': &lt;br /&gt;
** Overflowed content is clipped.&lt;br /&gt;
** A '''scrollbar''' is added to see the whole content.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property Value&lt;br /&gt;
|  | &lt;br /&gt;
* '''auto''': &lt;br /&gt;
** Automatically adds a '''scrollbar''' whenever required.&lt;br /&gt;
* '''hidden''': &lt;br /&gt;
** Overflowed content is clipped and is invisible.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property Value&lt;br /&gt;
|  | &lt;br /&gt;
* '''initial''': &lt;br /&gt;
** Sets the property value to its default value.&lt;br /&gt;
* '''inherit''': &lt;br /&gt;
** Inherits the property value from its parent '''element'''&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
overflow: auto;&lt;br /&gt;
|  | Now I will set the '''overflow '''property''' '''to''' auto '''for the''' div block.'''&lt;br /&gt;
&lt;br /&gt;
In the '''div tag''', next to the '''padding''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
overflow: auto;&lt;br /&gt;
|  | Here '''overflow '''property is set to '''auto.'''&lt;br /&gt;
&lt;br /&gt;
This means''' '''the text''' '''will not overflow outside the border.&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''' &lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The text''' '''has overflowed outside the border.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Ctrl + R&lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Refresh the page once again and observe the output.&lt;br /&gt;
&lt;br /&gt;
This time, the overflowed content is clipped.&lt;br /&gt;
&lt;br /&gt;
And a '''scrollbar''' is added to the '''block''' to see the overflowed content.&lt;br /&gt;
&lt;br /&gt;
You may explore '''visible''', '''scroll '''and '''hidden overflow property values''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Float, Clear''' and''' Overflow '''properties of an '''element '''in''' CSS'''&lt;br /&gt;
* Use these properties to achieve the desired output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''webpage.html''' which you have created earlier.&lt;br /&gt;
* Add the''' '''image''' veg.png '''in''' '''the''' div block.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Update the following for '''div''' '''block'''&lt;br /&gt;
** '''width''' to '''600px.'''&lt;br /&gt;
** '''height''' to '''200px.'''&lt;br /&gt;
** '''overflow value '''to''' scroll'''.&lt;br /&gt;
* Set the '''float value''' to '''right '''for the '''image'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Answers for THIS Spoken Tutorial&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | This is Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Text-Properties-in-CSS/English</id>
		<title>CSS/C2/Text-Properties-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Text-Properties-in-CSS/English"/>
				<updated>2020-10-24T10:18:10Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Text Properties in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Text, CSS Color, CSS Text Alignment, CSS Text Indentation, CSS Text Spacing, CSS Text Line Height, CSS Text Direction, CSS Text Transformation, CSS Text Decoration, CSS Text Shadow, CSS Letter spacing, CSS Word spacing''' '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 “'''Text Properties in CSS”'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
|| In this tutorial we will learn about '''Text '''properties of an '''element''' in''' CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|  | This tutorial is recorded using &lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, you should have basic knowledge of '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Text Elements&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 25em;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Color''' || '''Direction'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Alignment''' || '''Transformation'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Indentation''' || '''Decoration'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Spacing''' || '''Shadow'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Line Height ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|  | These are the properties which we use to format and style the '''text''' '''elements '''in '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Color&lt;br /&gt;
|  | The color of the''' text''' is set by the''' CSS color''' property using these values:&lt;br /&gt;
&lt;br /&gt;
* '''Color names'''&lt;br /&gt;
* '''Hexadecimal values'''&lt;br /&gt;
* '''RGB (Red Green Blue) values'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Let’s open the file '''mystyle.css''' in a text editor.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m also using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Now open the file '''Mypage.html''' in a web browser.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''text color''' of the '''heading''' is set to '''blue'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: color: blue;&lt;br /&gt;
|  | This is because, inside the '''h1 tag''', text color of the '''heading '''is set to '''blue '''using the color name.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
color: #008000;&lt;br /&gt;
|  | Now I will set the '''text color''' of the '''heading '''to '''green''' using the '''hexadecimal''' value&lt;br /&gt;
&lt;br /&gt;
Inside '''h1 tag''', update the '''color '''code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
color: #008000;&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
'''Hexadecimal value '''of''' green '''is''' #008000 .'''&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''text color''' of the '''heading '''is set to '''green'''.&lt;br /&gt;
&lt;br /&gt;
Likewise, you can set the '''text color''' using '''RGB color '''values.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now let’s move on to '''text '''alignment.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Alignment&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-align '''property''' '''is used to set the horizontal alignment of the '''text'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Alignment &lt;br /&gt;
&lt;br /&gt;
[Image = left.png]&lt;br /&gt;
&lt;br /&gt;
[Image = right.png]&lt;br /&gt;
&lt;br /&gt;
[Image = center.png]&lt;br /&gt;
&lt;br /&gt;
[Image = justify.png]&lt;br /&gt;
|  | '''Text''' can be aligned either to the:&lt;br /&gt;
&lt;br /&gt;
* '''Left'''&lt;br /&gt;
* '''Right'''&lt;br /&gt;
* '''Center'''&lt;br /&gt;
* '''Justify'''&lt;br /&gt;
&lt;br /&gt;
Let us try one of these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to firefox&lt;br /&gt;
|  | Switch to the '''browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''heading '''is now aligned to the '''center.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
|  | This is because the '''text-align''' property for the '''h1 tag''' is set to '''center'''.&lt;br /&gt;
&lt;br /&gt;
You can explore the remaining '''text-align properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next let’s learn about some more '''text''' properties.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Indentation&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-indent '''property''' '''is used to insert an empty space before the first line of the '''text'''&lt;br /&gt;
* The size of empty space is set using '''length values''' like '''cm, px, % '''etc.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: text-indent: 60px; &lt;br /&gt;
|  | I will insert an empty space of '''60 pixels''' before the first line of the '''paragraph'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', below the '''width '''property, type the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The paragraph now has an empty space of '''60 pixels''' before the first line.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Spacing&lt;br /&gt;
|  | &lt;br /&gt;
* '''Spacing '''property is used to change the space between '''words '''and '''letters '''of a '''text'''.&lt;br /&gt;
* Positive values are used to increase the space.&lt;br /&gt;
* Negative values are used to decrease the space. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Spacing&lt;br /&gt;
|  | It has two types of properties:&lt;br /&gt;
&lt;br /&gt;
* '''letter-spacing '''is used to increase or decrease the space in between letters.&lt;br /&gt;
* '''word-spacing '''is used to increase or decrease the space between the words.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: letter-spacing: -2px;&lt;br /&gt;
|  | For the '''heading,''' I will decrease the '''space''' between the letters by '''2px'''  &lt;br /&gt;
&lt;br /&gt;
Inside the '''h1 tag''', next to the '''font-size property''', type the code as shown.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''space''' between the letters in the '''heading''' has decreased.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: letter-spacing: 7px;&lt;br /&gt;
|  | Now in the '''heading,''' let us increase the '''space''' between the letters by '''7 pixels'''.&lt;br /&gt;
&lt;br /&gt;
Update the '''letter-spacing '''property value to '''7 px.'''&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''space''' between the letters in the '''heading''' has now increased.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: word-spacing: 20px;&lt;br /&gt;
|  | Next, in the '''paragraph''', let’s increase the '''space''' between words by '''20 pixels'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', after the '''text-indent '''property, type the code as shown.&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
We can see that the '''space''' between the words in the '''paragraph '''has increased.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
word-spacing: 20px;&lt;br /&gt;
|  | To decrease the '''space''' between the words, '''word-spacing''' accepts the negative values.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Update: &lt;br /&gt;
&lt;br /&gt;
word-spacing: 10px;&lt;br /&gt;
|  | Now, for properly displaying the paragraph in this web page, we will set it to '''10px.'''&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 '''browse'''r and refresh the page.&lt;br /&gt;
&lt;br /&gt;
This is the required word spacing which we want on this page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Let’s now move on to the '''height '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Line Height&lt;br /&gt;
|  | &lt;br /&gt;
* '''line-height''' is used to set the space between the lines of the '''text'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: line-height: 1.8;&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
&lt;br /&gt;
Now I will assign 1.8 to '''height property''' in the''' paragraph.'''&lt;br /&gt;
&lt;br /&gt;
That is '''1.8''' times the size of the current font.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p''' '''tag''', next to the '''word-spacing property,''' type the code as shown.&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''space''' between the lines of''' text''' has increased.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Direction&lt;br /&gt;
|  | &lt;br /&gt;
* Direction of a '''text''' is set by '''CSS direction '''property'''.'''&lt;br /&gt;
* It has two values:&lt;br /&gt;
** '''ltr '''(default): sets the direction from left to right.&lt;br /&gt;
** '''rtl: '''sets the direction from right to left.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: direction: rtl;&lt;br /&gt;
|  | Let’s set the direction of the '''paragraph''' from right to left first.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p''' '''tag''', after the''' line-height '''property type the code as shown.&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;
|  | [browser]&lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the direction of the '''text''' of the '''paragraph''' has changed from '''right to left.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: direction: ltr;&lt;br /&gt;
|  | Now let’s set the direction of the '''paragraph''' from left to right.&lt;br /&gt;
&lt;br /&gt;
Update the '''direction property '''to''' ltr.'''&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the direction of the '''text''' of the '''paragraph''' has changed to the default left to right '''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next, we’ll learn about the '''transformation '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Transformation&lt;br /&gt;
|  | The '''text-transform '''property manages the capitalization of '''text'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Transformation&lt;br /&gt;
&lt;br /&gt;
[Image = uppercase.png]&lt;br /&gt;
&lt;br /&gt;
[Image = lowercase.png]&lt;br /&gt;
&lt;br /&gt;
[Image = capitalize.png]&lt;br /&gt;
&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''uppercase''': Converts all the letters to uppercase&lt;br /&gt;
* '''lowercase''': Converts all the letters to lowercase&lt;br /&gt;
* '''capitalize''': Converts the first letter of each word to uppercase&lt;br /&gt;
&lt;br /&gt;
Let us try one of these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
text-transform: uppercase;&lt;br /&gt;
|  | Now I will set the paragraph''' '''to''' uppercase.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag,''' next to '''direction property''' type the code as shown.&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
All the letters in the paragraph have now changed to''' uppercase.'''&lt;br /&gt;
&lt;br /&gt;
Similarly try the remaining '''direction properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
&lt;br /&gt;
Delete: text-transform: uppercase;&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|  | Switch to the file '''mystyle.css'''&lt;br /&gt;
&lt;br /&gt;
Delete the '''text-transform '''property.&lt;br /&gt;
&lt;br /&gt;
And save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next comes the '''decoration '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Decoration&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-decoration '''property is used to apply or remove the decoration of the '''text'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Decoration&lt;br /&gt;
&lt;br /&gt;
[Image = overline.png]&lt;br /&gt;
&lt;br /&gt;
[Image = underline.png]&lt;br /&gt;
&lt;br /&gt;
[Image = line-through.png]&lt;br /&gt;
&lt;br /&gt;
[Image = none.png]&lt;br /&gt;
|  | The values for the '''text decoration''' property are:&lt;br /&gt;
&lt;br /&gt;
* '''Overline'''&lt;br /&gt;
* '''Underline'''&lt;br /&gt;
* '''Line-through'''&lt;br /&gt;
* '''None'''&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
text-decoration: overline;&lt;br /&gt;
|  | Now let’s set the '''overline text-decoration '''to the '''heading'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''h1''' tag, next to the '''letter-spacing '''property, type the shown code.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''heading''' has an '''overline''' '''text-decoration'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: &lt;br /&gt;
&lt;br /&gt;
text-decoration: underline;&lt;br /&gt;
|  | Now let’s apply an '''underline '''to the '''heading'''.&lt;br /&gt;
&lt;br /&gt;
Update the '''text-decoration''' property to '''underline'''.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Similarly, explore the remaining '''text-decoration properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | We now come to '''text shadows'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Shadow&lt;br /&gt;
&lt;br /&gt;
'''text-shadow: h-shadow v-shadow blur-radius color;'''&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-shadow''' property is used to apply '''shadow effects''' to the '''text'''.&lt;br /&gt;
* This is the syntax&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Shadow&lt;br /&gt;
|  | &lt;br /&gt;
* '''h-shadow: '''It sets the position of horizontal shadow.&lt;br /&gt;
* '''v-shadow:''' It sets the position of vertical shadow.&lt;br /&gt;
* '''h-shadow''' and '''v-shadow''' are mandatory values&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Shadow&lt;br /&gt;
|  | &lt;br /&gt;
* '''blur-radius:''' Sets the radius of blur.&lt;br /&gt;
* '''color:''' Sets the color of the shadow.&lt;br /&gt;
* '''blur-radius '''and''' color''' are optional values.&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: text-shadow: 4px 4px 2px;&lt;br /&gt;
|  | Now I will use this property in the '''heading''' of the page.&lt;br /&gt;
&lt;br /&gt;
I will set '''h-shadow to 4 pixels, v-shadow to 4 pixels, blur-radius to 2 pixels'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''h1''' '''tag''', next to '''text-decoration property''' type the code as shown.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
In '''heading''', we can see the '''text-shadow''' effect.&lt;br /&gt;
&lt;br /&gt;
Here the shadow color is the same as the text color.&lt;br /&gt;
&lt;br /&gt;
This is because we have not set any '''color''' for the shadow.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
text-shadow: 4px 4px 6px black;&lt;br /&gt;
|  | Now I will use the '''color''' value for the shadow property.&lt;br /&gt;
&lt;br /&gt;
I will also change the '''blur-radius to 6pixels '''and''' color '''to''' black.'''&lt;br /&gt;
&lt;br /&gt;
So, update the '''text-shadow property''' as shown.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
In the '''heading''', we can see the '''text-shadow''' in '''black color'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | In this manner, we can '''style''' our '''text''' using '''CSS''' properties. &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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about '''Text '''properties of an '''element''' in''' CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier&lt;br /&gt;
* Set '''yellow''' color to '''heading '''and''' center '''align''' '''it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | For the '''Paragraph''' content, set the&lt;br /&gt;
* '''text-indentation''' to '''1cm''' &lt;br /&gt;
* '''word spacing''' to '''3px '''&lt;br /&gt;
* '''line-height''' to '''1.2''' &lt;br /&gt;
* Direction as '''left to right'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* '''Underline''' and '''uppercase''' the '''heading'''.&lt;br /&gt;
* Set '''text-shadow '''with '''black''' color in the '''heading.'''&lt;br /&gt;
&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | The script for this tutorial is contributed by Neha Solanki.&lt;br /&gt;
&lt;br /&gt;
And this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Display-Property-in-CSS/English</id>
		<title>CSS/C2/Display-Property-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Display-Property-in-CSS/English"/>
				<updated>2020-10-23T10:59:53Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Display property in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Display property in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Display, Block Level Element, Inline Level Element&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 “'''Display property '''in''' CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''Display property''' of an '''element''' in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should know to use '''HTML''' and '''CSS'''&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Display&lt;br /&gt;
|  | &lt;br /&gt;
* '''Display property''' is used to specify how an '''element''' should be presented on a '''webpage'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Display&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
* Values of this '''property''' are:&lt;br /&gt;
** '''block'''&lt;br /&gt;
** '''inline'''&lt;br /&gt;
** '''none'''&lt;br /&gt;
&lt;br /&gt;
* Each '''element '''has a default '''display '''value.&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Block&lt;br /&gt;
|  | &lt;br /&gt;
* '''block '''value is used to present an '''element '''as a''' block-level element.'''&lt;br /&gt;
* '''Block-level element '''starts with a new line.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Block-level element&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;header&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; to &amp;lt;h6&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;form&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
|  | These are some '''elements '''which have a default '''block''' value:&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Inline&lt;br /&gt;
|  | &lt;br /&gt;
* '''inline '''value is used to present an '''element '''as an '''inline-level element.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Inline-level element&lt;br /&gt;
|  | The''' Inline-level element '''&lt;br /&gt;
&lt;br /&gt;
* Does not start with a new line and &lt;br /&gt;
* Ignores '''height '''and '''width '''if they are mentioned&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Inline-level element&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;a&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;img&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
|  | These are some '''elements''' which have default '''inline''' value:&lt;br /&gt;
&lt;br /&gt;
Let us try with some examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Let’s open the file '''mystyle.css''' in a '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | Switch to the '''my-css''' folder&lt;br /&gt;
&lt;br /&gt;
For this demonstration, I’m also using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Now open the file '''Mypage.html''' in a web browser.&lt;br /&gt;
&lt;br /&gt;
The '''webpage''' opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#item1{ &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:height: 200px; &lt;br /&gt;
&lt;br /&gt;
:width: 150px; &lt;br /&gt;
&lt;br /&gt;
:background: lightpink; &lt;br /&gt;
&lt;br /&gt;
:display: block;} &lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#item2{ &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:height:200px; &lt;br /&gt;
&lt;br /&gt;
:width: 150px; &lt;br /&gt;
&lt;br /&gt;
:background: lightblue; &lt;br /&gt;
&lt;br /&gt;
:display: inline; } &lt;br /&gt;
|  | Now let’s create two '''elements '''using an '''id selector'''.&lt;br /&gt;
&lt;br /&gt;
Next to the '''div tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
height: 200px; &lt;br /&gt;
&lt;br /&gt;
width: 150px; &lt;br /&gt;
&lt;br /&gt;
background: lightpink; &lt;br /&gt;
|  | In both the cases I have set the '''height''', '''width''' and '''background'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight:&lt;br /&gt;
&lt;br /&gt;
display: block;&lt;br /&gt;
|  | For '''item1''' I have set the value for the '''display property''' to '''block.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Highlight:&lt;br /&gt;
&lt;br /&gt;
display: inline;&lt;br /&gt;
|  | For '''item2''' I have set the value for the '''display property''' to '''inline.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to the '''my-css'''&lt;br /&gt;
|  | Switch to the '''my-css '''folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;p id = &amp;quot;item1&amp;quot;&amp;gt; Fruits and vegetables provide essential vitamins and minerals to the body &amp;lt;/p&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;p id = &amp;quot;item2&amp;quot;&amp;gt; Fruits and vegetables provide essential vitamins and minerals to the body &amp;lt;/p&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|  | Now add these items to '''paragraphs'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', next to the '''div closing tag''', type the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
We can see two new '''paragraphs'''.&lt;br /&gt;
&lt;br /&gt;
The first '''paragraph '''is in '''blocks '''with the mentioned''' height '''and '''width.'''&lt;br /&gt;
&lt;br /&gt;
While the second '''paragraph '''is in '''inline '''and it ignores the mentioned '''height '''and '''width'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Delete: display: inline;&lt;br /&gt;
|  | Now I will remove the '''display property''' from '''item2'''.&lt;br /&gt;
&lt;br /&gt;
Inside '''&amp;lt;nowiki&amp;gt;#item2&amp;lt;/nowiki&amp;gt;''', delete the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the second '''paragraph '''is also inside the '''block.'''&lt;br /&gt;
&lt;br /&gt;
This is because by default the '''display property''' value of a '''paragraph '''is '''block'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: None&lt;br /&gt;
|  | &lt;br /&gt;
* '''none '''value is used to remove the '''display''' of an '''element'''.&lt;br /&gt;
* The '''&amp;lt;script&amp;gt;''' '''element '''has default '''none''' '''display''' value.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#item1: Update: display: none;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#item2: &amp;lt;/nowiki&amp;gt;Type: display: none;&lt;br /&gt;
|  | Now I will set the '''display''' value to '''none''' in '''item1 '''and '''item2'''.&lt;br /&gt;
&lt;br /&gt;
In the '''&amp;lt;nowiki&amp;gt;#item1&amp;lt;/nowiki&amp;gt;''' and''' #item2''', update the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Both the '''paragraphs '''are not displayed now.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
&lt;br /&gt;
Ctrl + Z&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl + Z''' keys repeatedly to undo all the changes which we have made in this file.&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to Mypage.html&lt;br /&gt;
&lt;br /&gt;
Ctrl + Z&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|  | Switch to the '''Mypage.html''' file&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl + Z''' keys repeatedly to undo all the changes which we have done in this file.&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Display property''' of an '''element '''in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier&lt;br /&gt;
* Add one more '''paragraph''' using the '''p''' '''tag''' without the '''div tag'''.&lt;br /&gt;
* Set the following '''properties''' for this '''p''' '''tag''' using '''selector''':&lt;br /&gt;
** '''Height''' to '''200px'''&lt;br /&gt;
** '''Width''' to '''200px'''&lt;br /&gt;
** '''Background''' '''color''' to '''lightpink'''&lt;br /&gt;
** '''Display''' to '''inline'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | The script for this tutorial is contributed by Neha Solanki&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Font-Properties-in-CSS/English</id>
		<title>CSS/C2/Font-Properties-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Font-Properties-in-CSS/English"/>
				<updated>2020-10-22T15:57:08Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Font properties in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Font properties in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Font, CSS Font Family, CSS Font Style, CSS Font weight, CSS Font Variant, CSS Font Size, CSS Font Shorthand&lt;br /&gt;
&lt;br /&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 '''Font Properties '''in''' CSS'''. &lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Learning Objectives&lt;br /&gt;
|  | In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''Font properties''' of an '''element '''in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|  | To practise this tutorial, you should have basic knowledge of '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 22em;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''font-family''' || '''font-style'''&lt;br /&gt;
|-&lt;br /&gt;
| '''font-weight || '''font-variant'''&lt;br /&gt;
|-&lt;br /&gt;
| '''font-size'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|  | These are the properties which we use to style the '''font''' of '''text''' in '''CSS'''&lt;br /&gt;
&lt;br /&gt;
'''  '''&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Family&lt;br /&gt;
|  | &lt;br /&gt;
* '''font-family '''property is used to set the '''font''' of the '''text'''. &lt;br /&gt;
* One or more '''fonts''', separated by '''commas, '''are used to specify the '''font-family'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Family&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
* Sometimes the user's system doesn’t contain the first '''font'''.&lt;br /&gt;
* Then the browser uses the second '''font''' and so on.&lt;br /&gt;
* '''Font''' should be written priority wise from highest to lowest.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Family&lt;br /&gt;
|  | &lt;br /&gt;
* The last '''font''' should ideally be a '''generic font.'''&lt;br /&gt;
* For example: '''serif, sans-serif, monospace''', etc.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open my-css''' '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Let’s open the file '''mystyle.css''' in a '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
height: 3cm&lt;br /&gt;
|  | First of all for better visibility, I will change the height of the '''div block'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''div''' section, update the '''height''' to '''3cm'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | Switch to''' my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
For this demonstration, I’m also using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Open the file '''Mypage.html''' in a web browser.&lt;br /&gt;
&lt;br /&gt;
The '''webpage''' opens.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type-&lt;br /&gt;
&lt;br /&gt;
font-family: Arial, &amp;quot;Times new roman&amp;quot;, sans-serif;&lt;br /&gt;
|  | Switch back to '''mystyle.css''' file.&lt;br /&gt;
&lt;br /&gt;
I will use three different '''fonts''' for the '''text''' of the '''paragraph'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', next to the '''direction property,''' type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: &amp;quot;Times new roman&amp;quot;&lt;br /&gt;
|  | If the '''font''' name has more than one word, then it must be written within '''quotes'''.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Content of the '''paragraph''' is''' '''set to''' Arial font.'''&lt;br /&gt;
&lt;br /&gt;
As this '''font''' is available in my system, it uses the first '''font''' instead of proceeding further.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update-&lt;br /&gt;
&lt;br /&gt;
font-family: monospace;&lt;br /&gt;
|  | Now I will set the '''paragraph''' to a single generic '''font''': '''monospace.'''&lt;br /&gt;
&lt;br /&gt;
Update the '''font-family property''' code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Content''' '''of the '''paragraph''' is''' '''now set to''' monospace font.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Style&lt;br /&gt;
|  | '''font-style property''' is used to '''style''' the '''font''' of the''' text'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Style&lt;br /&gt;
|  | Values of this '''property''' are:&lt;br /&gt;
&lt;br /&gt;
* '''normal '''(default): sets the '''style''' of '''text''' to normal. &lt;br /&gt;
* '''italic''': sets the '''style''' of '''text''' to italics.&lt;br /&gt;
* '''oblique'''- sets the '''style''' of '''text''' to slanted or sloped form.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
font-style: italic;&lt;br /&gt;
|  | Now I will set the '''style''' to '''Italic''' for the '''paragraph'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', next to '''font-family''' type the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''Paragraph''' is set to '''Italic style.'''&lt;br /&gt;
&lt;br /&gt;
Similarly explore the remaining '''font-style properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Weight&lt;br /&gt;
|  | '''font-weight property''' specifies how thick the '''font''' of the '''text''' should be.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Weight&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''Keywords''':&lt;br /&gt;
** '''normal, bold, lighter '''and''' bolder'''&lt;br /&gt;
* '''Numeric''': &lt;br /&gt;
** '''400 '''equals to '''normal'''&lt;br /&gt;
** '''700''' equals to '''bold'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
font-weight: bold;&lt;br /&gt;
|  | I will set the '''font-weight''' property using '''keyword''' value''' bold '''for '''paragraph'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', next to '''font-style property''' type the code as shown.&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
'''Paragraph''' is''' '''set to '''bold.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
font-weight: 700;&lt;br /&gt;
|  | Now I will set the '''font-weight property''' to '''bold '''using a numeric value '''700.'''&lt;br /&gt;
&lt;br /&gt;
Update the '''font-weight property''' code as shown.&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
There is no change in the '''paragraph''', it is still''' '''in '''bold.'''&lt;br /&gt;
&lt;br /&gt;
This is because I have set the '''font-weight''' to '''700''', which is equal to '''bold'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Variant&lt;br /&gt;
|  | '''font-variant''' decides whether the '''font''' of a '''text''' should be '''small capital''' or not.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Variant&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''small-caps''':&lt;br /&gt;
** Convert all the letters to '''uppercase''' letters &lt;br /&gt;
** Sets the '''font '''size smaller than the '''uppercase''' letters.&lt;br /&gt;
* '''Normal: '''removes the '''small-cap '''property. &lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
font-variant: small-caps;&lt;br /&gt;
|  | Now I will set the '''small-cap''' value to '''heading'''.&lt;br /&gt;
&lt;br /&gt;
Inside '''h1 tag''', next to '''text-shadow property '''type the code as shown.&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
All the letters of the '''heading''' are converted into '''small-cap'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Size&lt;br /&gt;
|  | &lt;br /&gt;
* '''font-size '''property specifies the size of the '''text'''.&lt;br /&gt;
* The default '''font '''size in most of the browsers is set to '''16px.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Font Size''' '''&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''Length values: '''pixels, cm, points, em, etc.&lt;br /&gt;
* '''Keywords: '''absolute, relative&lt;br /&gt;
* '''Percentage'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
font-size: 15pt;&lt;br /&gt;
|  | Now I will set the '''font-size''' to '''15 points''' for '''paragraph.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', next to '''font-weight property''' type the code as shown'''.'''&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Notice the difference in the '''font size''' of the '''paragraph'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: font-size: 100%;&lt;br /&gt;
|  | Now I will set the '''font''' size using '''percentage'''.&lt;br /&gt;
&lt;br /&gt;
Update code as shown.&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 the paragraph:&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''font''' size of the '''paragraph''' is back to its original size.&lt;br /&gt;
&lt;br /&gt;
This is because it is 100% relative to the parent size.&lt;br /&gt;
&lt;br /&gt;
We can set the '''font''' size values using '''percentage''' or with '''font length values'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Absolute keywords&lt;br /&gt;
|  | Next let us see how to set the '''font''' size using '''keywords'''.&lt;br /&gt;
&lt;br /&gt;
* '''Absolute keywords''': sets the '''font''' size based on default '''font''' size&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Absolute keywords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| '''xx-small''' || '''xx-large'''&lt;br /&gt;
|-&lt;br /&gt;
| '''s-small || '''x-large'''&lt;br /&gt;
|-&lt;br /&gt;
| '''small || '''large'''&lt;br /&gt;
|-&lt;br /&gt;
| '''medium '''(equals to default '''font''' size)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|  | These are the values of '''absolute''' '''keywords'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Relative keywords&lt;br /&gt;
|  | &lt;br /&gt;
* '''Relative keywords''': sets the '''font''' size relative to parent '''elements'''. &lt;br /&gt;
* The '''keywords''' are: &lt;br /&gt;
** '''smaller '''and &lt;br /&gt;
** '''larger'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
font-size: medium;&lt;br /&gt;
|  | Now I will set the '''font''' size of the '''paragraph''' to '''medium'''.&lt;br /&gt;
&lt;br /&gt;
Inside the''' p tag''', update the '''font-size property''' code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Notice there is no change in the''' font size''' of the '''paragraph.''' &lt;br /&gt;
&lt;br /&gt;
This is because we have set the size to '''medium''' which is the default '''font''' '''size'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: &lt;br /&gt;
&lt;br /&gt;
font-size: x-small;&lt;br /&gt;
|  | Now I will set the '''font''' '''size''' of the '''paragraph''' to '''x-small'''. &lt;br /&gt;
&lt;br /&gt;
Inside the''' p tag''', update the '''font-size property''' code as shown.&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 the paragraph&lt;br /&gt;
&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the font size of the '''paragraph''' is smaller than the normal '''font''' size.&lt;br /&gt;
&lt;br /&gt;
Similarly explore the remaining '''text-size properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Shorthand&lt;br /&gt;
|  | &lt;br /&gt;
* Using shorthand, we can write all the '''font properties''' in a single line.&lt;br /&gt;
* '''font-size '''and''' font-family''' values are mandatory for '''font '''property in shorthand.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Delete:&lt;br /&gt;
&lt;br /&gt;
font-family: monospace; &lt;br /&gt;
&lt;br /&gt;
font-style: italic; &lt;br /&gt;
&lt;br /&gt;
font-weight: 700; &lt;br /&gt;
&lt;br /&gt;
font-size: x-small;&lt;br /&gt;
|  | In our case, we have written the '''font properties''' for '''paragraph''' individually. &lt;br /&gt;
&lt;br /&gt;
Let me delete all the '''font properties'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
font: italic 18px serif;&lt;br /&gt;
|  | Now inside the '''p''' '''tag''', next to '''direction property''' type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit] Highlight: &lt;br /&gt;
&lt;br /&gt;
font: italic 18px serif;&lt;br /&gt;
|  | Here I have set '''font-style''' to '''italic''', '''font-size''' to '''18 pixel''' and '''font-family''' to '''serif.'''&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] Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''paragraph''' has changed as per our code.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | In this manner, we can '''style''' our '''fonts''' for the '''text''' using '''CSS properties'''. &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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about:&lt;br /&gt;
&lt;br /&gt;
* '''Font properties''' of an '''element '''in''' CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment,&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Using shorthand, set the following '''properties''' to the '''paragraph''':&lt;br /&gt;
** '''font-family''' to '''Arial''' &lt;br /&gt;
** '''font-style''' to '''oblique'''&lt;br /&gt;
** '''font-weight''' to '''400'''&lt;br /&gt;
** '''font-variant''' to '''small-caps'''&lt;br /&gt;
** '''font-size''' to '''18 pixels'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | The script for this tutorial is contributed by Neha Solanki&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Text-Properties-in-CSS/English</id>
		<title>CSS/C2/Text-Properties-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Text-Properties-in-CSS/English"/>
				<updated>2020-10-22T13:00:44Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Text Properties in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Text Properties in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Text, CSS Color, CSS Text Alignment, CSS Text Indentation, CSS Text Spacing, CSS Text Line Height, CSS Text Direction, CSS Text Transformation, CSS Text Decoration, CSS Text Shadow, CSS Letter spacing, CSS Word spacing''' '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 “'''Text Properties in CSS”'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
|| In this tutorial we will learn about '''Text '''properties of an '''element''' in''' CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|  | This tutorial is recorded using &lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, you should have basic knowledge of '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Text Elements&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 25em;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Color''' || '''Direction'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Alignment''' || '''Transformation'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Indentation''' || '''Decoration'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Spacing''' || '''Shadow'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Line Height ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|  | These are the properties which we use to format and style the '''text''' '''elements '''in '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Color&lt;br /&gt;
|  | The color of the''' text''' is set by the''' CSS color''' property using these values:&lt;br /&gt;
&lt;br /&gt;
* '''Color names'''&lt;br /&gt;
* '''Hexadecimal values'''&lt;br /&gt;
* '''RGB (Red Green Blue) values'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open '''my-css '''folder&lt;br /&gt;
|  | Go to the practice folder '''my-css'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Let’s open the file '''mystyle.css''' in a text editor.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m also using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in firefox&lt;br /&gt;
|  | Now open the file '''Mypage.html''' in a web browser.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''text color''' of the '''heading''' is set to '''blue'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: color: blue;&lt;br /&gt;
|  | This is because, inside the '''h1 tag''', text color of the '''heading '''is set to '''blue '''using the color name.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
color: #008000;&lt;br /&gt;
|  | Now I will set the '''text color''' of the '''heading '''to '''green''' using the '''hexadecimal''' value&lt;br /&gt;
&lt;br /&gt;
Inside '''h1 tag''', update the '''color '''code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
color: #008000;&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
'''Hexadecimal value '''of''' green '''is''' #008000 .'''&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''text color''' of the '''heading '''is set to '''green'''.&lt;br /&gt;
&lt;br /&gt;
Likewise, you can set the '''text color''' using '''RGB color '''values.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Now let’s move on to '''text '''alignment.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Alignment&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-align '''property''' '''is used to set the horizontal alignment of the '''text'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Alignment &lt;br /&gt;
&lt;br /&gt;
[Image = left.png]&lt;br /&gt;
&lt;br /&gt;
[Image = right.png]&lt;br /&gt;
&lt;br /&gt;
[Image = center.png]&lt;br /&gt;
&lt;br /&gt;
[Image = justify.png]&lt;br /&gt;
|  | '''Text''' can be aligned either to the:&lt;br /&gt;
&lt;br /&gt;
* '''Left'''&lt;br /&gt;
* '''Right'''&lt;br /&gt;
* '''Center'''&lt;br /&gt;
* '''Justify'''&lt;br /&gt;
&lt;br /&gt;
Let us try one of these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to firefox&lt;br /&gt;
|  | Switch to the '''browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''heading '''is now aligned to the '''center.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
|  | This is because the '''text-align''' property for the '''h1 tag''' is set to '''center'''.&lt;br /&gt;
&lt;br /&gt;
You can explore the remaining '''text-align properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next let’s learn about some more '''text''' properties.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Indentation&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-indent '''property''' '''is used to insert an empty space before the first line of '''text'''&lt;br /&gt;
* The size of empty space is set using '''length values''' like '''cm, px, % '''etc.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: text-indent: 60px; &lt;br /&gt;
|  | I will insert an empty space of '''60 pixels''' before the first line of the '''paragraph'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', below the '''width '''property, type the code as shown.&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 the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The paragraph now has an empty space of '''60px''' before the first line.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Spacing&lt;br /&gt;
|  | &lt;br /&gt;
* '''Spacing '''property is used to change the space between '''words '''and '''letters '''of a '''text'''.&lt;br /&gt;
* Positive values are used to increase the space.&lt;br /&gt;
* Negative values are used to decrease the space. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Spacing&lt;br /&gt;
|  | It has two types of properties:&lt;br /&gt;
&lt;br /&gt;
* '''letter-spacing '''is used to increase or decrease the space in between letters.&lt;br /&gt;
* '''word-spacing '''is used to increase or decrease the space between the words.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: letter-spacing: -2px;&lt;br /&gt;
|  | For the '''heading,''' I will decrease the '''space''' between the letters by '''2px'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''h1 tag''', next to the '''font-size property''', type the code as shown.&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''space''' between the letters in the '''heading''' has decreased.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: letter-spacing: 7px;&lt;br /&gt;
|  | Now in the '''heading,''' let us increase the '''space''' between the letters by '''7px'''.&lt;br /&gt;
&lt;br /&gt;
Update the '''letter-spacing '''property value to '''7 pixels.'''&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''space''' between the letters in the '''heading''' has now increased.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: word-spacing: 20px;&lt;br /&gt;
|  | Next, in the '''paragraph''', let’s increase the '''space''' between words by '''20px'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag''', after the '''text-indent '''property, type the code as shown.&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 '''browse'''r and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
We can see that the '''space''' between the words in the '''paragraph '''has increased.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|  | Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
word-spacing: 20px;&lt;br /&gt;
|  | To decrease the '''space''' between the words, '''word-spacing''' also accepts the negative values.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css] Update: &lt;br /&gt;
&lt;br /&gt;
word-spacing: 10px;&lt;br /&gt;
|  | Now, for properly displaying the paragraph in this web page, we will set it to '''10px.'''&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 '''browse'''r and refresh the page.&lt;br /&gt;
&lt;br /&gt;
This is the required word spacing which we want on this page.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | Let’s now move on to the '''height '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Line Height&lt;br /&gt;
|  | &lt;br /&gt;
* '''line-height''' is used to set the space between the lines of the '''text'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: line-height: 1.8;&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
&lt;br /&gt;
Now I will assign 1.8 to '''height property''' in the''' paragraph.'''&lt;br /&gt;
&lt;br /&gt;
That is '''1.8''' times the size of the current font.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p''' '''tag''', next to the '''word-spacing property,''' type the code as shown.&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''space''' between the lines of''' text''' has increased.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Text Direction&lt;br /&gt;
|  | &lt;br /&gt;
* Direction of a '''text''' is set by '''CSS direction '''property'''.'''&lt;br /&gt;
* It has two values:&lt;br /&gt;
** '''ltr '''(default): sets the direction from left to right.&lt;br /&gt;
** '''rtl: '''sets the direction from right to left.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: direction: rtl;&lt;br /&gt;
|  | Let’s set the direction of the '''paragraph''' from right to left first.&lt;br /&gt;
&lt;br /&gt;
Inside the '''p''' '''tag''', after the''' line-height '''property type the code as shown.&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;
|  | [browser]&lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the direction of the '''text''' of the '''paragraph''' has changed from '''right to left.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: direction: ltr;&lt;br /&gt;
|  | Now let’s set the direction of the '''paragraph''' from left to right.&lt;br /&gt;
&lt;br /&gt;
Update the '''direction property '''to''' ltr.'''&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the direction of the '''text''' of the '''paragraph''' has changed to the default left to right '''.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next, we’ll learn about the '''transformation '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Transformation&lt;br /&gt;
|  | The '''text-transform '''property manages the capitalization of '''text'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Transformation&lt;br /&gt;
&lt;br /&gt;
[Image = uppercase.png]&lt;br /&gt;
&lt;br /&gt;
[Image = lowercase.png]&lt;br /&gt;
&lt;br /&gt;
[Image = capitalize.png]&lt;br /&gt;
&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''uppercase''': Converts all the letters to uppercase&lt;br /&gt;
* '''lowercase''': Converts all the letters to lowercase&lt;br /&gt;
* '''capitalize''': Converts the first letter of each word to uppercase&lt;br /&gt;
&lt;br /&gt;
Let us try one of these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
text-transform: uppercase;&lt;br /&gt;
|  | Now I will set the paragraph''' '''to''' uppercase.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''p tag,''' next to '''direction property''' type the code as shown.&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;
|  | [browser] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
All the letters in the paragraph have now changed to''' uppercase.'''&lt;br /&gt;
&lt;br /&gt;
Similarly try the remaining '''direction properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
&lt;br /&gt;
Delete: text-transform: uppercase;&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|  | Switch to the file '''mystyle.css'''&lt;br /&gt;
&lt;br /&gt;
Delete the '''text-transform '''property.&lt;br /&gt;
&lt;br /&gt;
And save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | &lt;br /&gt;
|  | Next comes the '''decoration '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Decoration&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-decoration '''property is used to apply or remove the decoration of the '''text'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Decoration&lt;br /&gt;
&lt;br /&gt;
[Image = overline.png]&lt;br /&gt;
&lt;br /&gt;
[Image = underline.png]&lt;br /&gt;
&lt;br /&gt;
[Image = line-through.png]&lt;br /&gt;
&lt;br /&gt;
[Image = none.png]&lt;br /&gt;
|  | The values for the '''text decoration''' property are:&lt;br /&gt;
&lt;br /&gt;
* '''Overline'''&lt;br /&gt;
* '''Underline'''&lt;br /&gt;
* '''Line-through'''&lt;br /&gt;
* '''None'''&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
text-decoration: overline;&lt;br /&gt;
|  | Now let’s set the '''overline text-decoration '''to the '''heading'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''h1''' tag, next to the '''letter-spacing '''property, type the shown code.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''heading''' has an '''overline''' '''text-decoration'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: &lt;br /&gt;
&lt;br /&gt;
text-decoration: underline;&lt;br /&gt;
|  | Now let’s apply an '''underline '''to the '''heading'''.&lt;br /&gt;
&lt;br /&gt;
Update the '''text-decoration''' property to '''underline'''.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Similarly, explore the remaining '''text-decoration properties''' on your own.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | We now come to '''text shadows'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Shadow&lt;br /&gt;
&lt;br /&gt;
'''text-shadow: h-shadow v-shadow blur-radius color;'''&lt;br /&gt;
|  | &lt;br /&gt;
* '''text-shadow''' property is used to apply '''shadow effects''' to the '''text'''.&lt;br /&gt;
* This is the syntax&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Shadow&lt;br /&gt;
|  | &lt;br /&gt;
* '''h-shadow: '''Sets the position of horizontal shadow.&lt;br /&gt;
* '''v-shadow:''' Sets the position of vertical shadow.&lt;br /&gt;
* '''h-shadow''' and '''v-shadow''' are mandatory values&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Shadow&lt;br /&gt;
|  | &lt;br /&gt;
* '''blur-radius:''' Sets the radius of blur.&lt;br /&gt;
* '''color:''' Sets the color of the shadow.&lt;br /&gt;
* '''blur-radius '''and''' color''' are optional values.&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: text-shadow: 4px 4px 2px;&lt;br /&gt;
|  | Now I will use this property in the '''heading''' of the page.&lt;br /&gt;
&lt;br /&gt;
I will set '''h-shadow to 4 pixel, v-shadow to 4 pixel, blur-radius to 2 pixel'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''h1''' '''tag''', next to '''text-decoration property''' type the code as shown.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
In '''heading''', we can see the '''text-shadow''' effect.&lt;br /&gt;
&lt;br /&gt;
Here the shadow color is the same as the text color.&lt;br /&gt;
&lt;br /&gt;
This is because we have not set any '''color''' for the shadow.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
text-shadow: 4px 4px 6px black;&lt;br /&gt;
|  | Now I will use the '''color''' value for the shadow property.&lt;br /&gt;
&lt;br /&gt;
I will also change the '''blur-radius to 6pixels '''and''' color '''to''' black.'''&lt;br /&gt;
&lt;br /&gt;
So, update the '''text-shadow property''' as shown.&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] Highlight:&lt;br /&gt;
&lt;br /&gt;
Welcome to Farmer's Market&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
In the '''heading''', we can see the '''text-shadow''' in '''black color'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Only narration&lt;br /&gt;
|  | In this manner, we can '''style''' our '''text''' using '''CSS''' properties. &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: Summary &lt;br /&gt;
|  | In this tutorial, we have learnt about '''Text '''properties of an '''element''' in''' CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier&lt;br /&gt;
* Set '''yellow''' color to '''heading '''and''' center '''align''' '''it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | For the '''Paragraph''' content, set the&lt;br /&gt;
* '''text-indentation''' to '''1cm''' &lt;br /&gt;
* '''word spacing''' to '''3px '''&lt;br /&gt;
* '''line-height''' to '''1.2''' &lt;br /&gt;
* Direction as '''left to right'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* '''Underline''' and '''uppercase''' the '''heading'''.&lt;br /&gt;
* Set '''text-shadow '''with '''black''' color in the '''heading.'''&lt;br /&gt;
&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|  | 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;
|  | Slide: Forum&lt;br /&gt;
|  | Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Acknowledgement&lt;br /&gt;
|  | Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Thanks&lt;br /&gt;
|  | The script for this tutorial is contributed by Neha Solanki.&lt;br /&gt;
&lt;br /&gt;
And this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/First-CSS-file/English</id>
		<title>CSS/C2/First-CSS-file/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/First-CSS-file/English"/>
				<updated>2020-10-16T06:57:37Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''First CSS File&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Praveen S&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Syntax, CSS Property, CSS Selector, CSS Declaration, Descendant Selector, Grouping Selector, Universal Selector Id Selector, Class Selector &lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''First CSS File'''.&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,&lt;br /&gt;
&lt;br /&gt;
* To create a '''CSS''' file &lt;br /&gt;
* Syntax of '''CSS'''&lt;br /&gt;
* Linking a '''CSS''' file with the '''HTML''' file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 4: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, &lt;br /&gt;
&lt;br /&gt;
You should know to use any '''WYSIWYG '''or '''Text Editor''' and a '''Web Browser'''.&lt;br /&gt;
&lt;br /&gt;
You should also have some basic knowledge of '''HTML.'''&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 5: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Gedit&lt;br /&gt;
|| Now we will see how to create a simple '''CSS style''' file.&lt;br /&gt;
&lt;br /&gt;
Open any '''text editor'''. &lt;br /&gt;
&lt;br /&gt;
I have already opened my '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Syntax&lt;br /&gt;
&lt;br /&gt;
selector {property: value}&lt;br /&gt;
|| This is the '''syntax''' to write the '''style''' for the '''HTML'''.&lt;br /&gt;
&lt;br /&gt;
The '''syntax''' has two parts:&lt;br /&gt;
&lt;br /&gt;
:'''Selector''' and '''Declaration'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Selector&lt;br /&gt;
|| The '''selector''' can be any one of the following:&lt;br /&gt;
&lt;br /&gt;
* '''Element'''&lt;br /&gt;
* '''Descendant'''&lt;br /&gt;
* '''Grouping'''&lt;br /&gt;
* '''Universal'''&lt;br /&gt;
* '''Id'''&lt;br /&gt;
* '''Class'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Declaration&lt;br /&gt;
|| &lt;br /&gt;
* '''Declaration''' assigns a particular '''property''' and '''value''' to the '''selector'''.&lt;br /&gt;
* We can declare multiple '''style properties''' for a '''selector''' using a '''semicolon'''.&lt;br /&gt;
* '''Declaration''' has to be written inside the braces.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Syntax Example&lt;br /&gt;
|| Here is an example.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to gedit&lt;br /&gt;
|| Now let us start writing our '''CSS''' code.&lt;br /&gt;
&lt;br /&gt;
Switch to the '''editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit]&lt;br /&gt;
&lt;br /&gt;
body {&lt;br /&gt;
&lt;br /&gt;
background-color: yellow;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| First we will set the background color for the '''body''' as '''yellow'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To do so, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] Highlight: body&lt;br /&gt;
|| Here the '''selector''' is '''body''', a '''HTML tag.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] Highlight: &lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
background-color: yellow;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| Next I have declared the '''style''' within curly braces.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] Highlight: &lt;br /&gt;
&lt;br /&gt;
background-color: yellow;&lt;br /&gt;
|| In the '''declaration''' part, '''background-color''' is the '''style property''' and '''yellow''' is its '''value'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Our code is ready. &lt;br /&gt;
&lt;br /&gt;
So let’s save this file now.&lt;br /&gt;
|-&lt;br /&gt;
|| Press '''Ctrl + S'''&lt;br /&gt;
|| I’ll press '''Ctrl + S '''keys on my keyboard.&lt;br /&gt;
&lt;br /&gt;
The '''Save''' '''As''' dialog box opens.&lt;br /&gt;
|-&lt;br /&gt;
|| Select Desktop&lt;br /&gt;
|| Now choose the desired location to save your file.&lt;br /&gt;
&lt;br /&gt;
I will select '''Desktop''' on my machine.&lt;br /&gt;
|-&lt;br /&gt;
|| Create Folder →my-css&lt;br /&gt;
|| I will create a folder with the help of the “'''Create Folder'''” button.&lt;br /&gt;
&lt;br /&gt;
Then name the folder as '''my hyphen css'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Create''' button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This folder will help me to organize my '''css''' files in a single location on my machine.&lt;br /&gt;
|-&lt;br /&gt;
|| Filename → mystyle.css&lt;br /&gt;
&lt;br /&gt;
|| I will name the file as '''mystyle.css'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that the '''CSS''' files have to be saved with '''.css''' file extension.&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Save'''&lt;br /&gt;
|| Then click on the '''Save''' button. &lt;br /&gt;
&lt;br /&gt;
Our file is saved now.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Desktop → my-css folder &amp;gt;&amp;gt; double-click to open&lt;br /&gt;
|| Let us check our saved file.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Desktop''' folder.&lt;br /&gt;
&lt;br /&gt;
Here is the folder '''my hyphen css.'''&lt;br /&gt;
&lt;br /&gt;
I will double-click to open it.&lt;br /&gt;
|-&lt;br /&gt;
|| Point to css file&lt;br /&gt;
|| This is the newly created '''CSS''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| We have successfully created our first '''CSS''' file and saved it.&lt;br /&gt;
&lt;br /&gt;
Now let’s learn how to '''run''' it.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Note&lt;br /&gt;
|| &lt;br /&gt;
* '''CSS''' file is a dependent file.&lt;br /&gt;
* It must be '''linked''' with a '''HTML''' file to see the changes.&lt;br /&gt;
&lt;br /&gt;
Let us link a '''CSS''' file to a '''HTML''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| Point to Mypage.html in my-css folder&lt;br /&gt;
|| For this demonstration, we will use the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
I have already downloaded this file and saved it in my practice folder.&lt;br /&gt;
&lt;br /&gt;
The same file is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click &amp;gt;&amp;gt; select '''Open With''' &amp;gt;&amp;gt; '''Select''' button&lt;br /&gt;
|| Right-click on the '''HTML''' file and select '''Open With Other Application '''option.&lt;br /&gt;
|-&lt;br /&gt;
|| Select '''Open With Firefox'''&lt;br /&gt;
|| Then choose any '''web browser''' that is available. &lt;br /&gt;
&lt;br /&gt;
I will choose '''Firefox'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Select''' button.&lt;br /&gt;
&lt;br /&gt;
This will open our '''HTML''' file in the '''Firefox web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight the background&lt;br /&gt;
||&lt;br /&gt;
&lt;br /&gt;
Notice that the background color of the page is white.&lt;br /&gt;
&lt;br /&gt;
Now let us set the background color to yellow with the help of our '''CSS''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click &amp;gt;&amp;gt; select '''Open With'''&lt;br /&gt;
|| Switch to the folder.&lt;br /&gt;
&lt;br /&gt;
Right-click on the '''HTML''' file and select '''Open With Other Application '''option.&lt;br /&gt;
|-&lt;br /&gt;
|| Select '''Open With gedit''' &amp;gt;&amp;gt; '''Select''' button&lt;br /&gt;
|| Then choose any '''text editor''' that is available. &lt;br /&gt;
&lt;br /&gt;
I will choose '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''Select''' button.&lt;br /&gt;
&lt;br /&gt;
This will open our '''HTML''' file in the '''gedit text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;mystyle.css&amp;quot;&amp;gt;&lt;br /&gt;
|| Inside the '''head''' section next to the '''title tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;mystyle.css&amp;quot;&amp;gt;&lt;br /&gt;
|| This will '''link''' the '''mystyle.css''' file which we created earlier, to this '''HTML''' file.&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;
|| Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the background color is set to yellow.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to mystyle.css&lt;br /&gt;
|| Let’s do some more changes in the '''CSS''' file.&lt;br /&gt;
&lt;br /&gt;
Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
h1 { &lt;br /&gt;
&lt;br /&gt;
color: blue;&lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| Next to the '''body''' '''tag''', type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
This will set the text color to blue and align the content of '''h1 heading tag '''to the centre.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file once again.&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;
|| Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the text appears in blue colour and it is '''center-aligned.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| So far, we have learned to set '''styles''' for the '''HTML element''' as a '''selector'''.&lt;br /&gt;
&lt;br /&gt;
We also declared single and multiple '''style properties''' for the '''selector'''.&lt;br /&gt;
&lt;br /&gt;
Now let us learn about the usage of other '''selectors'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Selectors&lt;br /&gt;
|| &lt;br /&gt;
* '''Descendant''' - This will set the '''style''' if a defined '''element''' comes inside a particular '''element'''&lt;br /&gt;
* '''Grouping''' - This will set the same '''styles''' for multiple '''elements'''&lt;br /&gt;
* '''Universal''' - This will set the '''styles''' of all the '''HTML elements '''at the same time&lt;br /&gt;
* '''Id''' - This will set the '''style''' for a single unique '''element'''&lt;br /&gt;
* '''Class''' - This will set the '''style''' for more than one '''element'''&lt;br /&gt;
&lt;br /&gt;
Let us see some examples for this.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Descendant Selector&lt;br /&gt;
'''p b {color: green;}'''&lt;br /&gt;
||'''Descendant'''.&lt;br /&gt;
In this case if the '''bold tag''' comes inside the '''paragraph tag''', text color will be set to green.&lt;br /&gt;
&lt;br /&gt;
For this we have to give a '''space''' between the '''elements'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of Descendant Selector&lt;br /&gt;
|| Here is an example for '''Descendant Selector'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Grouping Selector&lt;br /&gt;
'''h1, h2, h3 { background-color: red;}'''&lt;br /&gt;
|| '''Grouping'''.&lt;br /&gt;
In this case the background colour for '''h1, h2 '''and''' h3 tags''' will be set to red.&lt;br /&gt;
&lt;br /&gt;
For this we have to use a '''comma '''between the '''elements.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of Grouping Selector&lt;br /&gt;
|| Here is an example for '''Grouping Selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Universal Selector&lt;br /&gt;
'''* {color: blue} '''&lt;br /&gt;
||'''Universal'''.&lt;br /&gt;
This will set the text color for the entire page to blue.&lt;br /&gt;
&lt;br /&gt;
Here instead of '''element''' names, we have to use an '''asterisk symbol''' as a '''selector.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of Universal Selector&lt;br /&gt;
|| Here is an example for '''Universal Selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: id Selector&lt;br /&gt;
&lt;br /&gt;
'''#list1 {color: blue;}'''&lt;br /&gt;
|| '''id'''.&lt;br /&gt;
In this case, in '''CSS''' we have a '''hash symbol''' and a name next to the '''id''' as a '''selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: id Selector&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;ul id=&amp;quot;list1&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;HTML&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;CSS&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;Java Script&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
|| In '''HTML''' we have to use '''id =''' name of the''' id''' in '''double quotes''' inside the respective '''element’s''' start '''tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of id Selector&lt;br /&gt;
|| Here is an example for '''id Selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: class Selector&lt;br /&gt;
&lt;br /&gt;
'''. list1 {color: blue;}'''&lt;br /&gt;
|| '''Class'''.&lt;br /&gt;
In this case, in '''CSS''' we have a '''dot operator''' and a name of the '''class''' as a '''selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: class Selector&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;ul class=&amp;quot;list1&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;HTML&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;CSS&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;Java Script&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;/ul&amp;gt;'''&lt;br /&gt;
|| In '''HTML''' we have to use '''class = '''name of the''' class''' in '''double quotes''' inside the respective '''element’s''' start '''tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of class Selector&lt;br /&gt;
|| Here is an example for '''class Selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Try these on your own.&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 now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|| In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* How to create a '''CSS '''file&lt;br /&gt;
* Syntax of '''CSS'''&lt;br /&gt;
* About types of '''Selectors'''&lt;br /&gt;
* Style '''Declaration'''&lt;br /&gt;
* Linking a '''CSS '''file with a '''HTML '''file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 8: Assignment&lt;br /&gt;
|| As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Create a '''styles.css''' file using any '''text editor'''&lt;br /&gt;
* Set the '''background '''as '''lightblue'''&lt;br /&gt;
* Create a '''webpage.html''' using any '''text editor'''&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output on the '''web browser'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 9:&lt;br /&gt;
&lt;br /&gt;
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 10: Spoken Tutorial Workshops&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;
|| Slide 11:&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|| Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 12:&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|| The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 13: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 14: Thanks&lt;br /&gt;
|| The script for this tutorial is contributed by Praveen.&lt;br /&gt;
&lt;br /&gt;
And this is Madhuri Ganapathi along with Neha Solanki from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Box-Model-in-CSS/English</id>
		<title>CSS/C2/Box-Model-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Box-Model-in-CSS/English"/>
				<updated>2020-10-14T06:57:49Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Box Model in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Praveen S&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Box Model, CSS Border, CSS Margin, CSS Padding&lt;br /&gt;
&lt;br /&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 “'''Box Model''' in '''CSS'''”.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
|| In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''The Box Model'''&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Box sizing'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|| This tutorial is recorded using &lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, you should have basic knowledge of '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: CSS Box Model&lt;br /&gt;
|| Let us learn to style an '''element''' in '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
To style an '''element''', each '''element''' will be considered in the form of a '''box '''with some '''layers'''.&lt;br /&gt;
&lt;br /&gt;
The '''layers''' are:&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Content'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: CSS Box Model&lt;br /&gt;
&lt;br /&gt;
Image of CSS Box Model&lt;br /&gt;
|| This is how the '''CSS Box model''' looks like.&lt;br /&gt;
&lt;br /&gt;
Each '''layer''' has some properties of its own.&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border&lt;br /&gt;
|| The '''border '''layer has the following properties&lt;br /&gt;
&lt;br /&gt;
* '''Style'''&lt;br /&gt;
* '''Width'''&lt;br /&gt;
* '''Color'''&lt;br /&gt;
* '''Individual Sides'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align: center&amp;quot;; cellpadding=&amp;quot;7&amp;quot;&lt;br /&gt;
|'''border-style'''&lt;br /&gt;
|'''border-bottom-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-width'''&lt;br /&gt;
|'''border-right-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-color'''&lt;br /&gt;
|'''border-left-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-top-style&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|| These are how the '''border '''properties are defined.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Open '''my-css '''folder&lt;br /&gt;
|| Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Open mystyle.css&lt;br /&gt;
|| Let’s open the file '''mystyle.css''' in a text editor.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen; }&lt;br /&gt;
|| We have set the '''style''' for a '''div tag'''.&lt;br /&gt;
&lt;br /&gt;
Let us use the same to explain the '''CSS Box Model'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: border-style: solid;&lt;br /&gt;
|| To set the '''border '''I will add some properties.&lt;br /&gt;
&lt;br /&gt;
Inside the '''div tag, '''next to''' background-color '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-style: solid;&lt;br /&gt;
|| I want a solid '''border''', so in the value I have mentioned '''solid'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Mypage.html in firefox&lt;br /&gt;
|| Switch to the '''my-css '''folder.&lt;br /&gt;
&lt;br /&gt;
Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the border&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
We see a black colored solid '''border '''around the '''div''' section.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border Styles&lt;br /&gt;
&lt;br /&gt;
'''dotted solid dashed'''&lt;br /&gt;
&lt;br /&gt;
'''double groove ridge'''&lt;br /&gt;
&lt;br /&gt;
'''inset outset none hidden'''&lt;br /&gt;
|| These are all the available '''border styles '''that can be used.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
|| Instead of '''solid''', let me change it to '''dotted.'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown here.&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 the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''solid border''' is changed to a '''dotted border.'''&lt;br /&gt;
&lt;br /&gt;
Explore the other different '''border styles''' on your own later.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update&lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px; border-color: red; }&lt;br /&gt;
|| Update the '''div style''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-width: 7px; border-color: red;&lt;br /&gt;
|| I have set the '''border width '''as''' 7 pixels''' and changed the '''border color''' to '''red'''.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now we have a '''dotted red border''' with the '''width '''as''' 7 pixels.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px;&lt;br /&gt;
&lt;br /&gt;
border-color: red;&lt;br /&gt;
|| To '''style''' the '''div border''' so far we have used 3 lines of code.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Delete:&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px;&lt;br /&gt;
&lt;br /&gt;
border-color: red;&lt;br /&gt;
|| In '''CSS''' we have a property called '''shorthand '''to simplify this.&lt;br /&gt;
&lt;br /&gt;
Let us understand this with an example.&lt;br /&gt;
&lt;br /&gt;
First, delete these 3 lines.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
|| Now, next to the '''background-color''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
|| The way to write the '''shorthand '''property is '''width, style''' and '''color.'''&lt;br /&gt;
&lt;br /&gt;
It is mandatory to specify the '''border’s '''style, in the '''shorthand '''property. &lt;br /&gt;
&lt;br /&gt;
Otherwise the property will not work.&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 the output&lt;br /&gt;
|| There’s no change in the output.&lt;br /&gt;
&lt;br /&gt;
This indicates that our '''shorthand '''method worked.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| In '''CSS '''we can set different '''border styles '''for each side.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| Inside the '''div style''', next to '''border '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| Here I have set the '''border style '''for the '''top '''and '''bottom '''as '''solid, '''and for '''right''' and '''left '''as '''dotted'''.&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 the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''border styles '''for each side have changed as per the given input.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| To '''style''' the '''div border''' we have used 4 lines of code.&lt;br /&gt;
&lt;br /&gt;
The same can be written in a single line.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Delete &lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| First, delete these 4 lines.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
|| Now, next to the '''border''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
|| Here I have set the '''border style type''' without mentioning the sides.&lt;br /&gt;
&lt;br /&gt;
The order according to '''CSS '''is - '''top, right, bottom, left'''.&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 the output&lt;br /&gt;
|| Again, there is no change in the output.&lt;br /&gt;
&lt;br /&gt;
Which means our simplified code worked well.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Like '''border style''', we can also set different '''width, size''' and '''color '''for each side.&lt;br /&gt;
&lt;br /&gt;
You may try these on your own, later. &lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| The next '''layer''' which we are going to see is '''margin'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: margin: 1cm;&lt;br /&gt;
|| Next to the '''border style '''property, type the code as shown.&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 the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
A '''1 cm''' of '''margin '''space is set to the '''div '''section from all the four sides.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Point to borders.&lt;br /&gt;
|| We can set '''margins '''for each side either individually or in a single line. &lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| Inside the '''div tag''', update the '''margin '''property as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| Here I have set the '''margin '''without mentioning the sides.&lt;br /&gt;
&lt;br /&gt;
The order according to '''CSS '''is - '''top, right, bottom, left'''.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| What if we wish to inherit the '''margin '''space based on the '''parent element'''?&lt;br /&gt;
&lt;br /&gt;
To do that, instead of values, we have to type '''inherit'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
p { width: 75%; margin: inherit; }&lt;br /&gt;
|| Update the '''style''' properties of the '''paragraph tag''' as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
The '''Paragraph '''comes under the '''div '''section.&lt;br /&gt;
&lt;br /&gt;
So, the '''margin '''space for the '''paragraph tag '''is '''inherited''' from the '''div tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] &lt;br /&gt;
&lt;br /&gt;
Delete margin: inherit;&lt;br /&gt;
|| Update the '''style''' properties of the '''paragraph tag''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Padding&lt;br /&gt;
|| The next '''layer''' which we are going to see in the '''CSS Box model, '''is '''Padding.'''&lt;br /&gt;
&lt;br /&gt;
'''Padding '''is a concept to set some space between the '''border '''and the '''content'''.&lt;br /&gt;
&lt;br /&gt;
Let us learn this through some examples.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: padding: 15px;&lt;br /&gt;
|| Let us set the '''padding '''space as 1'''5px.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''div style''' section, next to the '''margin '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
/*margin: 1cm 2cm 3cm 4cm;*/&lt;br /&gt;
|| Let us '''comment''' the '''margin '''property to see the '''padding '''difference clearly.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
A '''padding '''space of''' 15 pixels''' is set to the content inside the '''div '''section.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Like '''border '''and '''margin '''we can also set different '''padding '''sizes to all the four sides.&lt;br /&gt;
&lt;br /&gt;
These can be set either separately or all together.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Note&lt;br /&gt;
|| &lt;br /&gt;
* '''Elements''' of '''HTML''' come with some default '''margin '''and '''padding'''. &lt;br /&gt;
* Not setting these properties doesn't mean it will be absent.&lt;br /&gt;
&lt;br /&gt;
You can try this on your own later.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Width Calculation&lt;br /&gt;
&lt;br /&gt;
Image : Width&lt;br /&gt;
|| In '''CSS''', total width of an '''element''' is calculated as:&lt;br /&gt;
&lt;br /&gt;
'''Total width = width + border + padding'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Height Calculation&lt;br /&gt;
&lt;br /&gt;
Image : Height&lt;br /&gt;
|| And total height of an '''element''' is calculated as:&lt;br /&gt;
&lt;br /&gt;
'''Total height = height + border + padding'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Box Sizing&lt;br /&gt;
|| '''Box Sizing property''' &lt;br /&gt;
&lt;br /&gt;
* It is used to determine how the '''width''' &amp;amp; '''height''' of an '''element''' is calculated.&lt;br /&gt;
* Its values are:&lt;br /&gt;
** '''content-box'''&lt;br /&gt;
** '''border-box'''&lt;br /&gt;
&lt;br /&gt;
Let us understand this with some examples.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: content-box&lt;br /&gt;
|| '''content-box '''&lt;br /&gt;
&lt;br /&gt;
* It is the default '''CSS Box Model'''.&lt;br /&gt;
* The '''width''' &amp;amp; '''height''' assigned to an '''element''' is applied only to the '''content area'''.&lt;br /&gt;
* So in the total or final '''width''' and '''height'''&amp;lt;nowiki&amp;gt;; &amp;lt;/nowiki&amp;gt;'''padding''' and '''border''' are added.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: border-box&lt;br /&gt;
|| '''border-box'''&lt;br /&gt;
&lt;br /&gt;
* '''Padding''' and '''border''' assigned to an '''element '''is adjusted in the '''width''' &amp;amp; '''height''' property.&lt;br /&gt;
* And the '''content area''' shrinks to accommodate them.&lt;br /&gt;
* In the total or final '''width '''and''' height;''' '''padding''' and '''border''' are not added.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight box&lt;br /&gt;
|| Here, the '''width '''of the '''box''' = '''width '''+ '''padding '''+ '''border'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type: &lt;br /&gt;
&lt;br /&gt;
box-sizing: border-box;&lt;br /&gt;
|| Inside the '''div style''' section, next to the '''padding '''property, type the code as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
The text has come out of the '''box''' as its '''width''' and '''height''' are reduced.&lt;br /&gt;
&lt;br /&gt;
That is, the box size shrunk to accommodate the '''50% width.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Let's do some more changes.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Delete: height: 2cm;&lt;br /&gt;
|| Inside the '''div style''' section, delete the code as shown.&lt;br /&gt;
&lt;br /&gt;
By doing this, we are not restricting the '''height'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: padding: 30px;&lt;br /&gt;
|| Now we will change the '''padding '''from '''15px''' to '''30px'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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] Highlight the output&lt;br /&gt;
&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Now you can see the '''width''' of the''' '''box has not changed.&lt;br /&gt;
&lt;br /&gt;
This is because of '''box sizing''' property.&lt;br /&gt;
&lt;br /&gt;
A '''padding '''of '''30px '''is added and the '''content''' inside the '''box''' is adjusted. &lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update: padding: 50px;&lt;br /&gt;
&lt;br /&gt;
Switch to firefox and refresh the page&lt;br /&gt;
|| Try changing the '''padding '''to '''50px''' and observe the output.&lt;br /&gt;
&lt;br /&gt;
You can see the width of the box has not changed.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: border: 17px dotted red;&lt;br /&gt;
|| Now change the border from '''7px '''to '''17px'''.&lt;br /&gt;
&lt;br /&gt;
Update the '''border''' property as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Still the '''width '''of the '''box''' has not changed.&lt;br /&gt;
&lt;br /&gt;
This is because of the '''box sizing''' property.&lt;br /&gt;
&lt;br /&gt;
Only the size of the '''border '''has increased.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:box-sizing: content-box;&lt;br /&gt;
|| Inside the '''div style''' section, update the '''box sizing''' property as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Now we can see the '''width''' of the''' box''' has increased.&lt;br /&gt;
&lt;br /&gt;
As we have added the '''padding '''and '''border, '''the width of the '''box''' has increased.&lt;br /&gt;
&lt;br /&gt;
In this way, we can use '''box-sizing''' property in '''CSS'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Now I will update the '''div '''section for the required properties on this page.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
&lt;br /&gt;
/*margin: 1cm 2cm 3cm 4cm;*/&lt;br /&gt;
&lt;br /&gt;
padding: 15px; }&lt;br /&gt;
|| Update the '''div''' section as shown here.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
This is our required page.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&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: Summary &lt;br /&gt;
|| In this tutorial, we have learnt about&lt;br /&gt;
&lt;br /&gt;
* '''The Box Model'''&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Box sizing'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| As an assignment&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
||&lt;br /&gt;
* Set the following '''styles''' for the '''div tag'''&lt;br /&gt;
** '''Solid border''' for the '''left '''and '''right '''side&lt;br /&gt;
** '''Dotted border''' for the '''bottom'''&lt;br /&gt;
** No '''border '''for the '''top'''&lt;br /&gt;
** '''Margin '''space for all the sides as '''10px'''&lt;br /&gt;
** '''Padding '''space for the '''left '''and '''right '''side as '''15px'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| &lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|| 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;
|| Slide: Forum&lt;br /&gt;
|| Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Thanks&lt;br /&gt;
|| The script for this tutorial is contributed by Praveen&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Background-in-CSS/English</id>
		<title>CSS/C2/Background-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Background-in-CSS/English"/>
				<updated>2020-10-09T14:00:25Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Background in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Ke...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Background in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Background, CSS Background-Color, CSS Background Image, CSS Background Repeat, CSS Background Attachment, CSS Background Position, CSS Color, CSS Background Shorthand&lt;br /&gt;
&lt;br /&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 “'''Background in CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
||In this tutorial, we will learn about''' background '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|| This tutorial is recorded using &lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
*'''HTML5'''&lt;br /&gt;
*'''gedit Text Editor'''&lt;br /&gt;
*'''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, you should have basic knowledge of '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background&lt;br /&gt;
|| To '''style '''the '''background''' of an '''element''', '''CSS''' has the following properties:&lt;br /&gt;
&lt;br /&gt;
*'''background-color'''&lt;br /&gt;
*'''background-image'''&lt;br /&gt;
*'''background-repeat'''&lt;br /&gt;
*'''background-attachment'''&lt;br /&gt;
*'''background-position'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
| | Slide: Background Color&lt;br /&gt;
|| The '''background-color''' can be set using these formats&lt;br /&gt;
&lt;br /&gt;
* '''Color names'''&lt;br /&gt;
* '''Hexadecimal values'''&lt;br /&gt;
* '''RGB (Red Green Blue) values'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|| Open '''my-css '''folder&lt;br /&gt;
|| Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Open mystyle.css&lt;br /&gt;
|| Let’s open the file '''mystyle.css''' in a '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
background-color: yellow;&lt;br /&gt;
|| Here for the '''body''' '''tag''' I have set the '''background-color''' as '''yellow'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Mypage.html in firefox&lt;br /&gt;
|| Switch to the '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''background color''' of the page is set to '''Yellow'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to mystyle.css&lt;br /&gt;
|| Let’s do some more changes to the '''CSS''' file '''mystyle.css'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] mystyle.css&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
background-color: #FFFF00;&lt;br /&gt;
|| Now I will set the '''background color''' to '''yellow '''using the '''hexadecimal value'''.&lt;br /&gt;
&lt;br /&gt;
The '''hexadecimal value''' of '''yellow''' is '''#FFFF00'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''background color''' of the page is still '''yellow'''.&lt;br /&gt;
&lt;br /&gt;
Now I will try with '''RGB color code.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
background-color: rgb(255,102,203);&lt;br /&gt;
|| Now change the '''background color''' to '''pink''' using '''rgb '''value.&lt;br /&gt;
&lt;br /&gt;
'''rgb value '''for '''pink''' is''' rgb(255,102,203);'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
rgb(225,102,203);&lt;br /&gt;
|| '''RGB color''' value is specified with''' rgb(red, green, blue''') ranging between 0 to 255.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''background color''' of the page is set to '''pink.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
||We can also set an'''image''' as the'''background''' for an'''element''' using'''CSS.'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
background-image: url(&amp;quot;tomato.png&amp;quot;);&lt;br /&gt;
|| Inside the '''body tag''', next to the '''width''' property, type the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
url(&amp;quot;tomato.png&amp;quot;);&lt;br /&gt;
|| The name of the '''image''' along with the path should be written inside the '''url( ) function.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
tomato.png&lt;br /&gt;
|| This image is available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and keep it in the folder where you have saved the other code files.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''image''' is set as a '''background'''.&lt;br /&gt;
&lt;br /&gt;
'''Image''' gets floated according to its '''dimension '''to fit the '''background'''. &lt;br /&gt;
&lt;br /&gt;
If the '''image dimension''' is more than the '''background''' then a single '''image''' will be displayed.&lt;br /&gt;
&lt;br /&gt;
Here the '''image dimension''' is less than the '''background'''.&lt;br /&gt;
&lt;br /&gt;
Therefore multiple '''images''' are displayed.&lt;br /&gt;
&lt;br /&gt;
To control this we have some '''background''' properties in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background Repeat&lt;br /&gt;
|| '''background-repeat '''allows to repeat the '''image''' in the '''background''' of an '''element'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background Repeat Values&lt;br /&gt;
|| Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''repeat-x''': repeats '''image''' horizontally.&lt;br /&gt;
* '''repeat-y''': repeats '''image''' vertically.&lt;br /&gt;
* '''no-repeat''': does not repeat, shows '''image''' one time.&lt;br /&gt;
* '''repeat''': It is the default value, which repeats the '''image''' in both directions.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
background-repeat: repeat-x;&lt;br /&gt;
|| First I will repeat the '''image''' horizontally.&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', below the '''background-image '''property, type the code as shown.&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 '''browse'''r and refresh the page&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Earlier the '''background image''' repeated both horizontally and vertically.&lt;br /&gt;
&lt;br /&gt;
Now it is repeated horizontally because the value is set to '''repeat-x'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
background-repeat: repeat-x;&lt;br /&gt;
|| If you wish to repeat the '''image''' vertically, then set the repeat value as '''repeat-y.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
background-repeat: no-repeat;&lt;br /&gt;
|| Now change the '''background-repeat''' value as '''no-repeat'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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 '''browse'''r and refresh the page&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''background image''' is displayed in the '''top left '''corner which is the default position.&lt;br /&gt;
&lt;br /&gt;
It is not repeating.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:Background Attachment&lt;br /&gt;
|| '''background-attachment''' decides whether to scroll the '''image '''or not, along with the '''webpage'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:Background- Attachment&lt;br /&gt;
|| &lt;br /&gt;
* '''scroll:''' allows the '''background image''' to scroll along with the page.&lt;br /&gt;
* '''fixed''': the '''background image '''remains fixed, it is not allowed to scroll.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to mystyle.css&lt;br /&gt;
|| Switch to the '''mystyle.css''' file to try this.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
background-attachment: scroll;&lt;br /&gt;
|| Now I will set the '''background attachment''' to '''scroll.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', next to '''background-repeat''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Mypage.html in text editor&lt;br /&gt;
|| Switch to '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Mypage.html] Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;dl&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;dt&amp;gt; Dry fruits &amp;lt;/dt&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Cashew &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Almond &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Apricot&amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Dates &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Fig &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;dt&amp;gt; Fresh Fruits &amp;lt;/dt&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Orange &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Mango &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Apple &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Grapes &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Melon &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Banana &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Cherry &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Blueberry &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Apricot &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Pineapple &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Dragon Fruit &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Avocados &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Kiwi &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Pear &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Pomegranate &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Plum &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Papaya &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/dl&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|| Next to the '''div closing tag''', type the code as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
As I scroll down, the '''background image''' also gets scrolled.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
background-attachment: fixed;&lt;br /&gt;
|| Change the value of '''background-attachment '''to '''fixed.'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the output as I '''scroll '''down.&lt;br /&gt;
&lt;br /&gt;
The '''background image''' remains fixed, while the other contents are getting scrolled.&lt;br /&gt;
&lt;br /&gt;
This is based on the size of the '''browser''' and the '''content''' available in the page.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Mypage.html&lt;br /&gt;
&lt;br /&gt;
Ctrl + Z&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|| Switch to the '''Mypage.html''' file.&lt;br /&gt;
&lt;br /&gt;
Undo the changes which we have done now.&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background-Position&lt;br /&gt;
|| '''background-position''' is used to specify the position of the '''background image''' of an '''element'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background-Position&lt;br /&gt;
|| The position value for the '''background image''' can be set as: &lt;br /&gt;
&lt;br /&gt;
*'''Percentage (%)'''&lt;br /&gt;
*'''Length values ( eg. mm, cm, px )'''&lt;br /&gt;
*'''keywords (top, right, center, left, bottom)'''&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
background-position: 100% 0%;&lt;br /&gt;
|| I will set the position of the '''background image''' to the '''top right''' corner using '''percentage'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', next to the '''background attachment''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
background-position: 100% 0%;&lt;br /&gt;
|| Here, the first value corresponds to the '''horizontal background''' position.&lt;br /&gt;
&lt;br /&gt;
The second value corresponds to the '''vertical background''' position.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the position of the '''background image''' has changed to the '''top right corner''' of the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
background-position: 4cm 3cm;&lt;br /&gt;
|| Now I will set the position for the '''background image''' using '''length value (cm)'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The position of the '''background image''' has changed as per the given''' length value'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
background-position: right bottom;&lt;br /&gt;
|| Let’s set the position of the '''background image''' to the '''bottom right '''using some '''keywords'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the position of the '''background image''' has changed to the '''bottom right'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Shorthand &lt;br /&gt;
|| Using '''shorthand''', we can write this same code in a single line.&lt;br /&gt;
&lt;br /&gt;
The order in which '''background property''' values should be written is:&lt;br /&gt;
&lt;br /&gt;
'''background: ''color'' ''image'' ''repeat'' ''attachment'' ''position'';'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
body {&lt;br /&gt;
&lt;br /&gt;
background: yellow url(&amp;quot;tomato.png&amp;quot;) no-repeat scroll top right; }&lt;br /&gt;
|| Update the code of the '''body''' '''tag '''as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
This is our required page.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&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: Summary &lt;br /&gt;
||In this tutorial, we have learnt about '''background '''properties of an '''element '''in''' CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
||&lt;br /&gt;
* Set the following '''styles''' for the '''body tag:'''&lt;br /&gt;
** '''Image''' as a '''background'''&lt;br /&gt;
** '''no-repeat '''for''' background-repeat'''&lt;br /&gt;
** '''background-position''' to '''top right'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| &lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
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;
||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;
|| Slide: Forum&lt;br /&gt;
|| Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Thanks&lt;br /&gt;
|| The script for this tutorial is contributed by Neha Solanki&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Box-Model-in-CSS/English</id>
		<title>CSS/C2/Box-Model-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Box-Model-in-CSS/English"/>
				<updated>2020-10-09T13:26:01Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Box Model in CSS  '''Author:''' Praveen S  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keywor...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Box Model in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Praveen S&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Box Model, CSS Border, CSS Margin, CSS Padding&lt;br /&gt;
&lt;br /&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 “'''Box Model''' in '''CSS'''”.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
|| In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''The Box Model'''&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Box sizing'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|| This tutorial is recorded using &lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, you should have basic knowledge of '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: CSS Box Model&lt;br /&gt;
|| Let us learn to style an '''element''' in '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
To style an '''element''', each '''element''' will be considered in the form of a '''box '''with some '''layers'''.&lt;br /&gt;
&lt;br /&gt;
The '''layers''' are:&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Content'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: CSS Box Model&lt;br /&gt;
&lt;br /&gt;
Image of CSS Box Model&lt;br /&gt;
|| This is how the '''CSS Box model''' looks like.&lt;br /&gt;
&lt;br /&gt;
Each '''layer''' has some properties of its own.&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border&lt;br /&gt;
|| The '''border '''layer has the following properties&lt;br /&gt;
&lt;br /&gt;
* '''Style'''&lt;br /&gt;
* '''Width'''&lt;br /&gt;
* '''Color'''&lt;br /&gt;
* '''Individual Sides'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align: center&amp;quot;; cellpadding=&amp;quot;7&amp;quot;&lt;br /&gt;
|'''border-style'''&lt;br /&gt;
|'''border-bottom-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-width'''&lt;br /&gt;
|'''border-right-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-color'''&lt;br /&gt;
|'''border-left-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-top-style&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|| These are how the '''border '''properties are defined.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Open '''my-css '''folder&lt;br /&gt;
|| Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Open mystyle.css&lt;br /&gt;
|| Let’s open the file '''mystyle.css''' in a text editor.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen; }&lt;br /&gt;
|| We have set the '''style''' for a '''div tag'''.&lt;br /&gt;
&lt;br /&gt;
Let us use the same to explain the '''CSS Box Model'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: border-style: solid;&lt;br /&gt;
|| To set the '''border '''I will add some properties.&lt;br /&gt;
&lt;br /&gt;
Inside the '''div tag, '''next to''' background-color '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-style: solid;&lt;br /&gt;
|| I want a solid '''border''', so in the value I have mentioned '''solid'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Mypage.html in firefox&lt;br /&gt;
|| Switch to the '''my-css '''folder.&lt;br /&gt;
&lt;br /&gt;
Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the border&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
We see a black colored solid '''border '''around the '''div''' section.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border Styles&lt;br /&gt;
&lt;br /&gt;
'''dotted solid dashed'''&lt;br /&gt;
&lt;br /&gt;
'''double groove ridge'''&lt;br /&gt;
&lt;br /&gt;
'''inset outset none hidden'''&lt;br /&gt;
|| These are all the available '''border styles '''that can be used.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
|| Instead of '''solid''', let me change it to '''dotted.'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown here.&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 the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''solid border''' is changed to a '''dotted border.'''&lt;br /&gt;
&lt;br /&gt;
Explore the other different '''border styles''' on your own later.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update&lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px; border-color: red; }&lt;br /&gt;
|| Update the '''div style''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-width: 7px; border-color: red;&lt;br /&gt;
|| I have set the '''border width '''as''' 7 pixels''' and changed the '''border color''' to '''red'''.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now we have a '''dotted red border''' with the '''width '''as''' 7 pixels.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px;&lt;br /&gt;
&lt;br /&gt;
border-color: red;&lt;br /&gt;
|| To '''style''' the '''div border''' so far we have used 3 lines of code.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Delete:&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px;&lt;br /&gt;
&lt;br /&gt;
border-color: red;&lt;br /&gt;
|| In '''CSS''' we have a property called '''shorthand '''to simplify this.&lt;br /&gt;
&lt;br /&gt;
Let us understand this with an example.&lt;br /&gt;
&lt;br /&gt;
First, delete these 3 lines.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
|| Now, next to the '''background-color''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
|| The way to write the '''shorthand '''property is '''width, style''' and '''color.'''&lt;br /&gt;
&lt;br /&gt;
It is mandatory to specify the '''border’s '''style, in the '''shorthand '''property. &lt;br /&gt;
&lt;br /&gt;
Otherwise the property will not work.&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 the output&lt;br /&gt;
|| There’s no change in the output.&lt;br /&gt;
&lt;br /&gt;
This indicates that our '''shorthand '''method worked.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| In '''CSS '''we can set different '''border styles '''for each side.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| Inside the '''div style''', next to '''border '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| Here I have set the '''border style '''for the '''top '''and '''bottom '''as '''solid, '''and for '''right''' and '''left '''as '''dotted'''.&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 the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''border styles '''for each side have changed as per the given input.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| To '''style''' the '''div border''' we have used 4 lines of code.&lt;br /&gt;
&lt;br /&gt;
The same can be written in a single line.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Delete &lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| First, delete these 4 lines.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
|| Now, next to the '''border''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
|| Here I have set the '''border style type''' without mentioning the sides.&lt;br /&gt;
&lt;br /&gt;
The order according to '''CSS '''is - '''top, right, bottom, left'''.&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 the output&lt;br /&gt;
|| Again, there is no change in the output.&lt;br /&gt;
&lt;br /&gt;
Which means our simplified code worked well.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Like '''border style''', we can also set different '''width, size''' and '''color '''for each side.&lt;br /&gt;
&lt;br /&gt;
You may try these on your own, later. &lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| The next '''layer''' which we are going to see is '''margin'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: margin: 1cm;&lt;br /&gt;
|| Next to the '''border style '''property, type the code as shown.&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 the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
A '''1 cm''' of '''margin '''space is set to the '''div '''section from all the four sides.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Point to borders.&lt;br /&gt;
|| We can set '''margins '''for each side either individually or in a single line. &lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| Inside the '''div tag''', update the '''margin '''property as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| Here I have set the '''margin '''without mentioning the sides.&lt;br /&gt;
&lt;br /&gt;
The order according to '''CSS '''is - '''top, right, bottom, left'''.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| What if we wish to inherit the '''margin '''space based on the '''parent element'''?&lt;br /&gt;
&lt;br /&gt;
To do that, instead of values, we have to type '''inherit'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
p { width: 75%; margin: inherit; }&lt;br /&gt;
|| Update the '''style''' properties of the '''paragraph tag''' as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
The '''Paragraph '''comes under the '''div '''section.&lt;br /&gt;
&lt;br /&gt;
So, the '''margin '''space for the '''paragraph tag '''is '''inherited''' from the '''div tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] &lt;br /&gt;
&lt;br /&gt;
Delete margin: inherit;&lt;br /&gt;
|| Update the '''style''' properties of the '''paragraph tag''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Padding&lt;br /&gt;
|| The next '''layer''' which we are going to see in the '''CSS Box model, '''is '''Padding.'''&lt;br /&gt;
&lt;br /&gt;
'''Padding '''is a concept to set some space between the '''border '''and the '''content'''.&lt;br /&gt;
&lt;br /&gt;
Let us learn this through some examples.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: padding: 15px;&lt;br /&gt;
|| Let us set the '''padding '''space as 1'''5px.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''div style''' section, next to the '''margin '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
/*margin: 1cm 2cm 3cm 4cm;*/&lt;br /&gt;
|| Let us '''comment''' the '''margin '''property to see the '''padding '''difference clearly.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
A '''padding '''space of''' 15 pixels''' is set to the content inside the '''div '''section.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Like '''border '''and '''margin '''we can also set different '''padding '''sizes to all the four sides.&lt;br /&gt;
&lt;br /&gt;
These can be set either separately or all together.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Note&lt;br /&gt;
|| &lt;br /&gt;
* '''Elements''' of '''HTML''' come with some default '''margin '''and '''padding'''. &lt;br /&gt;
* Not setting these properties doesn't mean it will be absent.&lt;br /&gt;
&lt;br /&gt;
You can try this on your own later.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Width Calculation&lt;br /&gt;
&lt;br /&gt;
Image : Width&lt;br /&gt;
|| In '''CSS''', total width of an '''element''' is calculated as:&lt;br /&gt;
&lt;br /&gt;
'''Total width = width + border + padding'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Height Calculation&lt;br /&gt;
&lt;br /&gt;
Image : Height&lt;br /&gt;
|| And total height of an '''element''' is calculated as:&lt;br /&gt;
&lt;br /&gt;
'''Total height = height + border + padding'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Box Sizing&lt;br /&gt;
|| '''Box Sizing property''' &lt;br /&gt;
&lt;br /&gt;
* It is used to determine how the '''width''' &amp;amp; '''height''' of an '''element''' is calculated.&lt;br /&gt;
* Its values are:&lt;br /&gt;
** '''content-box'''&lt;br /&gt;
** '''border-box'''&lt;br /&gt;
&lt;br /&gt;
Let us understand this with some examples.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: content-box&lt;br /&gt;
|| '''content-box '''&lt;br /&gt;
&lt;br /&gt;
* It is the default '''CSS Box Model'''.&lt;br /&gt;
* The '''width''' &amp;amp; '''height''' assigned to an '''element''' is applied only to the '''content area'''.&lt;br /&gt;
* So in the total or final '''width''' and '''height'''&amp;lt;nowiki&amp;gt;; &amp;lt;/nowiki&amp;gt;'''padding''' and '''border''' are added.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: border-box&lt;br /&gt;
|| '''border-box'''&lt;br /&gt;
&lt;br /&gt;
* '''Padding''' and '''border''' assigned to an '''element '''is adjusted in the '''width''' &amp;amp; '''height''' property.&lt;br /&gt;
* And the '''content area''' shrinks to accommodate them.&lt;br /&gt;
* In the total or final '''width '''and''' height;''' '''padding''' and '''border''' are not added.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight box&lt;br /&gt;
|| Here, the '''width '''of the '''box''' = '''width '''+ '''padding '''+ '''border'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type: &lt;br /&gt;
&lt;br /&gt;
box-sizing: border-box;&lt;br /&gt;
|| Inside the '''div style''' section, next to the '''padding '''property, type the code as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
The text has come out of the '''box''' as its '''width''' and '''height''' are reduced.&lt;br /&gt;
&lt;br /&gt;
That is, the box size shrunk to accommodate the '''50% width.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Let's do some more changes.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Delete: height: 2cm;&lt;br /&gt;
|| Inside the '''div style''' section, delete the code as shown.&lt;br /&gt;
&lt;br /&gt;
By doing this, we are not restricting the '''height'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: padding: 30px;&lt;br /&gt;
|| Now we will change the '''padding '''from '''15px''' to '''30px'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&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] Highlight the output&lt;br /&gt;
&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Now you can see the '''width''' of the''' '''box has not changed.&lt;br /&gt;
&lt;br /&gt;
This is because of '''box sizing''' property.&lt;br /&gt;
&lt;br /&gt;
A '''padding '''of '''30px '''is added and the '''content''' inside the '''box''' is adjusted. &lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update: padding: 50px;&lt;br /&gt;
&lt;br /&gt;
Switch to firefox and refresh the page&lt;br /&gt;
|| Try changing the '''padding '''to '''50px''' and observe the output.&lt;br /&gt;
&lt;br /&gt;
You can see the width of the box has not changed.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: border: 17px dotted red;&lt;br /&gt;
|| Now change the border from '''7px '''to '''17px'''.&lt;br /&gt;
&lt;br /&gt;
Update the '''border''' property as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Still the '''width '''of the '''box''' has not changed.&lt;br /&gt;
&lt;br /&gt;
This is because of the '''box sizing''' property.&lt;br /&gt;
&lt;br /&gt;
Only the size of the '''border '''has increased.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:box-sizing: content-box;&lt;br /&gt;
|| Inside the '''div style''' section, update the '''box sizing''' property as shown.&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] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Now we can see the '''width''' of the''' box''' has increased.&lt;br /&gt;
&lt;br /&gt;
As we have added the '''padding '''and '''border, '''the width of the '''box''' has increased.&lt;br /&gt;
&lt;br /&gt;
In this way, we can use '''box-sizing''' property in '''CSS'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Now I will update the '''div '''section for the required properties on this page.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
&lt;br /&gt;
/*margin: 1cm 2cm 3cm 4cm;*/&lt;br /&gt;
&lt;br /&gt;
padding: 15px; }&lt;br /&gt;
|| Update the '''div''' section as shown here.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
This is our required page.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&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: Summary &lt;br /&gt;
|| In this tutorial, we have learnt about&lt;br /&gt;
&lt;br /&gt;
* '''The Box Model'''&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Box sizing'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier.&lt;br /&gt;
* Set the following '''styles''' for the '''div tag'''&lt;br /&gt;
* '''Solid border''' for the '''left '''and '''right '''side&lt;br /&gt;
* '''Dotted border''' for the '''bottom'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| &lt;br /&gt;
* No '''border '''for the '''top'''&lt;br /&gt;
* '''Margin '''space for all the sides as '''10px'''&lt;br /&gt;
* '''Padding '''space for the '''left '''and '''right '''side as '''15px'''&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|| 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;
|| Slide: Forum&lt;br /&gt;
|| Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Thanks&lt;br /&gt;
|| The script for this tutorial is contributed by Praveen&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/Dimensions-and-Measuring-units-in-CSS/English</id>
		<title>CSS/C2/Dimensions-and-Measuring-units-in-CSS/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/Dimensions-and-Measuring-units-in-CSS/English"/>
				<updated>2020-10-09T12:22:22Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''Dimensions and Measuring Units in CSS  '''Author:''' Praveen S  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''Dimensions and Measuring Units in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Praveen S&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Units, CSS Measuring Units, CSS Dimensions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 “'''Dimensions and Measuring Units'''” in '''CSS'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
|| In this tutorial we will learn the usage of:&lt;br /&gt;
&lt;br /&gt;
*Measuring '''units '''and&lt;br /&gt;
*Width &amp;amp; height in '''CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: &lt;br /&gt;
&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;
*'''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, you should know to use '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Measuring Units&lt;br /&gt;
|| In '''CSS''' we use some of the common measuring units to define the '''style properties'''.&lt;br /&gt;
*There are two types of '''measuring units''':&lt;br /&gt;
** '''Relative Units'''&lt;br /&gt;
** '''Absolute Units'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Relative Units&lt;br /&gt;
|| Relative Units&lt;br /&gt;
&lt;br /&gt;
*They are relative to other '''measuring units.'''&lt;br /&gt;
*It consists of '''units''' like: &lt;br /&gt;
** '''Percentage (%)'''&lt;br /&gt;
** '''em'''&lt;br /&gt;
** '''ex'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Absolute Units&lt;br /&gt;
|| Absolute Units&lt;br /&gt;
&lt;br /&gt;
*They are fixed and not relative to other units.&lt;br /&gt;
*It consists of physical '''units''' like:&lt;br /&gt;
** '''Point (pt)'''&lt;br /&gt;
** '''Pixel (px)'''&lt;br /&gt;
** '''Millimetre (mm)'''&lt;br /&gt;
** '''Centimetre (cm)'''&lt;br /&gt;
** '''Inch (in)'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Let us understand the dimensions and measuring units through some examples.&lt;br /&gt;
|-&lt;br /&gt;
|| Open '''my-css '''folder&lt;br /&gt;
|| Go to the practice folder '''my-css'''&lt;br /&gt;
|-&lt;br /&gt;
|| Open mystyle.css in gedit text editor&lt;br /&gt;
|| Open the '''mystyle.css''' file which we had created earlier, in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Point to Mypage.html in my-css folder&lt;br /&gt;
|| For this demonstration, I’m also using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practise.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Mypage.html in gedit&lt;br /&gt;
|| Open the file '''Mypage.html '''also in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Open Mypage.html in firefox&lt;br /&gt;
|| Switch to the folder.&lt;br /&gt;
&lt;br /&gt;
Now open the same file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| Observe the output in the '''browser''' window.&lt;br /&gt;
&lt;br /&gt;
Now let us set the '''width '''of the body to '''50%''' less than the normal width in the '''CSS''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: width: 50%;&lt;br /&gt;
|| Switch to the file '''mystyle.css'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''body''' '''tag,''' next to the '''background-color property,''' type the code as shown.&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;
|  | Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the alignment for the text has changed.&lt;br /&gt;
&lt;br /&gt;
This is because the total '''width '''of the page has changed.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to mystyle.css&lt;br /&gt;
|| We’ll make some more changes in this '''CSS''' file.&lt;br /&gt;
&lt;br /&gt;
Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: font-size: 150%;&lt;br /&gt;
|| Inside the '''h1 tag, '''next to''' text-align property, '''type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: font-size: 150%;&lt;br /&gt;
|| This code is supposed to set the '''font size''' of '''h1 tag '''to '''150%''' bigger than the normal size.&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;
|| Highlight the output&lt;br /&gt;
|| Observe the change in the '''heading'''.&lt;br /&gt;
&lt;br /&gt;
The content of the '''H1 heading tag''' has become smaller.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight: font-size: 150%;&lt;br /&gt;
|| But in our code, we have set the font size of the '''H1 heading tag''' to '''150%.'''&lt;br /&gt;
&lt;br /&gt;
According to this, the '''H1 tag''' content should be bigger than the normal size.&lt;br /&gt;
|-&lt;br /&gt;
|| [Text box on the screen]&lt;br /&gt;
&lt;br /&gt;
'''Browser's''' default font size is''' 16px'''&lt;br /&gt;
&lt;br /&gt;
'''Body’s '''default font size is also''' 16px'''&lt;br /&gt;
|| The '''browser's''' default font size is''' 16px''', which is also the default font size of the '''body'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
[Text box on the screen]&lt;br /&gt;
&lt;br /&gt;
'''Body '''is the '''parent element''' of '''h1''', so '''1.5 x 16px = 24px'''&lt;br /&gt;
|| In the code, we have mentioned the font size as '''150%'''.&lt;br /&gt;
&lt;br /&gt;
As mentioned earlier, % is a relative '''unit''' and it is relative to the '''parent element'''.&lt;br /&gt;
&lt;br /&gt;
Here, the '''body '''is the '''parent element''' of '''h1''', so '''1.5 x 16px = 24px'''&lt;br /&gt;
&lt;br /&gt;
That’s why it sets the font size of the specific content to '''24 pixels'''.&lt;br /&gt;
&lt;br /&gt;
Hence our output looks smaller.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: font-size: 300%;&lt;br /&gt;
|| Now, let’s go back to the '''css''' file and change the font size from '''150% '''to '''300%'''&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;
|| Come back to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight the output&lt;br /&gt;
&lt;br /&gt;
[Text box on the screen]&lt;br /&gt;
&lt;br /&gt;
'''3 x 16px = 48px'''&lt;br /&gt;
|| Observe the change in the '''heading'''.&lt;br /&gt;
&lt;br /&gt;
The content of the '''H1 heading tag''' has become bigger now.&lt;br /&gt;
&lt;br /&gt;
This is because '''3 x 16px = 48px'''&lt;br /&gt;
|-&lt;br /&gt;
|| Cursor in the browser.&lt;br /&gt;
|| So far, we have set the measuring '''unit''' as '''%''' for '''font size''' and '''width'''.&lt;br /&gt;
&lt;br /&gt;
Now we’ll try to set the '''font size '''of '''h1''' in '''points'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: font-size: 15pt;&lt;br /&gt;
|| Switch to the file '''mystyle.css'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''h1 tag''', update the value for '''font size''' to '''15pt.'''&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;
|| Highlight the output&lt;br /&gt;
&lt;br /&gt;
[Text box on the screen]&lt;br /&gt;
&lt;br /&gt;
advisable to use '''point''' or '''pixel''' for '''font size'''&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
The size of the '''heading''' has changed, and it has become small.&lt;br /&gt;
&lt;br /&gt;
Generally, any measuring '''unit''' can be used to set the '''font size'''.&lt;br /&gt;
&lt;br /&gt;
But it is advisable to use '''point''' or '''pixel''' for '''font size''', as these are used universally. &lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Heading Tag sizes&lt;br /&gt;
&lt;br /&gt;
|| Here is the detailed information about the font size of '''heading tags''' and '''units'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Mypage.html]&lt;br /&gt;
|| Next, let’s learn how to use '''width''' and '''height attributes'''.&lt;br /&gt;
&lt;br /&gt;
Switch to the file '''Mypage.html'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Mypage.html] Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;p&amp;gt; A farmers' market is a place, where you can buy vegetables directly from the farmers. &amp;lt;/p&amp;gt;&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
|| Next to the '''h1 heading tag''' let us add a '''paragraph.'''&lt;br /&gt;
&lt;br /&gt;
Type the code as shown here.&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 the output&lt;br /&gt;
|| Observe the output. &lt;br /&gt;
&lt;br /&gt;
We see the paragraph that we added.&lt;br /&gt;
&lt;br /&gt;
Next, we will modify the '''style''' for the '''paragraph tag''' in the '''CSS '''file.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
p { &lt;br /&gt;
&lt;br /&gt;
:width: 75%;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| Switch to the '''CSS''' file.&lt;br /&gt;
&lt;br /&gt;
Next to the '''h1 tag''', type the code as shown.&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 the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The width of the content within the '''paragraph tag''' has reduced.&lt;br /&gt;
&lt;br /&gt;
Already the width of the page is set to''' 50%''' of the normal width.&lt;br /&gt;
&lt;br /&gt;
So now the width of the '''paragraph tag''' is '''75%''' of the page’s current width.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Mypage.html] Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;p&amp;gt; A farmers' market is a place, where you can buy vegetables directly from the farmers. &amp;lt;/p&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|| Switch to the '''Mypage.html''' file in the '''text editor'''.&lt;br /&gt;
&lt;br /&gt;
Let me put the '''paragraph tag''' and its content inside the '''div tag'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown here.&lt;br /&gt;
&lt;br /&gt;
Here the '''div tag''' defines a section in an '''HTML''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
div { &lt;br /&gt;
&lt;br /&gt;
:width: 50%;&lt;br /&gt;
&lt;br /&gt;
:height: 2cm;&lt;br /&gt;
&lt;br /&gt;
:background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| Now, go to the file '''mystyle.css''' and set the '''properties''' for the '''div tag'''.&lt;br /&gt;
&lt;br /&gt;
Next to the '''paragraph tag, '''type the code as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
highlight: width: 50%;&lt;br /&gt;
|| Here I have set the '''width''' of the '''div tag''' as 50% of the width of the '''body tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
highlight: height: 2cm;&lt;br /&gt;
|| I have set the '''height''' of the '''div tag''' as '''2 cm.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
highlight: background-color: lightgreen;&lt;br /&gt;
|| The '''background color''' for the '''div tag''' is set to '''light green.'''&lt;br /&gt;
&lt;br /&gt;
This will help us to see the '''width''' and '''height''' of the '''div tag''' clearly.&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 back 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;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Based on the '''width''' and '''height''' of the '''div tag''', the background color has been set.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph tag content&lt;br /&gt;
|| The '''width''' of the '''paragraph tag''' is reduced again.&lt;br /&gt;
&lt;br /&gt;
This is because the '''paragraph''' '''tag''' is inside the '''div tag'''.&lt;br /&gt;
&lt;br /&gt;
Width of the content of the '''paragraph tag''' will be set as '''75%''' of the '''width''' of the '''div tag.''' &lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| This is how we set the '''width''' and '''height''' of the '''elements''' using various measuring units.&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 what we have learnt.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Summary&lt;br /&gt;
&lt;br /&gt;
|| In this tutorial, we have learnt the usage of :&lt;br /&gt;
*Measuring '''units '''and&lt;br /&gt;
*Width &amp;amp; Height in '''CSS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| As an assignment-&lt;br /&gt;
*Open the file '''webpage.html''' which you have created earlier.&lt;br /&gt;
*Create a '''div tag.'''&lt;br /&gt;
*Inside the '''div tag''', add some content using the '''paragraph tag.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| &lt;br /&gt;
*Open the file '''styles.css''' which you have created earlier.&lt;br /&gt;
*Set the '''width''' of the '''div tag''' to '''5cm.'''&lt;br /&gt;
*Set the '''height''' of the '''div tag''' to '''5cm.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| &lt;br /&gt;
*Set the '''background color''' of the '''div tag''' to '''pink.'''&lt;br /&gt;
*Link the''' styles.css file '''to''' webpage.html file'''&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
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;
|| 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;
|| Slide: Forum&lt;br /&gt;
|| Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Thanks&lt;br /&gt;
|| The script for this tutorial is contributed by Praveen&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/CSS/C2/First-CSS-file/English</id>
		<title>CSS/C2/First-CSS-file/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/CSS/C2/First-CSS-file/English"/>
				<updated>2020-10-09T11:01:06Z</updated>
		
		<summary type="html">&lt;p&gt;Nehasolanki: Created page with &amp;quot;'''Title of the script: '''First CSS File  '''Author:''' Praveen S  '''webDomain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keywo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: '''First CSS File&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Praveen S&lt;br /&gt;
&lt;br /&gt;
'''webDomain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Syntax, CSS Property, CSS Selector, CSS Declaration, Descendant Selector, Grouping Selector, Universal Selector Id Selector, Class Selector &lt;br /&gt;
&lt;br /&gt;
&lt;br /&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 '''First CSS File'''.&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,&lt;br /&gt;
&lt;br /&gt;
* To create a '''CSS''' file &lt;br /&gt;
* Syntax of '''CSS'''&lt;br /&gt;
* Linking a '''CSS''' file with the '''HTML''' file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 3: &lt;br /&gt;
&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;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 4: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, &lt;br /&gt;
&lt;br /&gt;
You should know to use any '''WYSIWYG '''or '''Text Editor''' and a '''Web Browser'''.&lt;br /&gt;
&lt;br /&gt;
You should also have some basic knowledge of '''HTML.'''&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 5: Code Files&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;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Gedit&lt;br /&gt;
|| Now we will see how to create a simple '''CSS style''' file.&lt;br /&gt;
&lt;br /&gt;
Open any '''text editor'''. &lt;br /&gt;
&lt;br /&gt;
I have already opened my '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Syntax&lt;br /&gt;
&lt;br /&gt;
selector {property: value}&lt;br /&gt;
|| This is the syntax to write the style for the '''HTML'''&lt;br /&gt;
&lt;br /&gt;
The syntax has two parts:&lt;br /&gt;
&lt;br /&gt;
'''Selector''' and '''Declaration'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Selector&lt;br /&gt;
|| The '''selector''' can be any one of the following:&lt;br /&gt;
&lt;br /&gt;
* '''Element'''&lt;br /&gt;
* '''Descendant'''&lt;br /&gt;
* '''Grouping'''&lt;br /&gt;
* '''Universal'''&lt;br /&gt;
* '''Id'''&lt;br /&gt;
* '''Class'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Declaration&lt;br /&gt;
|| &lt;br /&gt;
* '''Declaration''' assigns a particular '''property''' and '''value''' to the '''selector'''.&lt;br /&gt;
* We can declare multiple style '''properties''' for a '''selector''' using a '''semicolon'''.&lt;br /&gt;
* '''Declaration''' has to be written inside the braces.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Syntax Example&lt;br /&gt;
|| Here is an example.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to gedit&lt;br /&gt;
|| Now let us start writing our '''CSS''' code.&lt;br /&gt;
&lt;br /&gt;
Switch to the '''editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit]&lt;br /&gt;
&lt;br /&gt;
body {&lt;br /&gt;
&lt;br /&gt;
background-color: yellow;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| First we will set the background color for the '''body''' as '''yellow'''.&lt;br /&gt;
&lt;br /&gt;
To do so, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] Highlight: body&lt;br /&gt;
|| Here the '''selector''' is '''body''', a '''HTML tag.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] Highlight: &lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
background-color: yellow;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| Next I have declared the '''style''' within curly braces.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] Highlight: &lt;br /&gt;
&lt;br /&gt;
background-color: yellow;&lt;br /&gt;
|| In the '''declaration''' part, '''background-color''' is the '''style property''' and '''yellow''' is its '''value'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Our code is ready. &lt;br /&gt;
&lt;br /&gt;
So let’s save this file now.&lt;br /&gt;
|-&lt;br /&gt;
|| Press '''Ctrl + S'''&lt;br /&gt;
|| I’ll press '''Ctrl + S '''keys on my keyboard.&lt;br /&gt;
&lt;br /&gt;
The '''Save''' '''As''' dialog box opens.&lt;br /&gt;
|-&lt;br /&gt;
|| Select Desktop&lt;br /&gt;
|| Now choose the desired location to save your file.&lt;br /&gt;
&lt;br /&gt;
I will select '''Desktop''' on my machine.&lt;br /&gt;
|-&lt;br /&gt;
|| Create Folder →my-css&lt;br /&gt;
|| Then I will create a folder with the help of the “'''Create Folder'''” button and name it as '''my hyphen css'''.&lt;br /&gt;
&lt;br /&gt;
This folder will help me to organize my '''css''' files in a single location on my machine.&lt;br /&gt;
|-&lt;br /&gt;
|| Filename → mystyle.css&lt;br /&gt;
&lt;br /&gt;
|| I will name the file as '''mystyle.css'''&lt;br /&gt;
&lt;br /&gt;
Please note that the '''CSS''' files have to be saved with '''.css''' file extension.&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Save'''&lt;br /&gt;
|| Then, click on the '''Save''' button. &lt;br /&gt;
&lt;br /&gt;
Our file is saved now.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Desktop → my-css folder &amp;gt;&amp;gt; double-click to open&lt;br /&gt;
|| Let us check our saved file.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Desktop''' folder.&lt;br /&gt;
&lt;br /&gt;
Here is the folder '''my hyphen css.'''&lt;br /&gt;
&lt;br /&gt;
I will double-click to open it.&lt;br /&gt;
|-&lt;br /&gt;
|| Point to css file&lt;br /&gt;
|| This is the newly created '''CSS''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| We have successfully created our first '''CSS''' file and saved it.&lt;br /&gt;
&lt;br /&gt;
Now let’s learn how to '''run''' it.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Note&lt;br /&gt;
|| &lt;br /&gt;
* '''CSS''' file is a dependent file.&lt;br /&gt;
* It must be linked with a '''HTML''' file to see the changes.&lt;br /&gt;
&lt;br /&gt;
Let us link a '''CSS''' file to a '''HTML''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| Point to Mypage.html in my-css folder&lt;br /&gt;
|| For this demonstration, we will use the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
I have already downloaded this file and saved it in my practice folder.&lt;br /&gt;
&lt;br /&gt;
The same file is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click &amp;gt;&amp;gt; select '''Open With'''&lt;br /&gt;
|| Right-click on the '''HTML''' file and select '''Open With Other Application '''option.&lt;br /&gt;
|-&lt;br /&gt;
|| Select '''Open With Firefox'''&lt;br /&gt;
|| Then choose any '''web browser''' that is available. &lt;br /&gt;
&lt;br /&gt;
I will choose '''Firefox'''.&lt;br /&gt;
&lt;br /&gt;
This will open our '''HTML''' file in the '''Firefox web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight the background&lt;br /&gt;
|| The '''webpage''' opens.&lt;br /&gt;
&lt;br /&gt;
Notice that the background color of the page is white.&lt;br /&gt;
&lt;br /&gt;
Now let us set the background color to yellow with the help of our '''CSS''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click &amp;gt;&amp;gt; select '''Open With'''&lt;br /&gt;
|| Switch to the folder.&lt;br /&gt;
&lt;br /&gt;
Right-click on the '''HTML''' file and select '''Open With Other Application '''option.&lt;br /&gt;
|-&lt;br /&gt;
|| Select '''Open With gedit'''&lt;br /&gt;
|| Then choose any '''text editor''' that is available. &lt;br /&gt;
&lt;br /&gt;
I will choose '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
This will open our '''HTML''' file in the '''gedit text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;mystyle.css&amp;quot;&amp;gt;&lt;br /&gt;
|| Inside the '''head''' section next to the '''title tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;mystyle.css&amp;quot;&amp;gt;&lt;br /&gt;
|| This will link the '''mystyle.css''' file which we created earlier, to this '''HTML''' file.&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;
|| Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the background color is set to yellow.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to mystyle.css&lt;br /&gt;
|| Let’s do some more changes in the '''CSS''' file.&lt;br /&gt;
&lt;br /&gt;
Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
h1 { &lt;br /&gt;
&lt;br /&gt;
color: blue;&lt;br /&gt;
&lt;br /&gt;
text-align: center;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
|| Next to the '''body''' '''tag''', type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
This will set the text color to blue and align the content of '''h1 heading tag '''to the centre.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file once again.&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;
|| Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the text appears in blue colour and it is '''center-aligned.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| So far, we have learned to set '''styles''' for the '''HTML element''' as a '''selector'''.&lt;br /&gt;
&lt;br /&gt;
We also declared single and multiple '''style properties''' for the '''selector'''.&lt;br /&gt;
&lt;br /&gt;
Now let us learn about the usage of other '''selectors'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Selectors&lt;br /&gt;
|| &lt;br /&gt;
* '''Descendant''' - Will set the style if a defined element comes inside a particular element&lt;br /&gt;
* '''Grouping''' - Will set the same styles for multiple elements&lt;br /&gt;
* '''Universal''' - Will set the styles of all the '''HTML elements '''at the same time&lt;br /&gt;
* '''Id''' - Will set the style for a single unique element&lt;br /&gt;
* '''Class''' - Will set the style for more than one element&lt;br /&gt;
&lt;br /&gt;
Let us see some examples for this.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Descendant Selector&lt;br /&gt;
|| '''p b {color: green;}'''&lt;br /&gt;
&lt;br /&gt;
In this case if the '''bold tag''' comes inside the '''paragraph tag''', text color will be set to green.&lt;br /&gt;
&lt;br /&gt;
For this we have to give a '''space''' between the '''elements'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of Descendant Selector&lt;br /&gt;
|| Here is an example for '''Descendant Selector'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Grouping Selector&lt;br /&gt;
|| '''h1, h2, h3 { background-color: red;}'''&lt;br /&gt;
&lt;br /&gt;
In this case the background colour for '''h1, h2 '''and''' h3 tags''' will be set to red.&lt;br /&gt;
&lt;br /&gt;
For this we have to use a '''comma '''between the '''elements.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of Grouping Selector&lt;br /&gt;
|| Here is an example for '''Grouping Selector'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Universal Selector&lt;br /&gt;
|| '''* {color: blue} '''&lt;br /&gt;
&lt;br /&gt;
This will set the text color for the entire page to blue.&lt;br /&gt;
&lt;br /&gt;
Here instead of '''element''' names, we have to use an '''asterisk''' '''symbol''' as a '''selector.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of Universal Selector&lt;br /&gt;
|| Here is an example for '''Universal Selector'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: id Selector&lt;br /&gt;
&lt;br /&gt;
'''#list1 {color: blue;}'''&lt;br /&gt;
|| In this case, in '''CSS''' we have a '''hash symbol''' and a '''name''' next to the '''id''' as a '''selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: id Selector&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;ul id=&amp;quot;list1&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;HTML&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;CSS&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;Java Script&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
|| In '''HTML''' we have to use '''id =''' name of the''' id''' in '''double quotes''' inside the respective '''element’s''' start '''tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of id Selector&lt;br /&gt;
|| Here is an example for '''id Selector'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: class Selector&lt;br /&gt;
&lt;br /&gt;
'''. list1 {color: blue;}'''&lt;br /&gt;
|| In this case, In '''CSS''' we have a '''dot operator''' and a '''name''' of the '''class''' as a '''selector'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: class Selector&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;ul class=&amp;quot;list1&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;HTML&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;CSS&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:'''&amp;lt;nowiki&amp;gt;&amp;lt;li&amp;gt;Java Script&amp;lt;/li&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;/ul&amp;gt;'''&lt;br /&gt;
|| In '''HTML''' we have to use '''class = '''name of the''' class''' in '''double quotes''' inside the respective '''element’s''' start '''tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Show example of class Selector&lt;br /&gt;
|| Here is an example for '''class Selector'''&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Try these on your own.&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 now summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 6: Summary &lt;br /&gt;
&lt;br /&gt;
|| In this tutorial, we have learnt:&lt;br /&gt;
&lt;br /&gt;
* How to create a '''CSS '''file&lt;br /&gt;
* Syntax of '''CSS'''&lt;br /&gt;
* About types of '''Selectors'''&lt;br /&gt;
* Style '''Declaration'''&lt;br /&gt;
* Linking a '''CSS '''file with a '''HTML '''file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 8: Assignment&lt;br /&gt;
|| As an assignment-&lt;br /&gt;
&lt;br /&gt;
* Create a '''styles.css''' file using any '''text editor'''&lt;br /&gt;
* Set the '''background '''as '''lightblue'''&lt;br /&gt;
* Create a '''webpage.html''' using any '''text editor'''&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output on the web browser&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 9:&lt;br /&gt;
&lt;br /&gt;
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 10: Spoken Tutorial Workshops&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;
|| Slide 11:&lt;br /&gt;
&lt;br /&gt;
Answers for THIS Spoken Tutorial&lt;br /&gt;
|| Do you have questions in THIS Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly&lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial project will ensure an answer&lt;br /&gt;
&lt;br /&gt;
You will have to register to ask questions&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 12:&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions:&lt;br /&gt;
&lt;br /&gt;
|| The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussions as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 13: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 14: Thanks&lt;br /&gt;
|| The script for this tutorial is contributed by Praveen&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	</feed>