SlideShare a Scribd company logo
Copyright © Terry Felke-Morris
WEB DEVELOPMENT & DESIGN
FOUNDATIONS WITH HTML5
Chapter 3
Key Concepts
1Copyright © Terry Felke-Morris
Copyright © Terry Felke-Morris
LEARNING OUTCOMES
 In this chapter, you will learn how to . . .
 Describe the evolution of style sheets from print media to the Web
 List advantages of using Cascading Style Sheets
 Use color on web pages
 Create style sheets that configure common color and text properties
 Apply inline styles
 Use embedded style sheets
 Use external style sheets
 Configure element, class, id, and contextual selectors
 Utilize the “cascade” in CSS
 Validate CSS
2
Copyright © Terry Felke-Morris
OVERVIEW OF
CASCADING STYLE SHEETS (CSS)
 See what is possible with CSS:
 Visit http://www.csszengarden.com
 Style Sheets
 used for years in Desktop Publishing
 apply typographical styles and spacing to printed media
 CSS
 provides the functionality of style sheets (and much more) for
web developers
 a flexible, cross-platform, standards-based language developed
by theW3C.
3
Copyright © Terry Felke-Morris
CSS
ADVANTAGES
 Greater typography and page layout control
 Style is separate from structure
 Styles can be stored in a separate document
and associated with the web page
 Potentially smaller documents
 Easier site maintenance
4
Copyright © Terry Felke-Morris
TYPES OF CASCADING STYLE
SHEETS (1)
 Inline Styles
 Embedded Styles
 External Styles
 Imported Styles
5
Copyright © Terry Felke-Morris
CASCADING STYLE SHEETS
Inline Styles
◦ body section
◦ HTML style attribute
◦ apply only to the specific element
Embedded Styles
◦ head secdtion
◦ HTML style element
◦ apply to the entire web page document
External Styles
◦ Separate text file with .css file extension
◦ Associate with a HTML link element in the head section of a web page
◦ Imported Styles
◦ Similar to External Styles
◦ We’ll concentrate on the other three types of styles.
6
Copyright © Terry Felke-Morris
CSS SYNTAX
 Style sheets are composed of "Rules" that describe the
styling to be applied.
 Each Rule contains a Selector and a Declaration
7
Copyright © Terry Felke-Morris
CSS SYNTAX SAMPLE
Configure a web page to display blue text and yellow background.
body { color: blue;
background-color: yellow; }
This could also be written using hexadecimal color values as
shown below.
body { color: #0000FF;
background-color: #FFFF00; }
8
Copyright © Terry Felke-Morris
COMMON FORMATTING
CSS PROPERTIES
 See Table 3.1 Common CSS Properties, including:
◦ background-color
◦ color
◦ font-family
◦ font-size
◦ font-style
◦ font-weight
◦ line-height
◦ margin
◦ text-align
◦ text-decoration
◦ width
9
Copyright © Terry Felke-Morris
USING COLOR ON WEB PAGES
 Computer monitors display color as
intensities of red, green, and blue light
 RGB Color
 The values of red, green, and blue vary
from 0 to 255.
 Hexadecimal numbers (base 16)
represent these color values.
10
Copyright © Terry Felke-Morris
HEXADECIMAL
COLORVALUES
# is used to indicate a hexadecimal value
Hex value pairs range from 00 to FF
Three hex value pairs describe an RGB color
#000000 black #FFFFFF white
#FF0000 red #00FF00 green
#0000FF blue #CCCCCC grey
11
Copyright © Terry Felke-Morris
WEB COLOR PALETTE
A collection of 216 colors
Display the most
similar
on the Mac and PC
platforms
Hex values:
00, 33, 66, 99, CC, FF
Color Chart
http://webdevfoundations.net/color
12
Copyright © Terry Felke-Morris
MAKING COLOR CHOICES
 How to choose a color scheme?
 Monochromatic
 http://meyerweb.com/eric/tools/color-blend
 Choose from a photograph or other image
 http://www.colr.org
 Begin with a favorite color
 Use one of the sites below to choose other colors
 http://colorsontheweb.com/colorwizard.asp
 http://kuler.Adobe.com
 http://colorschemedesigner.com/
13
Copyright © Terry Felke-Morris
CONFIGURING COLOR WITH INLINE CSS
 Inline CSS
 Configured in the body of the web page
 Use the style attribute of an HTML tag
 Apply only to the specific element
 The Style Attribute
 Value: one or more style declaration property and value pairs
Example: configure red color text in an <h1> element:
<h1 style="color:#ff0000">Heading text is red</h1>
14
Copyright © Terry Felke-Morris
CONFIGURING COLOR WITH INLINE CSS
Example 2: configure the red text in the heading
configure a gray backgroundin the heading
Separate style rule declarations with ;
<h1 style="color:#FF0000;background-color:#cccccc">This is
displayed as a red heading with gray background</h1>
15
Copyright © Terry Felke-Morris
CSS EMBEDDED STYLES
 Configured in the header section of a web page.
 Use the HTML <style> element
 Apply to the entire web page document
 Style declarations are contained between the opening
and closing <style> tags
 Example: Configure a web page with white text on a
black background
16
<style>
body { background-color: #000000;
color: #FFFFFF;
}
</style>
Copyright © Terry Felke-Morris
CSS EMBEDDED STYLES
<style>
body { background-color: #E6E6FA;
color: #191970;}
h1 { background-color: #191970;
color: #E6E6FA;}
h2 { background-color: #AEAED4;
color: #191970;}
</style>
• The body selector sets the
global style rules for the entire
page.
• These global rules are
overridden for <h1> and <h2>
elements by the h1 and h2 style
rules.
17
Copyright © Terry Felke-Morris
CHECKPOINT 3.1
1. List three reasons to use CSS on a web page.
2. When designing a page that uses colors other than the default
colors for text and background, explain why it is a good reason
to configure style rules for both text color and background color.
3. Describe one advantage to using embedded styles instead of
inline styles.
18
Copyright © Terry Felke-Morris
CONFIGURING TEXT WITH CSS
 CSS properties for configuring text:
 font-weight
 Configures the boldness of text
 font-style
 Configures text to an italic style
 font-size
 Configures the size of the text
 font-family
 Configures the font typeface of the text
19
Copyright © Terry Felke-Morris
THE FONT-SIZE PROPERTY
Accessibility Recommendation: Use em or percentage font sizes – these can be
easily enlarged in all browsers by users
20
Copyright © Terry Felke-Morris
THE FONT-FAMILY PROPERTY
 Not everyone has the same fonts installed in their computer
 Configure a list of fonts and include a generic family name
p {font-family: Arial, Verdana, sans-serif;}
21
Copyright © Terry Felke-Morris
EMBEDDED STYLES
EXAMPLE
<style>
body { background-color: #E6E6FA;
color: #191970;
font-family: Arial, Verdana, sans-serif; }
h1 { background-color: #191970;
color: #E6E6FA;
line-height: 200%;
font-family: Georgia, "Times New Roman", serif; }
h2 { background-color: #AEAED4;
color: #191970; text-align: center;
font-family: Georgia, "Times New Roman", serif; }
p {font-size: .90em; text-indent: 3em; }
ul {font-weight: bold; }
</style>
22
Copyright © Terry Felke-Morris
CSS SELECTORS
CSS style rules can be
configured for an:
 HTML element selector
 class selector
 id selector
23
Copyright © Terry Felke-Morris
USING CSS WITH “CLASS” class Selector
 Apply a CSS
rule to a certain "class" of
elements on a web page
 Does not associate the
style to a specific HTML element
 Configure with .classname
 code CSS to create a class called “new” with red italic text.
 Apply the class:
<p class=“new”>This is text is red and in italics</p>
24
<style>
.new { color: #FF0000;
font-style: italic;
}
</style>
Copyright © Terry Felke-Morris
USING CSS WITH “ID”
 id Selector
 Apply a CSS
rule to ONE element
on a web page.
 Configure with #idname
 Code CSS to create an id called “new”
with red, large, italic text.
 Apply the id:
<p id=“new”>This is text is red, large, and in italics</p>
25
<style>
#new { color: #FF0000;
font-size:2em;
font-style: italic;
}
</style>
Copyright © Terry Felke-Morris
CSS CONTEXTUAL SELECTOR
 Specify an element within the context of its
container (parent) element.
 AKA descendent selector
 The example configures a
green text color only for
anchor tags located within the footer id
 Advantage of contextual selectors:
Reduce the number of classes and ids you need to
apply in the HTML
26
<style>
#footer a {
color: #00ff00; }
</style>
Copyright © Terry Felke-Morris
SPAN ELEMENT
 Purpose:
 configure a specially formatted area displayed
in-line with other elements, such as within a
paragraph.
 There is no additional empty space
above or below a span – it is inline
display.
27
Copyright © Terry Felke-Morris
SPAN ELEMENT EXAMPLE
 Embedded CSS:
<style>
.companyname { font-weight: bold;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.25em;
}
</style>
 HTML:
<p>Your needs are important to us at <span
class=“companyname">Acme Web Design</span>.
We will work with you to build your Web site.</p>
28
Copyright © Terry Felke-Morris
EXTERNAL STYLE SHEETS - 1
 CSS style rules are contained in a
text file separate from the HTML
documents.
 The External Style Sheet text file:
 extension ".css"
 contains only style rules
 does not contain any HTML tags
29
Copyright © Terry Felke-Morris
body {background-color:#E6E6FA;
color:#000000;
font-family:Arial, sans-serif;
font-size:90%; }
h2 { color: #003366; }
.nav { font-size: 16px;
font-weight: bold; }
body {background-color:#E6E6FA;
color:#000000;
font-family:Arial, sans-serif;
font-size:90%; }
h2 { color: #003366; }
.nav { font-size: 16px;
font-weight: bold; }
EXTERNAL STYLE SHEETS - 2
 Multiple web pages can associate with
the same external style sheet file.
30
site.css
index.htmlindex.html
clients.htmlclients.html
about.htmlabout.html
Etc…
Copyright © Terry Felke-Morris
LINK ELEMENT
 A self-contained tag
 Placed in the header section
 Purpose: associates the external style
sheet file with the web page.
 Example:
31
<link rel="stylesheet" href="color.css">
Copyright © Terry Felke-Morris
USING ANEXTERNAL STYLE SHEET
To link to the external style sheet called color.css, the
HTML code placed in the head section is:
<link rel="stylesheet" href="color.css">
body { background-color: #0000FF;
color: #FFFFFF;
}
External Style Sheet color.css
32
Copyright © Terry Felke-Morris
CHECKPOINT 3.2
1. Describe a reason to use embedded styles. Explain
where embedded styles are placed on a web page.
2. Describe a reason to use external styles. Explain
where external styles are placed and how web
pages indicate they are using external styles.
3. Write the code to configure a web page to use an
external style sheet called “mystyles.css”.
33
Copyright © Terry Felke-Morris
CENTERING PAGE CONTENT
WITH CSS#container { margin-left: auto;
margin-right: auto;
width:80%; }
34
Copyright © Terry Felke-Morris
THE “CASCADE”
35
Copyright © Terry Felke-Morris
W3C CSSVALIDATION
 http://jigsaw.w3.org/css-validator/
36
Copyright © Terry Felke-Morris
SUMMARY
 This chapter introduced you to Cascading Style Sheet Rules
associated with color and text on web pages.
 You configured inline styles, embedded styles, and external styles.
 You applied CSS style rues to HTML, class, and id selectors.
 You are able to submit your CSS to the W3C CSSValidation test.
37

More Related Content

What's hot

Chapter3
Chapter3Chapter3
Chapter3
DeAnna Gossett
 
Chapter7
Chapter7Chapter7
Chapter7
DeAnna Gossett
 
World wide web with multimedia
World wide web with multimediaWorld wide web with multimedia
World wide web with multimedia
Afaq Siddiqui
 
Chapter 1 - Web Design
Chapter 1 - Web DesignChapter 1 - Web Design
Chapter 1 - Web Design
tclanton4
 
Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)
SARAVANAN RAMAOORTHY
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
ketanraval
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
Ketan Raval
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
SynapseindiaComplaints
 
Purlem Personal URL "How To" Documentation - Print Version
Purlem Personal URL "How To" Documentation - Print VersionPurlem Personal URL "How To" Documentation - Print Version
Purlem Personal URL "How To" Documentation - Print Version
Marty Thomas
 
Purlem Personal URL "How To" Documentation - Internet Version
Purlem Personal URL "How To" Documentation - Internet VersionPurlem Personal URL "How To" Documentation - Internet Version
Purlem Personal URL "How To" Documentation - Internet Version
Marty Thomas
 
Cis145 03 configuring-withcss
Cis145 03 configuring-withcssCis145 03 configuring-withcss
Cis145 03 configuring-withcss
Nicole77777
 
Html basics
Html basicsHtml basics
Html basics
Veronica Alejandro
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
Stephen Pollard
 
Intro to ExpressionEngine and CodeIgniter
Intro to ExpressionEngine and CodeIgniterIntro to ExpressionEngine and CodeIgniter
Intro to ExpressionEngine and CodeIgniter
brightrocket
 
Html n css tutorial
Html n css tutorialHtml n css tutorial
Html n css tutorial
zubeditufail
 
Building a Simple, Responsive Website with ExpressionEngine
Building a Simple, Responsive Website with ExpressionEngineBuilding a Simple, Responsive Website with ExpressionEngine
Building a Simple, Responsive Website with ExpressionEngine
Ottergoose
 
Ibs las vegas
Ibs las vegasIbs las vegas
Ibs las vegas
Vaibhav Gade
 
How websites and search engines work
How websites and search engines workHow websites and search engines work
How websites and search engines work
Brian Duffy
 
Introduction to Web Design
Introduction to Web DesignIntroduction to Web Design
Introduction to Web Design
webhostingguy
 
Day of code
Day of codeDay of code
Day of code
Evan Farr
 

What's hot (20)

Chapter3
Chapter3Chapter3
Chapter3
 
Chapter7
Chapter7Chapter7
Chapter7
 
World wide web with multimedia
World wide web with multimediaWorld wide web with multimedia
World wide web with multimedia
 
Chapter 1 - Web Design
Chapter 1 - Web DesignChapter 1 - Web Design
Chapter 1 - Web Design
 
Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 
Purlem Personal URL "How To" Documentation - Print Version
Purlem Personal URL "How To" Documentation - Print VersionPurlem Personal URL "How To" Documentation - Print Version
Purlem Personal URL "How To" Documentation - Print Version
 
Purlem Personal URL "How To" Documentation - Internet Version
Purlem Personal URL "How To" Documentation - Internet VersionPurlem Personal URL "How To" Documentation - Internet Version
Purlem Personal URL "How To" Documentation - Internet Version
 
Cis145 03 configuring-withcss
Cis145 03 configuring-withcssCis145 03 configuring-withcss
Cis145 03 configuring-withcss
 
Html basics
Html basicsHtml basics
Html basics
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 
Intro to ExpressionEngine and CodeIgniter
Intro to ExpressionEngine and CodeIgniterIntro to ExpressionEngine and CodeIgniter
Intro to ExpressionEngine and CodeIgniter
 
Html n css tutorial
Html n css tutorialHtml n css tutorial
Html n css tutorial
 
Building a Simple, Responsive Website with ExpressionEngine
Building a Simple, Responsive Website with ExpressionEngineBuilding a Simple, Responsive Website with ExpressionEngine
Building a Simple, Responsive Website with ExpressionEngine
 
Ibs las vegas
Ibs las vegasIbs las vegas
Ibs las vegas
 
How websites and search engines work
How websites and search engines workHow websites and search engines work
How websites and search engines work
 
Introduction to Web Design
Introduction to Web DesignIntroduction to Web Design
Introduction to Web Design
 
Day of code
Day of codeDay of code
Day of code
 

Viewers also liked

Chapter12
Chapter12Chapter12
Chapter12
DeAnna Gossett
 
Chapter6
Chapter6Chapter6
Chapter6
DeAnna Gossett
 
Elet5e ch01
Elet5e ch01Elet5e ch01
Elet5e ch01
DeAnna Gossett
 
Chapter5
Chapter5Chapter5
Chapter5
DeAnna Gossett
 
Chapter11
Chapter11Chapter11
Chapter11
DeAnna Gossett
 
Chapter14
Chapter14Chapter14
Chapter14
DeAnna Gossett
 
Chapter9
Chapter9Chapter9
Chapter9
DeAnna Gossett
 
Chapter4
Chapter4Chapter4
Chapter4
DeAnna Gossett
 
Chapter8
Chapter8Chapter8
Chapter8
DeAnna Gossett
 
Chapter10
Chapter10Chapter10
Chapter10
DeAnna Gossett
 
Chapter13
Chapter13Chapter13
Chapter13
DeAnna Gossett
 
Chapter1
Chapter1Chapter1
Chapter1
DeAnna Gossett
 
Chapter2
Chapter2Chapter2
Chapter2
DeAnna Gossett
 

Viewers also liked (13)

Chapter12
Chapter12Chapter12
Chapter12
 
Chapter6
Chapter6Chapter6
Chapter6
 
Elet5e ch01
Elet5e ch01Elet5e ch01
Elet5e ch01
 
Chapter5
Chapter5Chapter5
Chapter5
 
Chapter11
Chapter11Chapter11
Chapter11
 
Chapter14
Chapter14Chapter14
Chapter14
 
Chapter9
Chapter9Chapter9
Chapter9
 
Chapter4
Chapter4Chapter4
Chapter4
 
Chapter8
Chapter8Chapter8
Chapter8
 
Chapter10
Chapter10Chapter10
Chapter10
 
Chapter13
Chapter13Chapter13
Chapter13
 
Chapter1
Chapter1Chapter1
Chapter1
 
Chapter2
Chapter2Chapter2
Chapter2
 

Similar to Chapter 3 - Web Design

Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
Css Founder
 
Css
CssCss
Css
CssCss
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp
 
Styling text using css
Styling text using cssStyling text using css
Styling text using css
Daniel Francis
 
CSS
CSSCSS
CSS ppt
CSS pptCSS ppt
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
RohanMistry15
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
wubiederebe1
 
Week11 Lecture: CSS
Week11 Lecture: CSSWeek11 Lecture: CSS
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1
Jyoti Yadav
 
Css
CssCss
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
Unit 2.1
Unit 2.1Unit 2.1
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
Programmer Blog
 
CSS Presentation Notes.pptx
CSS Presentation Notes.pptxCSS Presentation Notes.pptx
CSS Presentation Notes.pptx
VineetaSingh713208
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
Bravocash
 
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptxUnitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
VikasTuwar1
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 

Similar to Chapter 3 - Web Design (20)

Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
 
Css
CssCss
Css
 
Css
CssCss
Css
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Styling text using css
Styling text using cssStyling text using css
Styling text using css
 
CSS
CSSCSS
CSS
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
 
Week11 Lecture: CSS
Week11 Lecture: CSSWeek11 Lecture: CSS
Week11 Lecture: CSS
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1
 
Css
CssCss
Css
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
Unit 2.1
Unit 2.1Unit 2.1
Unit 2.1
 
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
 
CSS Presentation Notes.pptx
CSS Presentation Notes.pptxCSS Presentation Notes.pptx
CSS Presentation Notes.pptx
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptxUnitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
 

More from tclanton4

Chapter 14 - Web Design
Chapter 14 - Web DesignChapter 14 - Web Design
Chapter 14 - Web Design
tclanton4
 
Chapter 13 - Web Design
Chapter 13 - Web DesignChapter 13 - Web Design
Chapter 13 - Web Design
tclanton4
 
Chapter 12 - Web Design
Chapter 12 - Web DesignChapter 12 - Web Design
Chapter 12 - Web Design
tclanton4
 
Chapter 10 - Web Design
Chapter 10 - Web DesignChapter 10 - Web Design
Chapter 10 - Web Design
tclanton4
 
Chapter 9 - Web Design
Chapter 9 - Web DesignChapter 9 - Web Design
Chapter 9 - Web Design
tclanton4
 
Chapter 8 - Web Design
Chapter 8 - Web DesignChapter 8 - Web Design
Chapter 8 - Web Design
tclanton4
 
Base2
Base2Base2
Base2
tclanton4
 
Base1
Base1Base1
Base1
tclanton4
 
Impress
ImpressImpress
Impress
tclanton4
 
Project Mgt
Project MgtProject Mgt
Project Mgt
tclanton4
 
Charts in Calc
Charts in CalcCharts in Calc
Charts in Calc
tclanton4
 
Formatting a Worksheet in Calc
Formatting a Worksheet in CalcFormatting a Worksheet in Calc
Formatting a Worksheet in Calc
tclanton4
 
Creating a Worksheet in Calc
Creating a Worksheet in CalcCreating a Worksheet in Calc
Creating a Worksheet in Calc
tclanton4
 
Advanced Features of Writer
Advanced Features of WriterAdvanced Features of Writer
Advanced Features of Writer
tclanton4
 
Creating a Writer Document
Creating a Writer DocumentCreating a Writer Document
Creating a Writer Document
tclanton4
 
Formatting Features of Writer
Formatting Features of WriterFormatting Features of Writer
Formatting Features of Writer
tclanton4
 
Getting Started - The Basics
Getting Started - The BasicsGetting Started - The Basics
Getting Started - The Basics
tclanton4
 
Intro to Information Systems
Intro to Information SystemsIntro to Information Systems
Intro to Information Systems
tclanton4
 
Unit 04 PowerPoint (WebA)
Unit 04 PowerPoint (WebA)Unit 04 PowerPoint (WebA)
Unit 04 PowerPoint (WebA)
tclanton4
 

More from tclanton4 (19)

Chapter 14 - Web Design
Chapter 14 - Web DesignChapter 14 - Web Design
Chapter 14 - Web Design
 
Chapter 13 - Web Design
Chapter 13 - Web DesignChapter 13 - Web Design
Chapter 13 - Web Design
 
Chapter 12 - Web Design
Chapter 12 - Web DesignChapter 12 - Web Design
Chapter 12 - Web Design
 
Chapter 10 - Web Design
Chapter 10 - Web DesignChapter 10 - Web Design
Chapter 10 - Web Design
 
Chapter 9 - Web Design
Chapter 9 - Web DesignChapter 9 - Web Design
Chapter 9 - Web Design
 
Chapter 8 - Web Design
Chapter 8 - Web DesignChapter 8 - Web Design
Chapter 8 - Web Design
 
Base2
Base2Base2
Base2
 
Base1
Base1Base1
Base1
 
Impress
ImpressImpress
Impress
 
Project Mgt
Project MgtProject Mgt
Project Mgt
 
Charts in Calc
Charts in CalcCharts in Calc
Charts in Calc
 
Formatting a Worksheet in Calc
Formatting a Worksheet in CalcFormatting a Worksheet in Calc
Formatting a Worksheet in Calc
 
Creating a Worksheet in Calc
Creating a Worksheet in CalcCreating a Worksheet in Calc
Creating a Worksheet in Calc
 
Advanced Features of Writer
Advanced Features of WriterAdvanced Features of Writer
Advanced Features of Writer
 
Creating a Writer Document
Creating a Writer DocumentCreating a Writer Document
Creating a Writer Document
 
Formatting Features of Writer
Formatting Features of WriterFormatting Features of Writer
Formatting Features of Writer
 
Getting Started - The Basics
Getting Started - The BasicsGetting Started - The Basics
Getting Started - The Basics
 
Intro to Information Systems
Intro to Information SystemsIntro to Information Systems
Intro to Information Systems
 
Unit 04 PowerPoint (WebA)
Unit 04 PowerPoint (WebA)Unit 04 PowerPoint (WebA)
Unit 04 PowerPoint (WebA)
 

Recently uploaded

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 

Recently uploaded (20)

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 

Chapter 3 - Web Design

  • 1. Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1Copyright © Terry Felke-Morris
  • 2. Copyright © Terry Felke-Morris LEARNING OUTCOMES  In this chapter, you will learn how to . . .  Describe the evolution of style sheets from print media to the Web  List advantages of using Cascading Style Sheets  Use color on web pages  Create style sheets that configure common color and text properties  Apply inline styles  Use embedded style sheets  Use external style sheets  Configure element, class, id, and contextual selectors  Utilize the “cascade” in CSS  Validate CSS 2
  • 3. Copyright © Terry Felke-Morris OVERVIEW OF CASCADING STYLE SHEETS (CSS)  See what is possible with CSS:  Visit http://www.csszengarden.com  Style Sheets  used for years in Desktop Publishing  apply typographical styles and spacing to printed media  CSS  provides the functionality of style sheets (and much more) for web developers  a flexible, cross-platform, standards-based language developed by theW3C. 3
  • 4. Copyright © Terry Felke-Morris CSS ADVANTAGES  Greater typography and page layout control  Style is separate from structure  Styles can be stored in a separate document and associated with the web page  Potentially smaller documents  Easier site maintenance 4
  • 5. Copyright © Terry Felke-Morris TYPES OF CASCADING STYLE SHEETS (1)  Inline Styles  Embedded Styles  External Styles  Imported Styles 5
  • 6. Copyright © Terry Felke-Morris CASCADING STYLE SHEETS Inline Styles ◦ body section ◦ HTML style attribute ◦ apply only to the specific element Embedded Styles ◦ head secdtion ◦ HTML style element ◦ apply to the entire web page document External Styles ◦ Separate text file with .css file extension ◦ Associate with a HTML link element in the head section of a web page ◦ Imported Styles ◦ Similar to External Styles ◦ We’ll concentrate on the other three types of styles. 6
  • 7. Copyright © Terry Felke-Morris CSS SYNTAX  Style sheets are composed of "Rules" that describe the styling to be applied.  Each Rule contains a Selector and a Declaration 7
  • 8. Copyright © Terry Felke-Morris CSS SYNTAX SAMPLE Configure a web page to display blue text and yellow background. body { color: blue; background-color: yellow; } This could also be written using hexadecimal color values as shown below. body { color: #0000FF; background-color: #FFFF00; } 8
  • 9. Copyright © Terry Felke-Morris COMMON FORMATTING CSS PROPERTIES  See Table 3.1 Common CSS Properties, including: ◦ background-color ◦ color ◦ font-family ◦ font-size ◦ font-style ◦ font-weight ◦ line-height ◦ margin ◦ text-align ◦ text-decoration ◦ width 9
  • 10. Copyright © Terry Felke-Morris USING COLOR ON WEB PAGES  Computer monitors display color as intensities of red, green, and blue light  RGB Color  The values of red, green, and blue vary from 0 to 255.  Hexadecimal numbers (base 16) represent these color values. 10
  • 11. Copyright © Terry Felke-Morris HEXADECIMAL COLORVALUES # is used to indicate a hexadecimal value Hex value pairs range from 00 to FF Three hex value pairs describe an RGB color #000000 black #FFFFFF white #FF0000 red #00FF00 green #0000FF blue #CCCCCC grey 11
  • 12. Copyright © Terry Felke-Morris WEB COLOR PALETTE A collection of 216 colors Display the most similar on the Mac and PC platforms Hex values: 00, 33, 66, 99, CC, FF Color Chart http://webdevfoundations.net/color 12
  • 13. Copyright © Terry Felke-Morris MAKING COLOR CHOICES  How to choose a color scheme?  Monochromatic  http://meyerweb.com/eric/tools/color-blend  Choose from a photograph or other image  http://www.colr.org  Begin with a favorite color  Use one of the sites below to choose other colors  http://colorsontheweb.com/colorwizard.asp  http://kuler.Adobe.com  http://colorschemedesigner.com/ 13
  • 14. Copyright © Terry Felke-Morris CONFIGURING COLOR WITH INLINE CSS  Inline CSS  Configured in the body of the web page  Use the style attribute of an HTML tag  Apply only to the specific element  The Style Attribute  Value: one or more style declaration property and value pairs Example: configure red color text in an <h1> element: <h1 style="color:#ff0000">Heading text is red</h1> 14
  • 15. Copyright © Terry Felke-Morris CONFIGURING COLOR WITH INLINE CSS Example 2: configure the red text in the heading configure a gray backgroundin the heading Separate style rule declarations with ; <h1 style="color:#FF0000;background-color:#cccccc">This is displayed as a red heading with gray background</h1> 15
  • 16. Copyright © Terry Felke-Morris CSS EMBEDDED STYLES  Configured in the header section of a web page.  Use the HTML <style> element  Apply to the entire web page document  Style declarations are contained between the opening and closing <style> tags  Example: Configure a web page with white text on a black background 16 <style> body { background-color: #000000; color: #FFFFFF; } </style>
  • 17. Copyright © Terry Felke-Morris CSS EMBEDDED STYLES <style> body { background-color: #E6E6FA; color: #191970;} h1 { background-color: #191970; color: #E6E6FA;} h2 { background-color: #AEAED4; color: #191970;} </style> • The body selector sets the global style rules for the entire page. • These global rules are overridden for <h1> and <h2> elements by the h1 and h2 style rules. 17
  • 18. Copyright © Terry Felke-Morris CHECKPOINT 3.1 1. List three reasons to use CSS on a web page. 2. When designing a page that uses colors other than the default colors for text and background, explain why it is a good reason to configure style rules for both text color and background color. 3. Describe one advantage to using embedded styles instead of inline styles. 18
  • 19. Copyright © Terry Felke-Morris CONFIGURING TEXT WITH CSS  CSS properties for configuring text:  font-weight  Configures the boldness of text  font-style  Configures text to an italic style  font-size  Configures the size of the text  font-family  Configures the font typeface of the text 19
  • 20. Copyright © Terry Felke-Morris THE FONT-SIZE PROPERTY Accessibility Recommendation: Use em or percentage font sizes – these can be easily enlarged in all browsers by users 20
  • 21. Copyright © Terry Felke-Morris THE FONT-FAMILY PROPERTY  Not everyone has the same fonts installed in their computer  Configure a list of fonts and include a generic family name p {font-family: Arial, Verdana, sans-serif;} 21
  • 22. Copyright © Terry Felke-Morris EMBEDDED STYLES EXAMPLE <style> body { background-color: #E6E6FA; color: #191970; font-family: Arial, Verdana, sans-serif; } h1 { background-color: #191970; color: #E6E6FA; line-height: 200%; font-family: Georgia, "Times New Roman", serif; } h2 { background-color: #AEAED4; color: #191970; text-align: center; font-family: Georgia, "Times New Roman", serif; } p {font-size: .90em; text-indent: 3em; } ul {font-weight: bold; } </style> 22
  • 23. Copyright © Terry Felke-Morris CSS SELECTORS CSS style rules can be configured for an:  HTML element selector  class selector  id selector 23
  • 24. Copyright © Terry Felke-Morris USING CSS WITH “CLASS” class Selector  Apply a CSS rule to a certain "class" of elements on a web page  Does not associate the style to a specific HTML element  Configure with .classname  code CSS to create a class called “new” with red italic text.  Apply the class: <p class=“new”>This is text is red and in italics</p> 24 <style> .new { color: #FF0000; font-style: italic; } </style>
  • 25. Copyright © Terry Felke-Morris USING CSS WITH “ID”  id Selector  Apply a CSS rule to ONE element on a web page.  Configure with #idname  Code CSS to create an id called “new” with red, large, italic text.  Apply the id: <p id=“new”>This is text is red, large, and in italics</p> 25 <style> #new { color: #FF0000; font-size:2em; font-style: italic; } </style>
  • 26. Copyright © Terry Felke-Morris CSS CONTEXTUAL SELECTOR  Specify an element within the context of its container (parent) element.  AKA descendent selector  The example configures a green text color only for anchor tags located within the footer id  Advantage of contextual selectors: Reduce the number of classes and ids you need to apply in the HTML 26 <style> #footer a { color: #00ff00; } </style>
  • 27. Copyright © Terry Felke-Morris SPAN ELEMENT  Purpose:  configure a specially formatted area displayed in-line with other elements, such as within a paragraph.  There is no additional empty space above or below a span – it is inline display. 27
  • 28. Copyright © Terry Felke-Morris SPAN ELEMENT EXAMPLE  Embedded CSS: <style> .companyname { font-weight: bold; font-family: Georgia, "Times New Roman", serif; font-size: 1.25em; } </style>  HTML: <p>Your needs are important to us at <span class=“companyname">Acme Web Design</span>. We will work with you to build your Web site.</p> 28
  • 29. Copyright © Terry Felke-Morris EXTERNAL STYLE SHEETS - 1  CSS style rules are contained in a text file separate from the HTML documents.  The External Style Sheet text file:  extension ".css"  contains only style rules  does not contain any HTML tags 29
  • 30. Copyright © Terry Felke-Morris body {background-color:#E6E6FA; color:#000000; font-family:Arial, sans-serif; font-size:90%; } h2 { color: #003366; } .nav { font-size: 16px; font-weight: bold; } body {background-color:#E6E6FA; color:#000000; font-family:Arial, sans-serif; font-size:90%; } h2 { color: #003366; } .nav { font-size: 16px; font-weight: bold; } EXTERNAL STYLE SHEETS - 2  Multiple web pages can associate with the same external style sheet file. 30 site.css index.htmlindex.html clients.htmlclients.html about.htmlabout.html Etc…
  • 31. Copyright © Terry Felke-Morris LINK ELEMENT  A self-contained tag  Placed in the header section  Purpose: associates the external style sheet file with the web page.  Example: 31 <link rel="stylesheet" href="color.css">
  • 32. Copyright © Terry Felke-Morris USING ANEXTERNAL STYLE SHEET To link to the external style sheet called color.css, the HTML code placed in the head section is: <link rel="stylesheet" href="color.css"> body { background-color: #0000FF; color: #FFFFFF; } External Style Sheet color.css 32
  • 33. Copyright © Terry Felke-Morris CHECKPOINT 3.2 1. Describe a reason to use embedded styles. Explain where embedded styles are placed on a web page. 2. Describe a reason to use external styles. Explain where external styles are placed and how web pages indicate they are using external styles. 3. Write the code to configure a web page to use an external style sheet called “mystyles.css”. 33
  • 34. Copyright © Terry Felke-Morris CENTERING PAGE CONTENT WITH CSS#container { margin-left: auto; margin-right: auto; width:80%; } 34
  • 35. Copyright © Terry Felke-Morris THE “CASCADE” 35
  • 36. Copyright © Terry Felke-Morris W3C CSSVALIDATION  http://jigsaw.w3.org/css-validator/ 36
  • 37. Copyright © Terry Felke-Morris SUMMARY  This chapter introduced you to Cascading Style Sheet Rules associated with color and text on web pages.  You configured inline styles, embedded styles, and external styles.  You applied CSS style rues to HTML, class, and id selectors.  You are able to submit your CSS to the W3C CSSValidation test. 37