<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=CSS%2FC2%2FFirst-CSS-file%2FEnglish</id>
		<title>CSS/C2/First-CSS-file/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=CSS%2FC2%2FFirst-CSS-file%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;action=history"/>
		<updated>2026-04-06T20:07:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=54051&amp;oldid=prev</id>
		<title>Nehasolanki at 06:57, 16 October 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=54051&amp;oldid=prev"/>
				<updated>2020-10-16T06:57:37Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:57, 16 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 214:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 214:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Highlight the background&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Highlight the background&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The '''webpage''' opens.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;||&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that the background color of the page is white.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that the background color of the page is white.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=54035&amp;oldid=prev</id>
		<title>Nancyvarkey at 04:04, 15 October 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=54035&amp;oldid=prev"/>
				<updated>2020-10-15T04:04:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:04, 15 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 450:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 450:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide 14: Thanks&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide 14: Thanks&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| The script for this tutorial is contributed by Praveen&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| The script for this tutorial is contributed by Praveen&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;this is Madhuri Ganapathi from IIT Bombay.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;And &lt;/ins&gt;this is Madhuri Ganapathi &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;along with Neha Solanki &lt;/ins&gt;from IIT Bombay.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Thank you for watching.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Thank you for watching.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=54033&amp;oldid=prev</id>
		<title>Nancyvarkey at 03:20, 15 October 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=54033&amp;oldid=prev"/>
				<updated>2020-10-15T03:20:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;amp;diff=54033&amp;amp;oldid=53997&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=53997&amp;oldid=prev</id>
		<title>Nehasolanki: Created page with &quot;'''Title of the script: '''First CSS File  '''Author:''' Praveen S  '''webDomain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keywo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/First-CSS-file/English&amp;diff=53997&amp;oldid=prev"/>
				<updated>2020-10-09T11:01:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of the script: &amp;#039;&amp;#039;&amp;#039;First CSS File  &amp;#039;&amp;#039;&amp;#039;Author:&amp;#039;&amp;#039;&amp;#039; Praveen S  &amp;#039;&amp;#039;&amp;#039;webDomain Reviewer: &amp;#039;&amp;#039;&amp;#039;Ankita Maske, Om Prakash Soni  &amp;#039;&amp;#039;&amp;#039;Novice Reviewer:&amp;#039;&amp;#039;&amp;#039; Madhuri Ganapathi  &amp;#039;&amp;#039;&amp;#039;Keywo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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>