SlideShare a Scribd company logo
DR ATIF SHAHZAD
Fundamentals of
Computer Systems
IE-321
LECTURE #16
RECAP
Logic
Logical variables
Conditional, Negation, Contrapositive,Biconditional
AND, OR,NOT,XOR
Logic gates
TruthTables
BooleanAlgebra
Examples
Q&A
MicrosoftVisio
Microsoft Project
Spreadsheet Concepts:
Using Microsoft Excel
Creating Charts in Microsoft Excel
Debugging Concepts Using Microsoft Excel
Presentation Concepts Using Microsoft PowerPoint
Image Concepts
Memory
Memory Cell
CPU
Register
Program Counter
Fetch-Execute Cycle
Q&A
File Management
Word Processing Basics Using MicrosoftWord
MicrosoftWord Layout and Graphics Features
Making and using compressed Files
WinZip, 7Zip
Notepad++
Wordpad
Adobe acrobat
Sumatra PDF
MathType
Database
Flat & Relational
Database
DBMS
Tables & Fields
Creating Tables in
Access
Design view and Data
Sheet View
Primary Key &
Foreign key
Relationships & ER
Diagram
Queries &Simple SQL
Cyber Security
Security Problems
Interception
Spoofing
Falsification
Repudiation
Security Technologies
Encryption
MAC
Data Model
Algorithm
Ingredients
Variables
Constructs
Pseudocode
Flowchart
Symbols
Flowcharting
examples
Q&A
What is
HTML?
Basic HTML
Document
Structure
Creating Your
First HTML
Paragraphs
Text
Formatting
Headings,
Lines,
Comments
Elements Attributes
Images Links Lists Tables
HTML Colors
Inline and
Block Elements
Forms
Fundamentals of
Computer Systems
IE321
CSS
9/27/2018
Dr.AtifShahzad
4
TheWeb Structure
9/27/2018
Dr.AtifShahzad
5
HTML:
Structure
CSS:
Presentation
JavaScript:
Behavior
PHP or similar: Backend
CMS: Content Management
Why CSS?
9/27/2018
Dr.AtifShahzad
6
CSS allows you to
apply specific styles to
specific HTML
elements.
Style
Content
CSS
Cascading
refers to the
way CSS applies
one style on top
of another.
Style Sheets
control the
look and feel of
web
documents.
9/27/2018
Dr.AtifShahzad
7
CSS and HTML work hand in hand:
- HTML sorts out the page structure.
- CSS defines how HTML elements are displayed.
9/27/2018
Dr.AtifShahzad
8
Inline style
a unique style is applied
to a single element.
•In order to use an inline style, add
the style attribute to the relevant
tag.
Internal
styles
defined within the
<style> element, inside
the head section of an
HTML page.
External
all styling rules are contained
in a single text file, which is
saved with the .css extension.
•This CSS file is then referenced in the
HTML using the <link> tag. The
<link> element goes inside the head
section.
<p style="color:white; background-color:gray;">
This is an example of inline styling.
</p>
<html>
<head>
<style>
p {
color:white;
background-color:gray;
}
</style>
</head>
<body>
<p>This is my first paragraph. </p>
<p>This is my second paragraph. </p>
</body>
</html>
<head>
<link rel="stylesheet" href="example.css">
</head>
<body>
<p>This is my first paragraph.</p>
<p>This is my second paragraph. </p>
<p>This is my third paragraph. </p>
</body>
p {
color:white;
background-color:gray;
}
Ways to Insert CSS Styles
CSS Styles
9/27/2018
Dr.AtifShahzad
9
Inline
style
Internal
styles
External
<p style="color:white; background-color:gray;">
This is an example of inline styling.
</p>
<html>
<head>
<style>
p {
color:white;
background-color:gray;
}
</style>
</head>
<body>
<p>This is my first paragraph. </p>
<p>This is my second paragraph. </p>
</body>
</html>
<head>
<link rel="stylesheet" href="example.css">
</head>
<body>
<p>This is my first paragraph.</p>
<p>This is my second paragraph. </p>
<p>This is my third paragraph. </p>
</body>
p {
color:white;
background-color:gray;
}
example.css
CSS Style rules
9/27/2018
Dr.AtifShahzad
10
CSS is composed of style rules that the
browser interprets and then applies to the
corresponding elements in your document.
A style rule has three parts
9/27/2018
Dr.AtifShahzad
11
selector
property
value
For example, the headline
color can be defined as:
h1 { color: orange; }
Selector
9/27/2018
Dr.AtifShahzad
12
selector
property
value
Type selector
Id selector
Class selector
Type Selector
9/27/2018
Dr.AtifShahzad
13
targets element types on the page.
A CSS declaration always ends with a semicolon, and declaration groups are
surrounded by curly braces.
p {
color: red;
font-size:130%;
}
Type selector
Id selector
Class selector
id Selector
9/27/2018
Dr.AtifShahzad
14
to style an HTML element that has an id
attribute, regardless of their position in the
document tree.
#intro {
color: white;
background-color: gray;
}
<div id="intro">
<p>This paragraph is in the intro section.</p>
</div>
<p>This paragraph is not in the intro section.</p>
css
HTML
To select an element with a specific id, use a hash character, and then follow it
with the id of the element.
Type selector
Id selector
Class selector
class Selector
9/27/2018
Dr.AtifShahzad
15
both paragraphs having the class "first" will
be affected by the CSS:
.first {font-size: 200%;}
<div>
<p class="first">This is a paragraph</p>
<p>This is the second paragraph. </p>
</div>
<p class="first">This is not in the intro section</p
>
<p>The second paragraph is not in the intro section
. </p>
css
HTML
To select elements with a specific class, use a period character, followed by the
name of the class.
Type selector
Id selector
Class selector
Comparison of Selector
9/27/2018
Dr.AtifShahzad
16
Type
selector
targets
element
types on
the page.
Id selector
IDs can
only be
applied
once per
page
Class
selector
classes can
be used as
many times
on a page
as needed
Type selector
Id selector
Class selector
Descendent Selector
9/27/2018
Dr.AtifShahzad
17
used to select elements that are
descendants of another element.When
selecting levels, you can select as many
levels deep as you need to.
#intro .first em {
color: pink;
background-color:gray;
}
<div id="intro">
<p class="first">This is a <em> paragraph.</em
></p>
<p>This is the second paragraph. </p>
</div>
<p class="first">This is not in the intro section.</
p>
<p>The second paragraph is not in the intro section
. </p>
CSS Comments
/* Your comment goes here */
9/27/2018
Dr.AtifShahzad
18
/*This is a Comment */
Basis CSS Syntax
A CSS file
• consists of one or more rules
Each rule
• starts with a selector that specifies an HTML element(s)
and then
applies style
properties
• to them a selector of * selects all elements
A selector
• of * selects all elements
9/27/2018
Dr.AtifShahzad
19
CSS properties for Color
9/27/2018
Dr.AtifShahzad
20
CSS properties for Color
9/27/2018
Dr.AtifShahzad
21
Color
names
aqua, black, blue, fuchsia,
gray, green, lime, maroon,
navy, olive,purple, red,
silver, teal, white (white),
yellow
RGB codes
red, green, and blue values
from 0 (none) to 255
(full)
Hex codes
RGB values in base-16
from 00 (0, none) to FF
(255, full)
Inheritance
Inheritance refers to the way properties
flow through the page.
A child element will usually take on the characteristics of
the parent element unless otherwise defined.
9/27/2018
Dr.AtifShahzad
22
<html>
<head>
<style>
body {
color: green;
font-family:Arial;
}
</style>
</head>
<body>
<p>
This is a text inside the paragraph.
</p>
</body>
</html>
HTML
Since the
paragraph tag
(child element)
is inside the
body tag
(parent
element), it
takes on any
styles assigned
to the body tag.
Question
9/27/2018
Dr.AtifShahzad
23
What color does the paragraph have?
<style>
body {color: green; }
.mydiv {color: red; }
</style>
<body>
<div class="mydiv">
<p>Some text</p>
</div>
</body>
HTML
The font-family Property
The font-family property specifies the font
for an element.
There are two types of font family names:
9/27/2018
Dr.AtifShahzad
24
- font
family:
a specific font family
(likeTimes New
Roman orArial)
- generic
family:
a group of font families
with a similar look (like
Serif or Monospace)
The font-family Property
9/27/2018
Dr.AtifShahzad
25
font family
a specific font family
(likeTimes New
Roman orArial)
generic
family
a group of font families
with a similar look (like
Serif or Monospace)
The font-family Property
9/27/2018
Dr.AtifShahzad
26
<p class="serif">
This is a paragraph shown in serif font.
</p>
<p class="sansserif">
This is a paragraph shown in sans-serif font.
</p>
<p class="monospace">
This is a paragraph shown in monospace font.
</p>
<p class="cursive">
This is a paragraph shown in cursive font.
</p>
<p class="fantasy">
This is a paragraph shown in fantasy font.
</p>
HTML
p.serif {
font-family: "Times New Roman",Times, serif;
}
p.sansserif {
font-family: Helvetica,Arial, sans-serif;
}
p.monospace {
font-family: "Courier New", Courier, monospace;
}
p.cursive {
font-family: Florence, cursive;
}
p.fantasy {
font-family: Blippo, fantasy;
}
CSS
Lecture16 ie321 dr_atifshahzad_css
9/27/2018
Dr.AtifShahzad
28
NEVER hesitate to
contact should you
have any question
Dr.Atif Shahzad
Ad

More Related Content

Similar to Lecture16 ie321 dr_atifshahzad_css (20)

CSS
CSSCSS
CSS
BG Java EE Course
 
Web technology Unit-II Part-C
Web technology Unit-II Part-CWeb technology Unit-II Part-C
Web technology Unit-II Part-C
SSN College of Engineering, Kalavakkam
 
Html&amp;css slideshare
Html&amp;css   slideshareHtml&amp;css   slideshare
Html&amp;css slideshare
SaleemMalik52
 
Css
CssCss
Css
mohamed ashraf
 
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptxCSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptxCSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
Css Founder
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
Css
CssCss
Css
zayhard99
 
Redis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systemsRedis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systems
Stratos Gounidellis
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
karthiksmart21
 
Redis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systemsRedis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systems
Lamprini Koutsokera
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
Unit 2.1
Unit 2.1Unit 2.1
Unit 2.1
Abhishek Kesharwani
 
New Css style
New Css styleNew Css style
New Css style
BUDNET
 
Basic Knowldege about CSS Prepared for VV softech solution (2).ppt
Basic Knowldege about CSS Prepared for VV softech solution (2).pptBasic Knowldege about CSS Prepared for VV softech solution (2).ppt
Basic Knowldege about CSS Prepared for VV softech solution (2).ppt
testvarun21
 
Act 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsiboAct 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsibo
AlexBaldeon2
 
Css.html
Css.htmlCss.html
Css.html
Anaghabalakrishnan
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
Shawn Calvert
 
Html&amp;css slideshare
Html&amp;css   slideshareHtml&amp;css   slideshare
Html&amp;css slideshare
SaleemMalik52
 
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptxCSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptxCSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
Css Founder
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
Redis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systemsRedis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systems
Stratos Gounidellis
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
karthiksmart21
 
Redis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systemsRedis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systems
Lamprini Koutsokera
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
New Css style
New Css styleNew Css style
New Css style
BUDNET
 
Basic Knowldege about CSS Prepared for VV softech solution (2).ppt
Basic Knowldege about CSS Prepared for VV softech solution (2).pptBasic Knowldege about CSS Prepared for VV softech solution (2).ppt
Basic Knowldege about CSS Prepared for VV softech solution (2).ppt
testvarun21
 
Act 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsiboAct 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsibo
AlexBaldeon2
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
Shawn Calvert
 

More from Atif Shahzad (20)

Lecture04 computer applicationsie1_dratifshahzad
Lecture04 computer applicationsie1_dratifshahzadLecture04 computer applicationsie1_dratifshahzad
Lecture04 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture03 computer applicationsie1_dratifshahzad
Lecture03 computer applicationsie1_dratifshahzadLecture03 computer applicationsie1_dratifshahzad
Lecture03 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture01 computer applicationsie1_dratifshahzad
Lecture01 computer applicationsie1_dratifshahzadLecture01 computer applicationsie1_dratifshahzad
Lecture01 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzadLecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzadLecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Dr atif shahzad_sys_ management_lecture_agile
Dr atif shahzad_sys_ management_lecture_agileDr atif shahzad_sys_ management_lecture_agile
Dr atif shahzad_sys_ management_lecture_agile
Atif Shahzad
 
Dr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmea
Dr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmeaDr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmea
Dr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmea
Atif Shahzad
 
Dr atif shahzad_engg_ management_module_01
Dr atif shahzad_engg_ management_module_01Dr atif shahzad_engg_ management_module_01
Dr atif shahzad_engg_ management_module_01
Atif Shahzad
 
Dr atif shahzad_engg_ management_lecture_inventory models
Dr atif shahzad_engg_ management_lecture_inventory modelsDr atif shahzad_engg_ management_lecture_inventory models
Dr atif shahzad_engg_ management_lecture_inventory models
Atif Shahzad
 
Dr atif shahzad_engg_ management_lecture_inventory management
Dr atif shahzad_engg_ management_lecture_inventory managementDr atif shahzad_engg_ management_lecture_inventory management
Dr atif shahzad_engg_ management_lecture_inventory management
Atif Shahzad
 
Dr atif shahzad_engg_ management_cost management
Dr atif shahzad_engg_ management_cost managementDr atif shahzad_engg_ management_cost management
Dr atif shahzad_engg_ management_cost management
Atif Shahzad
 
Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...
Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...
Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...
Atif Shahzad
 
Lecture17 ie321 dr_atifshahzad_js
Lecture17 ie321 dr_atifshahzad_jsLecture17 ie321 dr_atifshahzad_js
Lecture17 ie321 dr_atifshahzad_js
Atif Shahzad
 
Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2
Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2
Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2
Atif Shahzad
 
Lecture13 ie321 dr_atifshahzad -algorithmic thinking
Lecture13 ie321 dr_atifshahzad -algorithmic thinkingLecture13 ie321 dr_atifshahzad -algorithmic thinking
Lecture13 ie321 dr_atifshahzad -algorithmic thinking
Atif Shahzad
 
Lecture12 ie321 dr_atifshahzad - networks
Lecture12 ie321 dr_atifshahzad - networksLecture12 ie321 dr_atifshahzad - networks
Lecture12 ie321 dr_atifshahzad - networks
Atif Shahzad
 
Lecture11 ie321 dr_atifshahzad -security
Lecture11 ie321 dr_atifshahzad -securityLecture11 ie321 dr_atifshahzad -security
Lecture11 ie321 dr_atifshahzad -security
Atif Shahzad
 
Lecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzadLecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzad
Atif Shahzad
 
Lecture08 ie321 dr_atifshahzad
Lecture08 ie321 dr_atifshahzadLecture08 ie321 dr_atifshahzad
Lecture08 ie321 dr_atifshahzad
Atif Shahzad
 
Lecture07 ie321 dr_atifshahzad
Lecture07 ie321 dr_atifshahzadLecture07 ie321 dr_atifshahzad
Lecture07 ie321 dr_atifshahzad
Atif Shahzad
 
Lecture04 computer applicationsie1_dratifshahzad
Lecture04 computer applicationsie1_dratifshahzadLecture04 computer applicationsie1_dratifshahzad
Lecture04 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture03 computer applicationsie1_dratifshahzad
Lecture03 computer applicationsie1_dratifshahzadLecture03 computer applicationsie1_dratifshahzad
Lecture03 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture01 computer applicationsie1_dratifshahzad
Lecture01 computer applicationsie1_dratifshahzadLecture01 computer applicationsie1_dratifshahzad
Lecture01 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzadLecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Lecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzadLecture02 computer applicationsie1_dratifshahzad
Lecture02 computer applicationsie1_dratifshahzad
Atif Shahzad
 
Dr atif shahzad_sys_ management_lecture_agile
Dr atif shahzad_sys_ management_lecture_agileDr atif shahzad_sys_ management_lecture_agile
Dr atif shahzad_sys_ management_lecture_agile
Atif Shahzad
 
Dr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmea
Dr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmeaDr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmea
Dr atif shahzad_sys_ management_lecture_10_risk management_fmea_vmea
Atif Shahzad
 
Dr atif shahzad_engg_ management_module_01
Dr atif shahzad_engg_ management_module_01Dr atif shahzad_engg_ management_module_01
Dr atif shahzad_engg_ management_module_01
Atif Shahzad
 
Dr atif shahzad_engg_ management_lecture_inventory models
Dr atif shahzad_engg_ management_lecture_inventory modelsDr atif shahzad_engg_ management_lecture_inventory models
Dr atif shahzad_engg_ management_lecture_inventory models
Atif Shahzad
 
Dr atif shahzad_engg_ management_lecture_inventory management
Dr atif shahzad_engg_ management_lecture_inventory managementDr atif shahzad_engg_ management_lecture_inventory management
Dr atif shahzad_engg_ management_lecture_inventory management
Atif Shahzad
 
Dr atif shahzad_engg_ management_cost management
Dr atif shahzad_engg_ management_cost managementDr atif shahzad_engg_ management_cost management
Dr atif shahzad_engg_ management_cost management
Atif Shahzad
 
Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...
Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...
Dr atif shahzad_sys_ management_lecture_outsourcing managing inter organizati...
Atif Shahzad
 
Lecture17 ie321 dr_atifshahzad_js
Lecture17 ie321 dr_atifshahzad_jsLecture17 ie321 dr_atifshahzad_js
Lecture17 ie321 dr_atifshahzad_js
Atif Shahzad
 
Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2
Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2
Lecture14 ie321 dr_atifshahzad -algorithmic thinking part2
Atif Shahzad
 
Lecture13 ie321 dr_atifshahzad -algorithmic thinking
Lecture13 ie321 dr_atifshahzad -algorithmic thinkingLecture13 ie321 dr_atifshahzad -algorithmic thinking
Lecture13 ie321 dr_atifshahzad -algorithmic thinking
Atif Shahzad
 
Lecture12 ie321 dr_atifshahzad - networks
Lecture12 ie321 dr_atifshahzad - networksLecture12 ie321 dr_atifshahzad - networks
Lecture12 ie321 dr_atifshahzad - networks
Atif Shahzad
 
Lecture11 ie321 dr_atifshahzad -security
Lecture11 ie321 dr_atifshahzad -securityLecture11 ie321 dr_atifshahzad -security
Lecture11 ie321 dr_atifshahzad -security
Atif Shahzad
 
Lecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzadLecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzad
Atif Shahzad
 
Lecture08 ie321 dr_atifshahzad
Lecture08 ie321 dr_atifshahzadLecture08 ie321 dr_atifshahzad
Lecture08 ie321 dr_atifshahzad
Atif Shahzad
 
Lecture07 ie321 dr_atifshahzad
Lecture07 ie321 dr_atifshahzadLecture07 ie321 dr_atifshahzad
Lecture07 ie321 dr_atifshahzad
Atif Shahzad
 
Ad

Recently uploaded (20)

Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New VersionPixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
saimabibi60507
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New VersionPixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
saimabibi60507
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Ad

Lecture16 ie321 dr_atifshahzad_css

  • 1. DR ATIF SHAHZAD Fundamentals of Computer Systems IE-321 LECTURE #16
  • 2. RECAP Logic Logical variables Conditional, Negation, Contrapositive,Biconditional AND, OR,NOT,XOR Logic gates TruthTables BooleanAlgebra Examples Q&A MicrosoftVisio Microsoft Project Spreadsheet Concepts: Using Microsoft Excel Creating Charts in Microsoft Excel Debugging Concepts Using Microsoft Excel Presentation Concepts Using Microsoft PowerPoint Image Concepts Memory Memory Cell CPU Register Program Counter Fetch-Execute Cycle Q&A File Management Word Processing Basics Using MicrosoftWord MicrosoftWord Layout and Graphics Features Making and using compressed Files WinZip, 7Zip Notepad++ Wordpad Adobe acrobat Sumatra PDF MathType Database Flat & Relational Database DBMS Tables & Fields Creating Tables in Access Design view and Data Sheet View Primary Key & Foreign key Relationships & ER Diagram Queries &Simple SQL Cyber Security Security Problems Interception Spoofing Falsification Repudiation Security Technologies Encryption MAC Data Model Algorithm Ingredients Variables Constructs Pseudocode Flowchart Symbols Flowcharting examples Q&A What is HTML? Basic HTML Document Structure Creating Your First HTML Paragraphs Text Formatting Headings, Lines, Comments Elements Attributes Images Links Lists Tables HTML Colors Inline and Block Elements Forms
  • 6. Why CSS? 9/27/2018 Dr.AtifShahzad 6 CSS allows you to apply specific styles to specific HTML elements. Style Content
  • 7. CSS Cascading refers to the way CSS applies one style on top of another. Style Sheets control the look and feel of web documents. 9/27/2018 Dr.AtifShahzad 7 CSS and HTML work hand in hand: - HTML sorts out the page structure. - CSS defines how HTML elements are displayed.
  • 8. 9/27/2018 Dr.AtifShahzad 8 Inline style a unique style is applied to a single element. •In order to use an inline style, add the style attribute to the relevant tag. Internal styles defined within the <style> element, inside the head section of an HTML page. External all styling rules are contained in a single text file, which is saved with the .css extension. •This CSS file is then referenced in the HTML using the <link> tag. The <link> element goes inside the head section. <p style="color:white; background-color:gray;"> This is an example of inline styling. </p> <html> <head> <style> p { color:white; background-color:gray; } </style> </head> <body> <p>This is my first paragraph. </p> <p>This is my second paragraph. </p> </body> </html> <head> <link rel="stylesheet" href="example.css"> </head> <body> <p>This is my first paragraph.</p> <p>This is my second paragraph. </p> <p>This is my third paragraph. </p> </body> p { color:white; background-color:gray; } Ways to Insert CSS Styles
  • 9. CSS Styles 9/27/2018 Dr.AtifShahzad 9 Inline style Internal styles External <p style="color:white; background-color:gray;"> This is an example of inline styling. </p> <html> <head> <style> p { color:white; background-color:gray; } </style> </head> <body> <p>This is my first paragraph. </p> <p>This is my second paragraph. </p> </body> </html> <head> <link rel="stylesheet" href="example.css"> </head> <body> <p>This is my first paragraph.</p> <p>This is my second paragraph. </p> <p>This is my third paragraph. </p> </body> p { color:white; background-color:gray; } example.css
  • 10. CSS Style rules 9/27/2018 Dr.AtifShahzad 10 CSS is composed of style rules that the browser interprets and then applies to the corresponding elements in your document.
  • 11. A style rule has three parts 9/27/2018 Dr.AtifShahzad 11 selector property value For example, the headline color can be defined as: h1 { color: orange; }
  • 13. Type Selector 9/27/2018 Dr.AtifShahzad 13 targets element types on the page. A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly braces. p { color: red; font-size:130%; } Type selector Id selector Class selector
  • 14. id Selector 9/27/2018 Dr.AtifShahzad 14 to style an HTML element that has an id attribute, regardless of their position in the document tree. #intro { color: white; background-color: gray; } <div id="intro"> <p>This paragraph is in the intro section.</p> </div> <p>This paragraph is not in the intro section.</p> css HTML To select an element with a specific id, use a hash character, and then follow it with the id of the element. Type selector Id selector Class selector
  • 15. class Selector 9/27/2018 Dr.AtifShahzad 15 both paragraphs having the class "first" will be affected by the CSS: .first {font-size: 200%;} <div> <p class="first">This is a paragraph</p> <p>This is the second paragraph. </p> </div> <p class="first">This is not in the intro section</p > <p>The second paragraph is not in the intro section . </p> css HTML To select elements with a specific class, use a period character, followed by the name of the class. Type selector Id selector Class selector
  • 16. Comparison of Selector 9/27/2018 Dr.AtifShahzad 16 Type selector targets element types on the page. Id selector IDs can only be applied once per page Class selector classes can be used as many times on a page as needed Type selector Id selector Class selector
  • 17. Descendent Selector 9/27/2018 Dr.AtifShahzad 17 used to select elements that are descendants of another element.When selecting levels, you can select as many levels deep as you need to. #intro .first em { color: pink; background-color:gray; } <div id="intro"> <p class="first">This is a <em> paragraph.</em ></p> <p>This is the second paragraph. </p> </div> <p class="first">This is not in the intro section.</ p> <p>The second paragraph is not in the intro section . </p>
  • 18. CSS Comments /* Your comment goes here */ 9/27/2018 Dr.AtifShahzad 18 /*This is a Comment */
  • 19. Basis CSS Syntax A CSS file • consists of one or more rules Each rule • starts with a selector that specifies an HTML element(s) and then applies style properties • to them a selector of * selects all elements A selector • of * selects all elements 9/27/2018 Dr.AtifShahzad 19
  • 20. CSS properties for Color 9/27/2018 Dr.AtifShahzad 20
  • 21. CSS properties for Color 9/27/2018 Dr.AtifShahzad 21 Color names aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive,purple, red, silver, teal, white (white), yellow RGB codes red, green, and blue values from 0 (none) to 255 (full) Hex codes RGB values in base-16 from 00 (0, none) to FF (255, full)
  • 22. Inheritance Inheritance refers to the way properties flow through the page. A child element will usually take on the characteristics of the parent element unless otherwise defined. 9/27/2018 Dr.AtifShahzad 22 <html> <head> <style> body { color: green; font-family:Arial; } </style> </head> <body> <p> This is a text inside the paragraph. </p> </body> </html> HTML Since the paragraph tag (child element) is inside the body tag (parent element), it takes on any styles assigned to the body tag.
  • 23. Question 9/27/2018 Dr.AtifShahzad 23 What color does the paragraph have? <style> body {color: green; } .mydiv {color: red; } </style> <body> <div class="mydiv"> <p>Some text</p> </div> </body> HTML
  • 24. The font-family Property The font-family property specifies the font for an element. There are two types of font family names: 9/27/2018 Dr.AtifShahzad 24 - font family: a specific font family (likeTimes New Roman orArial) - generic family: a group of font families with a similar look (like Serif or Monospace)
  • 25. The font-family Property 9/27/2018 Dr.AtifShahzad 25 font family a specific font family (likeTimes New Roman orArial) generic family a group of font families with a similar look (like Serif or Monospace)
  • 26. The font-family Property 9/27/2018 Dr.AtifShahzad 26 <p class="serif"> This is a paragraph shown in serif font. </p> <p class="sansserif"> This is a paragraph shown in sans-serif font. </p> <p class="monospace"> This is a paragraph shown in monospace font. </p> <p class="cursive"> This is a paragraph shown in cursive font. </p> <p class="fantasy"> This is a paragraph shown in fantasy font. </p> HTML p.serif { font-family: "Times New Roman",Times, serif; } p.sansserif { font-family: Helvetica,Arial, sans-serif; } p.monospace { font-family: "Courier New", Courier, monospace; } p.cursive { font-family: Florence, cursive; } p.fantasy { font-family: Blippo, fantasy; } CSS
  • 28. 9/27/2018 Dr.AtifShahzad 28 NEVER hesitate to contact should you have any question Dr.Atif Shahzad