SlideShare a Scribd company logo
1 of 69
Agenda
1- Warm up revision about CSS 10 min
2- ppt teacher demonstrate about CSS 15m
3- Video about CSS Selectors 5min
4- Practical work Students divided in pairs and use
notepad or Atom , explorer to create very simple web
page using CSS30m
7- Questions and answers as pretest about CSS 5 min
8-Refelection 5 min
9- Home work 5 min
CSS
LO CS.1.06 - Identify
and explain the
addition of a style to
web site by using
cascading style sheets
(CSS).
Lesson plan
CSS
Warm Up
Listen to this video
Offline
On line
CSS
Essential Question
How could you
create a web site
using HTML - CSS?
Essential Question
How can we add a
style (inline, internal
and external) to a
web site?
• Using on line resources for
html5 code , CSS code , etc
…
• Ex : w3school , sololearn
6
CSS
HTML template
<!DOCTYPE html>
<html lang="en">
<head>
<title>STEM Education</title>
<meta charset="utf-8">
<link rel="stylesheet“ href="example.css">
</head>
<body> hdgjadhgakf</body>
</html>
CSS
Check your email to Solve the
Online auto answered
quiz 15 min after
school the quiz will be
closed in 10:00pm
after
tomorrow
CSS
1.CSS term. 2. Style
attribute / Style element.
3. Inline styles / Multiple
styles. 4. CSS syntax
(Selector - Rules).
9
CSS
Warm up revision
10
CSS
Open your previous web page
11
CSS
Question ??
How to create a form
inside a web page
12
CSS
The code for form
13
CSS
To send the form to e.mail
instead of database
14
<form action="/action_page.php" method="get">
<form action="/action_page.php" method="post">
<form action ="mailto:you@yourwebsite.com">
<form action="mailto:you@yourwebsite.com">
CSS
CSS Syntax
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: selector, property,
and value.
For example, the headline color can be defined
as:
h1 { color: orange; }
Styles' locations
Inline --- inside any tag in Body
Internal styles --- inside style tag in Head
External --- CSS file inside link tag in Head
16
CSS
Style sheet or style element — not both!
Inline CSS
17
CSS
<p style="color:white;
background-color:gray;">
This is an example of inline
styling.
</p>
internal styles : are defined within
the <style> element, inside
the head section of an HTML page.
<head>
<style>
p {
color:white;
background-color:gray;
}
</style>
</head> 18
CSS
<head>
<link rel="stylesheet"
href="example.css">
</head>
19
CSSExternal CSS
With this method, all styling rules are contained in
a single text file, which is saved with
the .css extension
Be Efficient
20
Time consuming
- Inline styling
- Embedded (internal) style sheets
Quicker and easier
- External style sheets
Types of selectors
21
CSS
Each element / selector has the
following:
22
CSS
Types of selectors
Listen to this video
Offline On line
CSS
Types of selectors
24
CSS
1- Element selector
Types of selectors
25
CSS
2- class selector Multiple elements
26
CSS
27
CSS
Types of selectors
28
CSS
2- id selector limited to one element
Types of selectors
29
CSS
2- id selector limited to one element
Types of selectors
30
CSS
Selector may be a
combination like :
Grouping styles
31
p, h1, h2 {
color: green;
}
h2 {
background-color: yellow;
} CSS
This paragraph uses the above style.
output
This h2 uses the above styles.
• A style can select multiple elements separated by
commas
• The individual elements can also have their own styles
CS380
CSS comments /*…*/
32
/* This is a comment.
It can span many lines in the CSS file. */
p {
color: red; background-color: aqua;
} CSS
• CSS (like HTML) is usually not commented as
rigorously as programming languages such as Java
• The // single-line comment style is NOT supported in
CSS
• The <!-- ... --> HTML comment style is also NOT
supported in CSS
CS380
• The HTML:<p class="first">
Border width of this paragraph is set to 2px.
</p>
<p class="second">
Border width of this paragraph is set to 5px.
</p>
The CSS:
• p.first {
padding: 10px;
border-style: solid;
border-width: 2px;
}
p.second {
padding: 10px;
border-style: solid;
border-width: 5px;
}Try It Yourself 33
Cascading Style Sheets
• Properties of an element cascade together
in this order:
– browser's default styles
– external style sheet files (in a <link> tag)
– internal style sheets (inside a <style> tag in
the page's header)
– inline style (the style attribute of the HTML
element)
CS380 34
35
How CSS Works — Matching
• Every XHTML document represents a document
tree
• The browser uses the tree to determine which rules
apply
• What about inheritance? And conflicts?
36
Inheriting styles
37
body { font-family: sans-serif; background-color: yellow;
}
p { color: red; background-color: aqua; }
a { text-decoration: underline; }
h2 { font-weight: bold; text-align: center; }
CSS
This is a heading
• A bulleted list output
• when multiple styles apply to an element, they are
inherited
• a more tightly matching rule can override a more
general inherited rule
A styled paragraph. Previous slides are available on the website.
CS380
Styles that conflict
38
p, h1, h2 { color: blue; font-style: italic; }
h2 { color: red; background-color: yellow; }
CSS
This paragraph uses the first style above.
output
• when two styles set conflicting values for the same
property, the latter style takes precedence
This heading uses both styles above.
CS380
CSS Syntax
Listen to this video
Offline On line
Offline On line
CSS
CSS Selectors - Tag, ID,
Class, Attribute
Listen to this video
Offline On line
CSS
41
CSS
42
CSS
What we learn today
1-Selectors (Type - Class
and ID).
2. External CCS file.
3. Boxes (Content –
Padding – Border - Margin)
43
CSS
CSS properties for fonts
property description
font-family which font will be used
font-size how large the letters will be drawn
font-style used to enable/disable italic style
font-weight used to enable/disable bold style
CS380 44
Complete list of font properties (http://www.w3schools.com/css/css_reference.asp#fo
CSS properties for text
property description
text-align alignment of text within its element
text-decoration decorations such as underlining
line-height,
word-spacing,
letter-spacing
gaps between the various portions of
the text
text-indent
indents the first letter of each
paragraph
CS380 45
Complete list of text properties (http://www.w3schools.com/css/css_reference.asp#te
Boxes (Content – Padding
– Border - Margin)
Listen to this video
Offline On line
CSS
Boxes (Content – Padding – Border - Margin)
47
Boxes (Content – Padding – Border - Margin)
48
Boxes (Content – Padding – Border - Margin)
49
50
3
Boxes (Content – Padding – Border - Margin)
51
CSS
52
CSS
Boxes (Content – Padding – Border - Margin)
• The HTML:<p class="first">
Border width of this paragraph is set to 2px.
</p>
<p class="second">
Border width of this paragraph is set to 5px.
</p>
The CSS:
• p.first {
padding: 10px;
border-style: solid;
border-width: 2px;
}
p.second {
padding: 10px;
border-style: solid;
border-width: 5px;
}Try It Yourself 53
2. Change the layout of a web
page.
54
CSS
Listen to this video
Offline
On line
CSS Auto Adjusting Stretch Fit Web Site
Layout Tutorial HTML5 Template
2. Change the layout of a web
page.
55
CSS
Listen to this video
Offline
On line
Window Size Responsive CSS Layout
Stylesheet Change JavaScript Tutorial
3. Access Developer Tools in
your browser.
56
CSS
Listen to this video
Offline
On line
14 Firefox Developer Tools You Might Not
Know About
3. Access Developer Tools in
your browser.
57
CSS
Listen to this video
Offline
On line
Debugging JavaScript - Chrome DevTools
101
6. Linking stylesheets.
58
CSS
Listen to this video
Offline
On line
How to Link CSS to HTML Document
6. Linking stylesheets.
59
CSS
Listen to this video
Offline
On line
WordPress 101 - Part 2_ How to properly
include CSS and JS files
60
Learn and practice through on line web sites
http://www.w3schools.com/tags/tag_div.asp
http://www.quackit.com/html_5/tags/html_div_tag.cfm
https://www.sololearn.com/Course/HTML/
https://www.freecodecamp.org
CSS
Sumarry
61
1.CSS term. 2. Style
attribute / Style element.
3. Inline styles / Multiple
styles. 4. CSS syntax
(Selector - Rules).
CSS
Prepare for next week
according to student’s law
Gn=Wn % Ng
5. Selectors (Type - Class
and ID). 6. External CCS file.
7. Boxes (Content –
Padding – Border - Margin).62
CSS
Reflection
• What is your goal to accomplish in
next week End Using HTML and CSS?
CSS
Home work (s. proj.) 1
• Create /design a web page using
HTML/CSS to show a project /hoppy /skill
of your favorites following the bellow
rubric .
64
CSS
rubaric
65
CSS
Blue
Design a profficinal web page which contains CSS
Elements such as 1- Selectors (Type - Class and ID).
2. External CCS file.3. Boxes (Content – Padding –
Border - Margin)
Green
Design a normal web page which contains CSS
Elements suchas 1- Selectors (Type - Class and ID).
2. External CCS file.3. Boxes (Content – Padding –
Border - Margin).
Yellow missing two points of green level.
Read a web page haven't includding any CSS elemnets .
Resources
• https://www.youtube.com/watch?v=Rtww83GH
0BU
• Other materials:
https://www.sololearn.com/Course/CSS/
https://www.w3schools.com/css/default.asp
http://www.quackit.com/html_5/tags/html_div_ta
g.cfm
https://www.sololearn.com/Course/css/
66
CSS
67
Learn and practice through on line web sites
https://www.thewebevolved.com
https://www.123test.com/
https://www.wscubetech.com/
https://www.w3schools.com/php/php_quiz.asp
https://www.guru99.com
https://codescracker.com/exam/review.php
https://www.arealme.com/left-right-brain/en/
https://www.javatpoint.com/c-quiz
https://www.proprofs.com/
https://www.geeksforgeeks.org/
https://www.tutorialspoint.com
https://www.sololearn.com/Course/HTML
http://www.littlewebhut.com/
CSS
Thanks
Engineer and educator/ Osama G. Geris
CSS
https://twitter.com/osamageris
https://www.linkedin.com/in/osamaghandour/
https://www.youtube.com/user/osmgg2
https://www.facebook.com/osama.g.geris
CSS

More Related Content

What's hot

Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSZoe Gillenwater
 
Doing More with LESS for CSS
Doing More with LESS for CSSDoing More with LESS for CSS
Doing More with LESS for CSSTodd Anglin
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointSahil Gandhi
 
CSS framework By Palash
CSS framework By PalashCSS framework By Palash
CSS framework By PalashPalashBajpai
 
Modular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS WorkshopModular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS WorkshopShay Howe
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSSanjoy Kr. Paul
 
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSObject-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSLi-Wei Lu
 
Be nice to your designers
Be nice to your designersBe nice to your designers
Be nice to your designersPai-Cheng Tao
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersSuzette Franck
 
Object oriented css graeme blackwood
Object oriented css graeme blackwoodObject oriented css graeme blackwood
Object oriented css graeme blackwooddrupalconf
 

What's hot (20)

Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
 
Doing More with LESS for CSS
Doing More with LESS for CSSDoing More with LESS for CSS
Doing More with LESS for CSS
 
CSS Best practice
CSS Best practiceCSS Best practice
CSS Best practice
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
 
Css
CssCss
Css
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
CSS framework By Palash
CSS framework By PalashCSS framework By Palash
CSS framework By Palash
 
CSS Reset
CSS ResetCSS Reset
CSS Reset
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptx
 
HTML News Packages Lesson
HTML News Packages LessonHTML News Packages Lesson
HTML News Packages Lesson
 
Modular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS WorkshopModular HTML, CSS, & JS Workshop
Modular HTML, CSS, & JS Workshop
 
Intro to web dev
Intro to web devIntro to web dev
Intro to web dev
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
新 · 交互
新 · 交互新 · 交互
新 · 交互
 
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSObject-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
 
Critical Rendering Path
Critical Rendering PathCritical Rendering Path
Critical Rendering Path
 
CSS
CSSCSS
CSS
 
Be nice to your designers
Be nice to your designersBe nice to your designers
Be nice to your designers
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress Developers
 
Object oriented css graeme blackwood
Object oriented css graeme blackwoodObject oriented css graeme blackwood
Object oriented css graeme blackwood
 

Similar to Css week11 2020 2021 for g10 by eng.osama ghandour

Similar to Css week11 2020 2021 for g10 by eng.osama ghandour (20)

Using a CSS Framework
Using a CSS FrameworkUsing a CSS Framework
Using a CSS Framework
 
Css Founder.com | Cssfounder org
Css Founder.com | Cssfounder orgCss Founder.com | Cssfounder org
Css Founder.com | Cssfounder org
 
HTML and CSS Coding Standards
HTML and CSS Coding StandardsHTML and CSS Coding Standards
HTML and CSS Coding Standards
 
Internet tech &amp; web prog. p4,5
Internet tech &amp; web prog.  p4,5Internet tech &amp; web prog.  p4,5
Internet tech &amp; web prog. p4,5
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
Html Css
Html CssHtml Css
Html Css
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Shyam sunder Rajasthan Computer
Shyam sunder Rajasthan ComputerShyam sunder Rajasthan Computer
Shyam sunder Rajasthan Computer
 
Html css
Html cssHtml css
Html css
 
03html Css
03html Css03html Css
03html Css
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
Html css
Html cssHtml css
Html css
 
Html and css easy steps
Html and css easy stepsHtml and css easy steps
Html and css easy steps
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 

More from Osama Ghandour Geris

functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...Osama Ghandour Geris
 
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.pptPython week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.pptOsama Ghandour Geris
 
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansourPython cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansourOsama Ghandour Geris
 
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandourPython cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandourOsama Ghandour Geris
 
Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10Osama Ghandour Geris
 
Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10 Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10 Osama Ghandour Geris
 
Python week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandourPython week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandourOsama Ghandour Geris
 
Python week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandourPython week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandourOsama Ghandour Geris
 
Programming intro variables constants - arithmetic and assignment operators
Programming intro variables   constants - arithmetic and assignment operatorsProgramming intro variables   constants - arithmetic and assignment operators
Programming intro variables constants - arithmetic and assignment operatorsOsama Ghandour Geris
 
Mobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osamaMobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osamaOsama Ghandour Geris
 
How to print a sketch up drawing in 3d
How to print a sketch up drawing  in 3dHow to print a sketch up drawing  in 3d
How to print a sketch up drawing in 3dOsama Ghandour Geris
 
7 types of presentation styles on line
7 types of presentation styles on line7 types of presentation styles on line
7 types of presentation styles on lineOsama Ghandour Geris
 
Design pseudo codeweek 6 2019 -2020
Design pseudo codeweek 6 2019 -2020Design pseudo codeweek 6 2019 -2020
Design pseudo codeweek 6 2019 -2020Osama Ghandour Geris
 

More from Osama Ghandour Geris (20)

functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
 
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.pptPython week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
 
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansourPython cs.1.12 week 10  2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
 
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandourPython cs.1.12 week 9 10  2020-2021 covid 19 for g10 by eng.osama ghandour
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
 
Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10Python week 7 8 2019-2020 for grade 10
Python week 7 8 2019-2020 for grade 10
 
Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10 Python week 6 2019 2020 for grade 10
Python week 6 2019 2020 for grade 10
 
Python week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandourPython week 5 2019 2020 for g10 by eng.osama ghandour
Python week 5 2019 2020 for g10 by eng.osama ghandour
 
Python week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandourPython week 4 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandour
 
Programming intro variables constants - arithmetic and assignment operators
Programming intro variables   constants - arithmetic and assignment operatorsProgramming intro variables   constants - arithmetic and assignment operators
Programming intro variables constants - arithmetic and assignment operators
 
Mobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osamaMobile appliaction w android week 1 by osama
Mobile appliaction w android week 1 by osama
 
Python week 1 2020-2021
Python week 1 2020-2021Python week 1 2020-2021
Python week 1 2020-2021
 
Cooding history
Cooding history Cooding history
Cooding history
 
Computer networks--network
Computer networks--networkComputer networks--network
Computer networks--network
 
How to print a sketch up drawing in 3d
How to print a sketch up drawing  in 3dHow to print a sketch up drawing  in 3d
How to print a sketch up drawing in 3d
 
Google sketch up-tutorial
Google sketch up-tutorialGoogle sketch up-tutorial
Google sketch up-tutorial
 
7 types of presentation styles on line
7 types of presentation styles on line7 types of presentation styles on line
7 types of presentation styles on line
 
Design pseudo codeweek 6 2019 -2020
Design pseudo codeweek 6 2019 -2020Design pseudo codeweek 6 2019 -2020
Design pseudo codeweek 6 2019 -2020
 
Php introduction
Php introductionPhp introduction
Php introduction
 
How to use common app
How to use common appHow to use common app
How to use common app
 
Creating databases using xampp w2
Creating databases using xampp w2Creating databases using xampp w2
Creating databases using xampp w2
 

Recently uploaded

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Css week11 2020 2021 for g10 by eng.osama ghandour

  • 1. Agenda 1- Warm up revision about CSS 10 min 2- ppt teacher demonstrate about CSS 15m 3- Video about CSS Selectors 5min 4- Practical work Students divided in pairs and use notepad or Atom , explorer to create very simple web page using CSS30m 7- Questions and answers as pretest about CSS 5 min 8-Refelection 5 min 9- Home work 5 min CSS
  • 2. LO CS.1.06 - Identify and explain the addition of a style to web site by using cascading style sheets (CSS). Lesson plan CSS
  • 3. Warm Up Listen to this video Offline On line CSS
  • 4. Essential Question How could you create a web site using HTML - CSS?
  • 5. Essential Question How can we add a style (inline, internal and external) to a web site?
  • 6. • Using on line resources for html5 code , CSS code , etc … • Ex : w3school , sololearn 6 CSS
  • 7. HTML template <!DOCTYPE html> <html lang="en"> <head> <title>STEM Education</title> <meta charset="utf-8"> <link rel="stylesheet“ href="example.css"> </head> <body> hdgjadhgakf</body> </html> CSS
  • 8. Check your email to Solve the Online auto answered quiz 15 min after school the quiz will be closed in 10:00pm after tomorrow CSS
  • 9. 1.CSS term. 2. Style attribute / Style element. 3. Inline styles / Multiple styles. 4. CSS syntax (Selector - Rules). 9 CSS Warm up revision
  • 11. Open your previous web page 11 CSS
  • 12. Question ?? How to create a form inside a web page 12 CSS
  • 13. The code for form 13 CSS
  • 14. To send the form to e.mail instead of database 14 <form action="/action_page.php" method="get"> <form action="/action_page.php" method="post"> <form action ="mailto:you@yourwebsite.com"> <form action="mailto:you@yourwebsite.com"> CSS
  • 15. CSS Syntax 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: selector, property, and value. For example, the headline color can be defined as: h1 { color: orange; }
  • 16. Styles' locations Inline --- inside any tag in Body Internal styles --- inside style tag in Head External --- CSS file inside link tag in Head 16 CSS Style sheet or style element — not both!
  • 18. internal styles : are defined within the <style> element, inside the head section of an HTML page. <head> <style> p { color:white; background-color:gray; } </style> </head> 18 CSS
  • 19. <head> <link rel="stylesheet" href="example.css"> </head> 19 CSSExternal CSS With this method, all styling rules are contained in a single text file, which is saved with the .css extension
  • 20. Be Efficient 20 Time consuming - Inline styling - Embedded (internal) style sheets Quicker and easier - External style sheets
  • 22. Each element / selector has the following: 22 CSS
  • 23. Types of selectors Listen to this video Offline On line CSS
  • 24. Types of selectors 24 CSS 1- Element selector
  • 25. Types of selectors 25 CSS 2- class selector Multiple elements
  • 28. Types of selectors 28 CSS 2- id selector limited to one element
  • 29. Types of selectors 29 CSS 2- id selector limited to one element
  • 30. Types of selectors 30 CSS Selector may be a combination like :
  • 31. Grouping styles 31 p, h1, h2 { color: green; } h2 { background-color: yellow; } CSS This paragraph uses the above style. output This h2 uses the above styles. • A style can select multiple elements separated by commas • The individual elements can also have their own styles CS380
  • 32. CSS comments /*…*/ 32 /* This is a comment. It can span many lines in the CSS file. */ p { color: red; background-color: aqua; } CSS • CSS (like HTML) is usually not commented as rigorously as programming languages such as Java • The // single-line comment style is NOT supported in CSS • The <!-- ... --> HTML comment style is also NOT supported in CSS CS380
  • 33. • The HTML:<p class="first"> Border width of this paragraph is set to 2px. </p> <p class="second"> Border width of this paragraph is set to 5px. </p> The CSS: • p.first { padding: 10px; border-style: solid; border-width: 2px; } p.second { padding: 10px; border-style: solid; border-width: 5px; }Try It Yourself 33
  • 34. Cascading Style Sheets • Properties of an element cascade together in this order: – browser's default styles – external style sheet files (in a <link> tag) – internal style sheets (inside a <style> tag in the page's header) – inline style (the style attribute of the HTML element) CS380 34
  • 35. 35 How CSS Works — Matching • Every XHTML document represents a document tree • The browser uses the tree to determine which rules apply • What about inheritance? And conflicts?
  • 36. 36
  • 37. Inheriting styles 37 body { font-family: sans-serif; background-color: yellow; } p { color: red; background-color: aqua; } a { text-decoration: underline; } h2 { font-weight: bold; text-align: center; } CSS This is a heading • A bulleted list output • when multiple styles apply to an element, they are inherited • a more tightly matching rule can override a more general inherited rule A styled paragraph. Previous slides are available on the website. CS380
  • 38. Styles that conflict 38 p, h1, h2 { color: blue; font-style: italic; } h2 { color: red; background-color: yellow; } CSS This paragraph uses the first style above. output • when two styles set conflicting values for the same property, the latter style takes precedence This heading uses both styles above. CS380
  • 39. CSS Syntax Listen to this video Offline On line Offline On line CSS
  • 40. CSS Selectors - Tag, ID, Class, Attribute Listen to this video Offline On line CSS
  • 43. What we learn today 1-Selectors (Type - Class and ID). 2. External CCS file. 3. Boxes (Content – Padding – Border - Margin) 43 CSS
  • 44. CSS properties for fonts property description font-family which font will be used font-size how large the letters will be drawn font-style used to enable/disable italic style font-weight used to enable/disable bold style CS380 44 Complete list of font properties (http://www.w3schools.com/css/css_reference.asp#fo
  • 45. CSS properties for text property description text-align alignment of text within its element text-decoration decorations such as underlining line-height, word-spacing, letter-spacing gaps between the various portions of the text text-indent indents the first letter of each paragraph CS380 45 Complete list of text properties (http://www.w3schools.com/css/css_reference.asp#te
  • 46. Boxes (Content – Padding – Border - Margin) Listen to this video Offline On line CSS
  • 47. Boxes (Content – Padding – Border - Margin) 47
  • 48. Boxes (Content – Padding – Border - Margin) 48
  • 49. Boxes (Content – Padding – Border - Margin) 49
  • 50. 50 3
  • 51. Boxes (Content – Padding – Border - Margin) 51 CSS
  • 52. 52 CSS Boxes (Content – Padding – Border - Margin)
  • 53. • The HTML:<p class="first"> Border width of this paragraph is set to 2px. </p> <p class="second"> Border width of this paragraph is set to 5px. </p> The CSS: • p.first { padding: 10px; border-style: solid; border-width: 2px; } p.second { padding: 10px; border-style: solid; border-width: 5px; }Try It Yourself 53
  • 54. 2. Change the layout of a web page. 54 CSS Listen to this video Offline On line CSS Auto Adjusting Stretch Fit Web Site Layout Tutorial HTML5 Template
  • 55. 2. Change the layout of a web page. 55 CSS Listen to this video Offline On line Window Size Responsive CSS Layout Stylesheet Change JavaScript Tutorial
  • 56. 3. Access Developer Tools in your browser. 56 CSS Listen to this video Offline On line 14 Firefox Developer Tools You Might Not Know About
  • 57. 3. Access Developer Tools in your browser. 57 CSS Listen to this video Offline On line Debugging JavaScript - Chrome DevTools 101
  • 58. 6. Linking stylesheets. 58 CSS Listen to this video Offline On line How to Link CSS to HTML Document
  • 59. 6. Linking stylesheets. 59 CSS Listen to this video Offline On line WordPress 101 - Part 2_ How to properly include CSS and JS files
  • 60. 60 Learn and practice through on line web sites http://www.w3schools.com/tags/tag_div.asp http://www.quackit.com/html_5/tags/html_div_tag.cfm https://www.sololearn.com/Course/HTML/ https://www.freecodecamp.org CSS
  • 61. Sumarry 61 1.CSS term. 2. Style attribute / Style element. 3. Inline styles / Multiple styles. 4. CSS syntax (Selector - Rules). CSS
  • 62. Prepare for next week according to student’s law Gn=Wn % Ng 5. Selectors (Type - Class and ID). 6. External CCS file. 7. Boxes (Content – Padding – Border - Margin).62 CSS
  • 63. Reflection • What is your goal to accomplish in next week End Using HTML and CSS? CSS
  • 64. Home work (s. proj.) 1 • Create /design a web page using HTML/CSS to show a project /hoppy /skill of your favorites following the bellow rubric . 64 CSS
  • 65. rubaric 65 CSS Blue Design a profficinal web page which contains CSS Elements such as 1- Selectors (Type - Class and ID). 2. External CCS file.3. Boxes (Content – Padding – Border - Margin) Green Design a normal web page which contains CSS Elements suchas 1- Selectors (Type - Class and ID). 2. External CCS file.3. Boxes (Content – Padding – Border - Margin). Yellow missing two points of green level. Read a web page haven't includding any CSS elemnets .
  • 66. Resources • https://www.youtube.com/watch?v=Rtww83GH 0BU • Other materials: https://www.sololearn.com/Course/CSS/ https://www.w3schools.com/css/default.asp http://www.quackit.com/html_5/tags/html_div_ta g.cfm https://www.sololearn.com/Course/css/ 66 CSS
  • 67. 67 Learn and practice through on line web sites https://www.thewebevolved.com https://www.123test.com/ https://www.wscubetech.com/ https://www.w3schools.com/php/php_quiz.asp https://www.guru99.com https://codescracker.com/exam/review.php https://www.arealme.com/left-right-brain/en/ https://www.javatpoint.com/c-quiz https://www.proprofs.com/ https://www.geeksforgeeks.org/ https://www.tutorialspoint.com https://www.sololearn.com/Course/HTML http://www.littlewebhut.com/ CSS
  • 68. Thanks Engineer and educator/ Osama G. Geris CSS