SlideShare una empresa de Scribd logo
1 de 25
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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (19)

Lesson 102 25 aug13-2200-ay
Lesson 102 25 aug13-2200-ayLesson 102 25 aug13-2200-ay
Lesson 102 25 aug13-2200-ay
 
Lesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ayLesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ay
 
html & css
html & css html & css
html & css
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
 
Leran html
Leran htmlLeran html
Leran html
 
Lesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ayLesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ay
 
Lesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTMLLesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTML
 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTML
 
1. html introduction
1. html introduction1. html introduction
1. html introduction
 
HTML standards
HTML standardsHTML standards
HTML standards
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Slides(1) june entre
Slides(1) june entreSlides(1) june entre
Slides(1) june entre
 
Html
HtmlHtml
Html
 
Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15
Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15
Crafting Custom CSS @ PodCamp Toronto 2015 #PCTO15
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Introducing HTML
Introducing HTMLIntroducing HTML
Introducing HTML
 
Html
HtmlHtml
Html
 
Gmail
GmailGmail
Gmail
 
Lecture2 CSS1
Lecture2  CSS1Lecture2  CSS1
Lecture2 CSS1
 

Destacado

Lesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayLesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayCodecademy Ren
 
Lesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayLesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayCodecademy Ren
 
Lesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayLesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayCodecademy Ren
 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayCodecademy Ren
 
Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayCodecademy Ren
 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayCodecademy Ren
 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayCodecademy Ren
 

Destacado (7)

Lesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayLesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ay
 
Lesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayLesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ay
 
Lesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayLesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ay
 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ay
 
Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ay
 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ay
 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ay
 

Similar a Lesson 107 23 aug13-1430-ay

Lesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayLesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayCodecademy Ren
 
Lesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayLesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayCodecademy Ren
 
Intro to WordPress Theming
Intro to WordPress ThemingIntro to WordPress Theming
Intro to WordPress ThemingAndy McIlwain
 
Lesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ayLesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ayCodecademy Ren
 
Using Telerik Kendo UI in Office 365
Using Telerik Kendo UI in Office 365Using Telerik Kendo UI in Office 365
Using Telerik Kendo UI in Office 365Ed Musters
 
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 20102012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 2010Chris O'Connor
 
SharePoint Jonah Lomu of CMS
SharePoint Jonah Lomu of CMSSharePoint Jonah Lomu of CMS
SharePoint Jonah Lomu of CMSSSW
 
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In BanglaWeb Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In BanglaStack Learner
 
10 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 201610 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 2016Chris Love
 
1. Let's study web-development
1. Let's study web-development1. Let's study web-development
1. Let's study web-developmentJungwon Seo
 
Web Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JSWeb Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JSBootstrap Creative
 
Freeformers starting to code
Freeformers starting to codeFreeformers starting to code
Freeformers starting to codeMax Bye
 
Curtin University Frontend Web Development
Curtin University Frontend Web DevelopmentCurtin University Frontend Web Development
Curtin University Frontend Web DevelopmentDaryll Chu
 
html5 new structural elements
html5 new structural elements html5 new structural elements
html5 new structural elements Mohammad Odeh
 
html5 new structural elements
html5 new structural elements html5 new structural elements
html5 new structural elements Mohammad Odeh
 

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

Lesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayLesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ay
 
Lesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayLesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ay
 
Intro to WordPress Theming
Intro to WordPress ThemingIntro to WordPress Theming
Intro to WordPress Theming
 
Lesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ayLesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ay
 
Divi Theme Expert
Divi Theme ExpertDivi Theme Expert
Divi Theme Expert
 
Using Telerik Kendo UI in Office 365
Using Telerik Kendo UI in Office 365Using Telerik Kendo UI in Office 365
Using Telerik Kendo UI in Office 365
 
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 20102012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
SharePoint Jonah Lomu of CMS
SharePoint Jonah Lomu of CMSSharePoint Jonah Lomu of CMS
SharePoint Jonah Lomu of CMS
 
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In BanglaWeb Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
 
10 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 201610 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 2016
 
1. Let's study web-development
1. Let's study web-development1. Let's study web-development
1. Let's study web-development
 
React in 2018
React in 2018React in 2018
React in 2018
 
Psd to foundation
Psd to foundationPsd to foundation
Psd to foundation
 
ASP.NET
ASP.NETASP.NET
ASP.NET
 
Web Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JSWeb Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JS
 
Freeformers starting to code
Freeformers starting to codeFreeformers starting to code
Freeformers starting to code
 
Curtin University Frontend Web Development
Curtin University Frontend Web DevelopmentCurtin University Frontend Web Development
Curtin University Frontend Web Development
 
html5 new structural elements
html5 new structural elements html5 new structural elements
html5 new structural elements
 
html5 new structural elements
html5 new structural elements html5 new structural elements
html5 new structural elements
 

Último

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Último (20)

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

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