SlideShare a Scribd company logo
Unit 1: Web Fundamentals
Lesson 7: Introduction to CSS
August 21, 2013
Lesson 7: Introduction to CSS
2
Introduction
to HTML
Learning to
Use HTML
HTML and
Email
History and
Future of the
Web
HTML and
Forms
Search
Engine
Optimization
Learning to
Use CSS
Introduction
to CSS
Reusing
Code
3 Ways to
Use CSS
Separation of
Concerns
Launching
Your Own
Website
Lesson 1 Lesson 2 Lesson 3 Lesson 4
Lesson 8 Lesson 7 Lesson 6 Lesson 5
Lesson 9 Lesson 10 Lesson 11 Lesson 12
Build understanding Develop skills
Recap of Lessons 1-6 (I)
3
• HTML is very important and is used in everything from websites to
email messages to sending data with forms
• HTML files are easy to create – no harder than writing a Word
document
Recap of Lessons 1-6 (II)
4
• We can add images and video to our HTML by using tags
• Websites such as YouTube will even give us the HTML code to
make embedding content easy
Recap of Lessons 1-6 (III)
5
• Forms help us send information to a server whenever we sign in,
search, or post on Facebook
• Meta tags allow us to tell potential visitors what our website is about
• Search engine optimization can help our site rank higher when
websites like Google or Yahoo show search results
This is the meta description tag
We’ve done HTML – now let’s look at CSS
• We have seen why HTML is important, but CSS is just as useful
• When HTML provides the structure for a page, CSS lets us make it
look pretty
6
HTML is the
structure/skeleton
CSS is the
presentation/clothing
jQuery/Javascript is
the action/movement
What would websites look like without CSS? (I)
7
Facebook Facebook without CSS
What would websites look like without CSS? (II)
8
Pixar Pixar without CSS
What would websites look like without CSS? (III)
9
Google Google without CSS
• Even Google doesn’t look good without CSS!
One website can change a LOT when styled with
different CSS
10
• Believe it or not, but the two webpages below were written using
identical HTML code
• The only difference between them is in their CSS styling!
Restyling the Guardian (I)
1. Last time, we edited the HTML code of the Guardian website. This
time, we’ll edit the Guardian’s CSS code. Open up your Chrome
web browser and navigate to www.theguardian.com/uk
11
Restyling the Guardian (II)
2. Right click on the white background and click ā€˜Inspect Element’
12
ā€˜Inspect
Element’
Restyling the Guardian (III)
3. Next to the HTML code we looked at last time, you should see a
small box in the lower right. Scroll halfway down until you see
ā€˜background-color’
13
Restyling the Guardian (IV)
4. Click the box next to ā€˜white’, and then select a color in the window
that appears
14
Click here
Restyling the Guardian (V)
5. Now the Guardian has a background color!
15
Restyling the Guardian (VI)
6. However, can you guess what happens when we refresh the page?
16
Refresh
Restyling the Guardian (VII)
7. The background color went back to white!
17
How does the internet work – Take #2 (I)
• To understand why our changes disappeared, we need to revisit
how the internet works
18
ISP
Facebook
server
Amazon
server
Youtube
server
DNS
Router
How does the internet work – Take #2 (III)
• Originally, we said that the Youtube server was sending Andy Murray
the webpage files he requested
• But the server is sending more than just the HTML files – it’s also
sending CSS files for the page
19
Youtube
server
How does the internet work – Take #2 (IV)
• If Andy were to receive just the HTML
files, he would see a simple version of
the site
20
How does the internet work – Take #2 (V)
• If Andy were to receive just the HTML
files, he would see a simple version of
the site
• If he received both HTML and CSS, he
would see the full website
21
How does the internet work – Take #2 (VI)
• If Andy were to receive just the HTML
files, he would see a simple version of
the site
• If he received both HTML and CSS, he
would see the full website
• If he only received the CSS files, he
would not see the website at all. You
cannot add style to a page that has no
structure!
22
Summary (I)
• CSS is just as important as HTML because it allows us to style a
page to make it look pretty
• Changing the CSS of a site can make a big difference!
23
Summary (II)
• It’s just as easy to edit CSS as it is to revise HTML
• A server actually sends TWO files when you request a webpage –
HTML and CSS
• You need both to see the full version of the website
24
What to do on your own
1. Go to URL to complete the Codecademy course online
2. Do the practice set on the material learned
1. Take the follow-up quiz to test your understanding
25

More Related Content

PPTX
Lesson 201 14 sep13-1500-ay
Codecademy Ren
Ā 
PPTX
Lesson 110 24 aug13-1400-ay
Codecademy Ren
Ā 
PPTX
Lesson 106 23 aug13-1430-ay
Codecademy Ren
Ā 
PPTX
Lesson 101 23 aug13-1430-ay
Codecademy Ren
Ā 
PPTX
Lesson 102 23 aug13-1430-ay
Codecademy Ren
Ā 
PPTX
Lesson 105 23 aug13-1430-ay
Codecademy Ren
Ā 
PPTX
Lesson 103 23 aug13-1430-ay
Codecademy Ren
Ā 
PPTX
Lesson 104 23 aug13-1430-ay
Codecademy Ren
Ā 
Lesson 201 14 sep13-1500-ay
Codecademy Ren
Ā 
Lesson 110 24 aug13-1400-ay
Codecademy Ren
Ā 
Lesson 106 23 aug13-1430-ay
Codecademy Ren
Ā 
Lesson 101 23 aug13-1430-ay
Codecademy Ren
Ā 
Lesson 102 23 aug13-1430-ay
Codecademy Ren
Ā 
Lesson 105 23 aug13-1430-ay
Codecademy Ren
Ā 
Lesson 103 23 aug13-1430-ay
Codecademy Ren
Ā 
Lesson 104 23 aug13-1430-ay
Codecademy Ren
Ā 

What's hot (19)

PPTX
Lesson 102 25 aug13-2200-ay
Codecademy Ren
Ā 
PPTX
Lesson 109 23 aug13-1430-ay
Codecademy Ren
Ā 
PPTX
html & css
umesh patil
Ā 
PPTX
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
Ā 
PDF
Leran html
johir kan123
Ā 
PPTX
Lesson 108 23 aug13-1430-ay
Codecademy Ren
Ā 
PPT
Lesson 2: Getting To Know HTML
Olivia Moran
Ā 
PDF
Introduction to the Web and HTML
SiddharthBorderwala
Ā 
PPT
1. html introduction
Muhammad Toqeer
Ā 
PDF
HTML standards
Sukh Sandhu
Ā 
PPTX
Web development basics
Kalluri Vinay Reddy
Ā 
PPTX
Slides(1) june entre
EntreMT2012
Ā 
PPTX
Html
mazario
Ā 
PPTX
Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15
Andy McIlwain
Ā 
PPTX
Introduction to CSS
AursalanSayed
Ā 
PPTX
Introducing HTML
ritaester
Ā 
PPT
Html
KIDSTOYSERA
Ā 
PPTX
Gmail
PAUL NORTON
Ā 
Lesson 102 25 aug13-2200-ay
Codecademy Ren
Ā 
Lesson 109 23 aug13-1430-ay
Codecademy Ren
Ā 
html & css
umesh patil
Ā 
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
Ā 
Leran html
johir kan123
Ā 
Lesson 108 23 aug13-1430-ay
Codecademy Ren
Ā 
Lesson 2: Getting To Know HTML
Olivia Moran
Ā 
Introduction to the Web and HTML
SiddharthBorderwala
Ā 
1. html introduction
Muhammad Toqeer
Ā 
HTML standards
Sukh Sandhu
Ā 
Web development basics
Kalluri Vinay Reddy
Ā 
Slides(1) june entre
EntreMT2012
Ā 
Html
mazario
Ā 
Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15
Andy McIlwain
Ā 
Introduction to CSS
AursalanSayed
Ā 
Introducing HTML
ritaester
Ā 
Html
KIDSTOYSERA
Ā 
Gmail
PAUL NORTON
Ā 
Ad

Viewers also liked (7)

PPTX
Lesson 205 07 oct13-1500-ay
Codecademy Ren
Ā 
PPTX
Lesson 303 05 jan14-1500-ay
Codecademy Ren
Ā 
PPTX
Lesson 204 03 oct13-1500-ay
Codecademy Ren
Ā 
PPTX
Lesson 203 18 sep13-1500-ay
Codecademy Ren
Ā 
PPTX
Lesson 304 05 jan14-1500-ay
Codecademy Ren
Ā 
PPTX
Lesson 302 05 jan14-1500-ay
Codecademy Ren
Ā 
PPTX
Lesson 202 02 oct13-1800-ay
Codecademy Ren
Ā 
Lesson 205 07 oct13-1500-ay
Codecademy Ren
Ā 
Lesson 303 05 jan14-1500-ay
Codecademy Ren
Ā 
Lesson 204 03 oct13-1500-ay
Codecademy Ren
Ā 
Lesson 203 18 sep13-1500-ay
Codecademy Ren
Ā 
Lesson 304 05 jan14-1500-ay
Codecademy Ren
Ā 
Lesson 302 05 jan14-1500-ay
Codecademy Ren
Ā 
Lesson 202 02 oct13-1800-ay
Codecademy Ren
Ā 
Ad

Similar to Lesson 107 23 aug13-1430-ay (20)

PPTX
Lesson 112 24 aug13-2300-ay
Codecademy Ren
Ā 
PPTX
Lesson 111 24 aug13-1430-ay
Codecademy Ren
Ā 
PPTX
Intro to WordPress Theming
Andy McIlwain
Ā 
PPTX
Lesson 206 11 oct13-1500-ay
Codecademy Ren
Ā 
PDF
Divi Theme Expert
Divi Theme Support
Ā 
PPTX
Using Telerik Kendo UI in Office 365
Ed Musters
Ā 
PPTX
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
Chris O'Connor
Ā 
PPTX
HTML.pptx
vikasmittal92
Ā 
PPTX
SharePoint Jonah Lomu of CMS
SSW
Ā 
PDF
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
Stack Learner
Ā 
PPTX
juststartpdfisntofdsjjslfjslfslflsdf.pptx
wwwculturalarcher205
Ā 
PPTX
10 things you can do to speed up your web app today 2016
Chris Love
Ā 
PDF
1. Let's study web-development
Jungwon Seo
Ā 
PDF
React in 2018
Michael Yagudaev
Ā 
PPTX
Psd to foundation
Html SliceMate
Ā 
PPTX
ASP.NET
Robert MacLean
Ā 
PDF
Web Design Primer Sample - HTML CSS JS
Bootstrap Creative
Ā 
PPTX
workshopsisnotreallyrrwardingitsinot.pptx
wwwculturalarcher205
Ā 
PPTX
Freeformers starting to code
Max Bye
Ā 
PPTX
Curtin University Frontend Web Development
Daryll Chu
Ā 
Lesson 112 24 aug13-2300-ay
Codecademy Ren
Ā 
Lesson 111 24 aug13-1430-ay
Codecademy Ren
Ā 
Intro to WordPress Theming
Andy McIlwain
Ā 
Lesson 206 11 oct13-1500-ay
Codecademy Ren
Ā 
Divi Theme Expert
Divi Theme Support
Ā 
Using Telerik Kendo UI in Office 365
Ed Musters
Ā 
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
Chris O'Connor
Ā 
HTML.pptx
vikasmittal92
Ā 
SharePoint Jonah Lomu of CMS
SSW
Ā 
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
Stack Learner
Ā 
juststartpdfisntofdsjjslfjslfslflsdf.pptx
wwwculturalarcher205
Ā 
10 things you can do to speed up your web app today 2016
Chris Love
Ā 
1. Let's study web-development
Jungwon Seo
Ā 
React in 2018
Michael Yagudaev
Ā 
Psd to foundation
Html SliceMate
Ā 
ASP.NET
Robert MacLean
Ā 
Web Design Primer Sample - HTML CSS JS
Bootstrap Creative
Ā 
workshopsisnotreallyrrwardingitsinot.pptx
wwwculturalarcher205
Ā 
Freeformers starting to code
Max Bye
Ā 
Curtin University Frontend Web Development
Daryll Chu
Ā 

Recently uploaded (20)

PDF
Software Development Methodologies in 2025
KodekX
Ā 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
Ā 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
Ā 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
Ā 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
Ā 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
Ā 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
Ā 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
Ā 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
Ā 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
Ā 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
Ā 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
Ā 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
Ā 
PDF
The Future of Artificial Intelligence (AI)
Mukul
Ā 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
Ā 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
Ā 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
Ā 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
Ā 
PDF
OFFOFFBOXā„¢ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
Ā 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
Ā 
Software Development Methodologies in 2025
KodekX
Ā 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
Ā 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
Ā 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
Ā 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
Ā 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
Ā 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
Ā 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
Ā 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
Ā 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
Ā 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
Ā 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
Ā 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
Ā 
The Future of Artificial Intelligence (AI)
Mukul
Ā 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
Ā 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
Ā 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
Ā 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
Ā 
OFFOFFBOXā„¢ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
Ā 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
Ā 

Lesson 107 23 aug13-1430-ay

  • 1. Unit 1: Web Fundamentals Lesson 7: Introduction to CSS August 21, 2013
  • 2. Lesson 7: Introduction to CSS 2 Introduction to HTML Learning to Use HTML HTML and Email History and Future of the Web HTML and Forms Search Engine Optimization Learning to Use CSS Introduction to CSS Reusing Code 3 Ways to Use CSS Separation of Concerns Launching Your Own Website Lesson 1 Lesson 2 Lesson 3 Lesson 4 Lesson 8 Lesson 7 Lesson 6 Lesson 5 Lesson 9 Lesson 10 Lesson 11 Lesson 12 Build understanding Develop skills
  • 3. Recap of Lessons 1-6 (I) 3 • HTML is very important and is used in everything from websites to email messages to sending data with forms • HTML files are easy to create – no harder than writing a Word document
  • 4. Recap of Lessons 1-6 (II) 4 • We can add images and video to our HTML by using tags • Websites such as YouTube will even give us the HTML code to make embedding content easy
  • 5. Recap of Lessons 1-6 (III) 5 • Forms help us send information to a server whenever we sign in, search, or post on Facebook • Meta tags allow us to tell potential visitors what our website is about • Search engine optimization can help our site rank higher when websites like Google or Yahoo show search results This is the meta description tag
  • 6. We’ve done HTML – now let’s look at CSS • We have seen why HTML is important, but CSS is just as useful • When HTML provides the structure for a page, CSS lets us make it look pretty 6 HTML is the structure/skeleton CSS is the presentation/clothing jQuery/Javascript is the action/movement
  • 7. What would websites look like without CSS? (I) 7 Facebook Facebook without CSS
  • 8. What would websites look like without CSS? (II) 8 Pixar Pixar without CSS
  • 9. What would websites look like without CSS? (III) 9 Google Google without CSS • Even Google doesn’t look good without CSS!
  • 10. One website can change a LOT when styled with different CSS 10 • Believe it or not, but the two webpages below were written using identical HTML code • The only difference between them is in their CSS styling!
  • 11. Restyling the Guardian (I) 1. Last time, we edited the HTML code of the Guardian website. This time, we’ll edit the Guardian’s CSS code. Open up your Chrome web browser and navigate to www.theguardian.com/uk 11
  • 12. Restyling the Guardian (II) 2. Right click on the white background and click ā€˜Inspect Element’ 12 ā€˜Inspect Element’
  • 13. Restyling the Guardian (III) 3. Next to the HTML code we looked at last time, you should see a small box in the lower right. Scroll halfway down until you see ā€˜background-color’ 13
  • 14. Restyling the Guardian (IV) 4. Click the box next to ā€˜white’, and then select a color in the window that appears 14 Click here
  • 15. Restyling the Guardian (V) 5. Now the Guardian has a background color! 15
  • 16. Restyling the Guardian (VI) 6. However, can you guess what happens when we refresh the page? 16 Refresh
  • 17. Restyling the Guardian (VII) 7. The background color went back to white! 17
  • 18. How does the internet work – Take #2 (I) • To understand why our changes disappeared, we need to revisit how the internet works 18 ISP Facebook server Amazon server Youtube server DNS Router
  • 19. How does the internet work – Take #2 (III) • Originally, we said that the Youtube server was sending Andy Murray the webpage files he requested • But the server is sending more than just the HTML files – it’s also sending CSS files for the page 19 Youtube server
  • 20. How does the internet work – Take #2 (IV) • If Andy were to receive just the HTML files, he would see a simple version of the site 20
  • 21. How does the internet work – Take #2 (V) • If Andy were to receive just the HTML files, he would see a simple version of the site • If he received both HTML and CSS, he would see the full website 21
  • 22. How does the internet work – Take #2 (VI) • If Andy were to receive just the HTML files, he would see a simple version of the site • If he received both HTML and CSS, he would see the full website • If he only received the CSS files, he would not see the website at all. You cannot add style to a page that has no structure! 22
  • 23. Summary (I) • CSS is just as important as HTML because it allows us to style a page to make it look pretty • Changing the CSS of a site can make a big difference! 23
  • 24. Summary (II) • It’s just as easy to edit CSS as it is to revise HTML • A server actually sends TWO files when you request a webpage – HTML and CSS • You need both to see the full version of the website 24
  • 25. What to do on your own 1. Go to URL to complete the Codecademy course online 2. Do the practice set on the material learned 1. Take the follow-up quiz to test your understanding 25