SlideShare a Scribd company logo
CSS: Separating Design and Content
Assumptions You know HTML You do not know CSS You care about aesthetics and function You have 50 minutes to kill
What We’ll Do What is CSS? View some code and talk basics Why use CSS? Advantages to Workflow Cost Savings Implementations Resources
What are Cascading Style Sheets? Created by Hakon Wium Lie of MIT in 1994 Has become the W3C standard for controlling visual presentation of web pages Separates design elements from structural logic You get control and maintain the integrity of your data
Let’s See Some Code Sample Style sheet Rule Structure
Selectors Element Selectors  – (refer to HTML tags)‏ H1 {color: purple;} H1, H2, P {color: purple;} Contextual  – (refer to HTML, but in context)‏ LI B {color: purple;}
Selectors Class Selectors <H1 CLASS=“warning”>Danger!</H1> <P CLASS=“warning”>Be careful…</P> …… . In your HTML code  - H1.warning {color: red;} OR to an entire class… .warning {color:red;}
Applying CSS to HTML Style rules can be applied in 3 ways: Inline Styles : <H1 STYLE=“color: blue; font-size: 20pt;”>A large purple Heading</H1> For individual elements using the STYLE attribute Embedded style sheets : <HTML><HEAD><TITLE>Stylin’!</TITLE> <STYLE TYPE=“text/css”> H1 {color: purple;} P {font-size: 10pt; color: gray;} </STYLE> </HEAD> … </HTML> External style sheets : <HEAD> <LINK REL=stylesheet” TYPE=“text/css”  HREF=“styles/ mystyles.css ”> </HEAD> This is true “separation” of style and content. Keeping all your styles in an external document is simpler
Why CSS? Advantages to Workflow Cost Savings You WILL Be Cooler
Advantages of CSS Workflow Faster downloads Streamlined site maintenance Global control of design attributes Precise control (Advanced)‏ Positioning Fluid layouts
Advantages of CSS - Cost Savings Cost Savings Reduced Bandwidth Costs One style sheet called and cached Higher Search Engine Rankings Cleaner code is easier for search engines to index Greater density of indexable content
Advantages of CSS - Cost Savings Faster download = better usability Web usability redesign can increase the sales/conversion rate by 100%  (source:  Jakob  Nielson )   CSS requires less code Tables require spacer images Entire table has to render before content CSS can control the order that elements download (content before images)‏
Advantages of CSS - Cost Savings Increased Reach CSS website is compatible w/ many different devices In 2008 an est. 58 Million PDA’s will be sold (Source: eTForecast.com)‏ 1/3 of the world’s population will own a wireless device by 2010
Implementations Apply to HTML pages Apply to dynamic data Format or style XML Use for layout  (this is cool)‏ See  http://www.csszengarden.com
CSS isn’t perfect (yet)‏ CSS support in browsers is still uneven Make sure your CSS properties are supported
Resources http://www.csszengarden.com This is CSS at its finest http://www.w3.org/Style/CSS/ The Official CSS Site http://css.maxdesign.com.au/ Australian firm, very professional http://webmonkey.wired.com/webmonkey/reference/stylesheet_guide Where I learned CSS and Web Design
Come and see me at 3:30pm! “ Making Your Web Site More Appealing”

More Related Content

PPT
CSS
seedinteractive
 
PPT
CSS Introduction
Swati Sharma
 
PPTX
HTML Semantic Tags
Bruce Kyle
 
PPTX
Good/Bad Web Design
Yaowaluck Promdee
 
PDF
Intro to HTML and CSS basics
Eliran Eliassy
 
PPTX
Beginners css tutorial for web designers
Singsys Pte Ltd
 
PPTX
Html
Lincoln School
 
CSS Introduction
Swati Sharma
 
HTML Semantic Tags
Bruce Kyle
 
Good/Bad Web Design
Yaowaluck Promdee
 
Intro to HTML and CSS basics
Eliran Eliassy
 
Beginners css tutorial for web designers
Singsys Pte Ltd
 

What's hot (20)

PPTX
Css floats
Webtech Learning
 
PPTX
Css
shanmuga rajan
 
PPTX
Css ppt
Nidhi mishra
 
PPTX
Complete Lecture on Css presentation
Salman Memon
 
PPT
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
PPTX
Html5 tutorial for beginners
Singsys Pte Ltd
 
PDF
CSS3, Media Queries, and Responsive Design
Zoe Gillenwater
 
PDF
Introduction to Bootstrap
Ron Reiter
 
PPTX
HTML Semantic Elements
Reema
 
PPTX
Images and Tables in HTML
Aarti P
 
PPSX
Introduction to Html5
www.netgains.org
 
PPTX
Css selectors
Parth Trivedi
 
PPTX
Css position
Webtech Learning
 
PPTX
Css Display Property
Webtech Learning
 
ODP
Introduction of Html/css/js
Knoldus Inc.
 
PPTX
Html coding
Briana VanBuskirk
 
PPT
CSS for Beginners
Amit Kumar Singh
 
PDF
CSS Font & Text style
Yaowaluck Promdee
 
PPTX
1 03 - CSS Introduction
apnwebdev
 
PPTX
Flexbox
Netcetera
 
Css floats
Webtech Learning
 
Css ppt
Nidhi mishra
 
Complete Lecture on Css presentation
Salman Memon
 
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Html5 tutorial for beginners
Singsys Pte Ltd
 
CSS3, Media Queries, and Responsive Design
Zoe Gillenwater
 
Introduction to Bootstrap
Ron Reiter
 
HTML Semantic Elements
Reema
 
Images and Tables in HTML
Aarti P
 
Introduction to Html5
www.netgains.org
 
Css selectors
Parth Trivedi
 
Css position
Webtech Learning
 
Css Display Property
Webtech Learning
 
Introduction of Html/css/js
Knoldus Inc.
 
Html coding
Briana VanBuskirk
 
CSS for Beginners
Amit Kumar Singh
 
CSS Font & Text style
Yaowaluck Promdee
 
1 03 - CSS Introduction
apnwebdev
 
Flexbox
Netcetera
 
Ad

Viewers also liked (7)

PPTX
CSS 3, Style and Beyond
Samsung Open Source Group
 
PDF
Php
mohamed ashraf
 
PDF
Up to Speed on HTML 5 and CSS 3
M. Jackson Wilkinson
 
PPTX
25 Festive Fonts For Women Oriented Businesses!
DesignMantic
 
PDF
Design Thinking: Finding Problems Worth Solving In Health
Adam Connor
 
PDF
17 Ways to Design a Presentation People Want to View
Jim MacLeod
 
PDF
Big-tent UX (UX Camp West 2016)
Peter Boersma
 
CSS 3, Style and Beyond
Samsung Open Source Group
 
Up to Speed on HTML 5 and CSS 3
M. Jackson Wilkinson
 
25 Festive Fonts For Women Oriented Businesses!
DesignMantic
 
Design Thinking: Finding Problems Worth Solving In Health
Adam Connor
 
17 Ways to Design a Presentation People Want to View
Jim MacLeod
 
Big-tent UX (UX Camp West 2016)
Peter Boersma
 
Ad

Similar to Css (20)

PPT
Css
zayhard99
 
PPT
New Css style
BUDNET
 
PDF
Vskills certified css designer Notes
Vskills
 
PPT
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
PDF
CSS Interview Questions for Fresher and Experience
Hitesh Kumar
 
PDF
GDI Seattle Intermediate HTML and CSS Class 1
Heather Rock
 
PPTX
This is css which compiled by alex that is impo
AlebelAyalneh
 
PPTX
Cascading Style Sheets (CSS) - An introduction
rachaelboyer
 
PDF
Advanced Web Programming Chapter 8
RohanMistry15
 
PDF
The CSS Handbook
jackchenvlo
 
PPT
Using Templates And Cascading Style Sheets10
Sutinder Mann
 
PPTX
Teched Inetrgation ppt and lering in simple
JagadishBabuParri
 
PPT
Lean And Clean! Building A Site With Web Standards
web.designer.developer
 
PPT
Lean And Clean! Building A Site With
web.designer.developer
 
PPTX
Lecture-6.pptx
vishal choudhary
 
PPTX
DHTML
Ravinder Kamboj
 
PPT
Using Cascading Style Sheets2
Sutinder Mann
 
PPTX
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
PDF
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
 
Css
zayhard99
 
New Css style
BUDNET
 
Vskills certified css designer Notes
Vskills
 
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
CSS Interview Questions for Fresher and Experience
Hitesh Kumar
 
GDI Seattle Intermediate HTML and CSS Class 1
Heather Rock
 
This is css which compiled by alex that is impo
AlebelAyalneh
 
Cascading Style Sheets (CSS) - An introduction
rachaelboyer
 
Advanced Web Programming Chapter 8
RohanMistry15
 
The CSS Handbook
jackchenvlo
 
Using Templates And Cascading Style Sheets10
Sutinder Mann
 
Teched Inetrgation ppt and lering in simple
JagadishBabuParri
 
Lean And Clean! Building A Site With Web Standards
web.designer.developer
 
Lean And Clean! Building A Site With
web.designer.developer
 
Lecture-6.pptx
vishal choudhary
 
Using Cascading Style Sheets2
Sutinder Mann
 
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
 

More from mohamed ashraf (13)

PDF
Seo wordpress
mohamed ashraf
 
PDF
File9350
mohamed ashraf
 
PDF
Css
mohamed ashraf
 
PDF
Basic css-tutorial
mohamed ashraf
 
PPT
Html tutorial
mohamed ashraf
 
PDF
Html css
mohamed ashraf
 
PPT
15 03-0460-00-0000-css-tutorial
mohamed ashraf
 
PPT
Ubi comp27nov04
mohamed ashraf
 
PPT
Phpwebdevelping
mohamed ashraf
 
PDF
Php
mohamed ashraf
 
PPT
Php
mohamed ashraf
 
PPT
Introduction to php
mohamed ashraf
 
PPT
Php
mohamed ashraf
 
Seo wordpress
mohamed ashraf
 
File9350
mohamed ashraf
 
Basic css-tutorial
mohamed ashraf
 
Html tutorial
mohamed ashraf
 
Html css
mohamed ashraf
 
15 03-0460-00-0000-css-tutorial
mohamed ashraf
 
Ubi comp27nov04
mohamed ashraf
 
Phpwebdevelping
mohamed ashraf
 
Introduction to php
mohamed ashraf
 

Recently uploaded (20)

PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Software Development Methodologies in 2025
KodekX
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Doc9.....................................
SofiaCollazos
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 

Css

  • 2. Assumptions You know HTML You do not know CSS You care about aesthetics and function You have 50 minutes to kill
  • 3. What We’ll Do What is CSS? View some code and talk basics Why use CSS? Advantages to Workflow Cost Savings Implementations Resources
  • 4. What are Cascading Style Sheets? Created by Hakon Wium Lie of MIT in 1994 Has become the W3C standard for controlling visual presentation of web pages Separates design elements from structural logic You get control and maintain the integrity of your data
  • 5. Let’s See Some Code Sample Style sheet Rule Structure
  • 6. Selectors Element Selectors – (refer to HTML tags)‏ H1 {color: purple;} H1, H2, P {color: purple;} Contextual – (refer to HTML, but in context)‏ LI B {color: purple;}
  • 7. Selectors Class Selectors <H1 CLASS=“warning”>Danger!</H1> <P CLASS=“warning”>Be careful…</P> …… . In your HTML code - H1.warning {color: red;} OR to an entire class… .warning {color:red;}
  • 8. Applying CSS to HTML Style rules can be applied in 3 ways: Inline Styles : <H1 STYLE=“color: blue; font-size: 20pt;”>A large purple Heading</H1> For individual elements using the STYLE attribute Embedded style sheets : <HTML><HEAD><TITLE>Stylin’!</TITLE> <STYLE TYPE=“text/css”> H1 {color: purple;} P {font-size: 10pt; color: gray;} </STYLE> </HEAD> … </HTML> External style sheets : <HEAD> <LINK REL=stylesheet” TYPE=“text/css” HREF=“styles/ mystyles.css ”> </HEAD> This is true “separation” of style and content. Keeping all your styles in an external document is simpler
  • 9. Why CSS? Advantages to Workflow Cost Savings You WILL Be Cooler
  • 10. Advantages of CSS Workflow Faster downloads Streamlined site maintenance Global control of design attributes Precise control (Advanced)‏ Positioning Fluid layouts
  • 11. Advantages of CSS - Cost Savings Cost Savings Reduced Bandwidth Costs One style sheet called and cached Higher Search Engine Rankings Cleaner code is easier for search engines to index Greater density of indexable content
  • 12. Advantages of CSS - Cost Savings Faster download = better usability Web usability redesign can increase the sales/conversion rate by 100% (source: Jakob Nielson ) CSS requires less code Tables require spacer images Entire table has to render before content CSS can control the order that elements download (content before images)‏
  • 13. Advantages of CSS - Cost Savings Increased Reach CSS website is compatible w/ many different devices In 2008 an est. 58 Million PDA’s will be sold (Source: eTForecast.com)‏ 1/3 of the world’s population will own a wireless device by 2010
  • 14. Implementations Apply to HTML pages Apply to dynamic data Format or style XML Use for layout (this is cool)‏ See http://www.csszengarden.com
  • 15. CSS isn’t perfect (yet)‏ CSS support in browsers is still uneven Make sure your CSS properties are supported
  • 16. Resources http://www.csszengarden.com This is CSS at its finest http://www.w3.org/Style/CSS/ The Official CSS Site http://css.maxdesign.com.au/ Australian firm, very professional http://webmonkey.wired.com/webmonkey/reference/stylesheet_guide Where I learned CSS and Web Design
  • 17. Come and see me at 3:30pm! “ Making Your Web Site More Appealing”