SlideShare a Scribd company logo
CSS Review
 Self Awareness
  Developing
3 Ways " #1:In the Head
to style    
            <head>

html "      
            <style type=“text/css”>

with CSS
   
            Selector {
               
property:value;
               
property:value;
            }
            	
  
            </head>
3 Ways " #2:Inline
to style    
            <p style=“color:red”>This paragraph
html "      would be red (almost never a great

with CSS
   choice L</p>
3 Ways " #3:In a .css file
to style    
            By putting all the styles in a separate

html "      document with a “.css” extension, "
            and linking to that document in your"

with CSS
   
              html document.

            Don’t stress about this one for now.
CSS for styling text
 Awareness
       Developing Self
p {!
font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times
New Roman", serif;font-size
font-size: you can use pixels, points, ems, percentages and many other units. Ems
are the size of the base font you’re working from.
font-weight: Bold or normal
font-style: normal or italic
Text-align: left, right, center, justify, inherit.
line-height: distance from baseline to baseline (like leading). Expressed in pixels,
points, ems, percentages and many other units. 
text-shadow: 2em .2em .3 em silver (x-offset y-offset blur color)
Text-decoration: none (no underline)
}!
CSS for styling text
 Awareness
      Developing Self
You can group selectors:


p, h1 {
   
color:green;
   
font-style:italic;
}
Developing
 Self Awareness
          Fonts
1.  Go to http://www.google.com/webfonts#
2.  Choose a font and put it in your collection
3.  Review the font to make sure it’s what you want
4.  Click use
     1.  Put the code from “add this code” in the
         <head> of your html document
     2.  Apply the fonts in your CSS
Developing Self Awareness
Pseudo-class selectors
Making your links change color when you mouse over them.

  a:link {color:red} 
 
/* links are red*/
    a:visited {color:blue}   
/* visited links are blue*/
    a:hover {color:purple} 
/* hovering turns them purple*/
    a:active {color:red} 
/* red when clicking*/
Note well – the pseudo-class selectors must be in "
the above order.

LVHA – LoVe before HAte
<div></div> 
<span> </span>
                           
	
  




       Generic Elements
<div> content</div> 

This is a generic block-level element. 

It makes an element sort of like a <p> </p> or an "
<h1> </h1>, with space above and below.

Mostly, you create a <div> to apply styles to it. Divs are
used quite a bit in layout.
	
  


       Generic Elements
<span> content</span>

This is a generic inline element. It goes around areas
of text, the way you’d use <em> or <strong>.

Mostly, you use a span to apply styles to it.
	
  




       Generic Elements
Class              Step #1: Create a class in the style
                   sheet. You do so by putting a period

selectors
                   Before a name you make up for the
                   class and then putting in your
                   declarations.
creating generic   
styles
                   .bluebold{
                        
font-weight:bold;
                        
color:blue;
                   }
Class              Step #2: Apply the class to an element
                   

selectors
         <p class=“bluebold”>This
creating generic
styles
            paragraph has the bluebold
                   class applied to it, and it is
                   now blue and bold.</p>

More Related Content

What's hot

Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSSJohn Nelson
 
Intro to css
Intro to cssIntro to css
Intro to css
Rajashekarkorva
 
Boostrap basics
Boostrap basicsBoostrap basics
Boostrap basics
JTechTown
 
Css
CssCss
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointSahil Gandhi
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
Florian Letsch
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1Jesus Obenita Jr.
 
What's a web page made of?
What's a web page made of?What's a web page made of?
What's a web page made of?
Charlie Allen
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
Abhishek Kesharwani
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Introduction to Twitter Bootstrap 3.0.3
Introduction to Twitter Bootstrap 3.0.3Introduction to Twitter Bootstrap 3.0.3
Introduction to Twitter Bootstrap 3.0.3
Liang-Hsuan Lin
 
HTML+CSS: how to get started
HTML+CSS: how to get startedHTML+CSS: how to get started
HTML+CSS: how to get started
Dimitris Tsironis
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Design
mlincol2
 

What's hot (20)

Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSS
 
Intro to css
Intro to cssIntro to css
Intro to css
 
Boostrap basics
Boostrap basicsBoostrap basics
Boostrap basics
 
Css
CssCss
Css
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
Web Layout
Web LayoutWeb Layout
Web Layout
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
 
Css home
Css   homeCss   home
Css home
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Images on the Web
Images on the WebImages on the Web
Images on the Web
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1
 
What's a web page made of?
What's a web page made of?What's a web page made of?
What's a web page made of?
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Introduction to Twitter Bootstrap 3.0.3
Introduction to Twitter Bootstrap 3.0.3Introduction to Twitter Bootstrap 3.0.3
Introduction to Twitter Bootstrap 3.0.3
 
CSS
CSSCSS
CSS
 
HTML+CSS: how to get started
HTML+CSS: how to get startedHTML+CSS: how to get started
HTML+CSS: how to get started
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Design
 

Similar to Day5

Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
William Myers
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layoutCK Yang
 
Make Css easy : easy tips for css
Make Css easy : easy tips for cssMake Css easy : easy tips for css
Make Css easy : easy tips for css
shabab shihan
 
How to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - SacramentoHow to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - Sacramento
Suzette Franck
 
Customizing the look and-feel of DSpace
Customizing the look and-feel of DSpaceCustomizing the look and-feel of DSpace
Customizing the look and-feel of DSpace
Bharat Chaudhari
 
Sass Essentials
Sass EssentialsSass Essentials
Sass Essentials
romiguelangel
 
Pemrograman Web 2 - CSS
Pemrograman Web 2 - CSSPemrograman Web 2 - CSS
Pemrograman Web 2 - CSS
Nur Fadli Utomo
 
CSS Foundations, pt 2
CSS Foundations, pt 2CSS Foundations, pt 2
CSS Foundations, pt 2Shawn Calvert
 
Spectrum 2015 going online with style - an intro to css
Spectrum 2015   going online with style - an intro to cssSpectrum 2015   going online with style - an intro to css
Spectrum 2015 going online with style - an intro to css
Neil Perlin
 
Css 1
Css 1Css 1
Css 1H K
 
Css Basics
Css BasicsCss Basics
Css Basics
Jay Patel
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
Shawn Calvert
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 

Similar to Day5 (20)

Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
 
Make Css easy : easy tips for css
Make Css easy : easy tips for cssMake Css easy : easy tips for css
Make Css easy : easy tips for css
 
CSS
CSSCSS
CSS
 
Css
CssCss
Css
 
How to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - SacramentoHow to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - Sacramento
 
css v1 guru
css v1 gurucss v1 guru
css v1 guru
 
Css
CssCss
Css
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Customizing the look and-feel of DSpace
Customizing the look and-feel of DSpaceCustomizing the look and-feel of DSpace
Customizing the look and-feel of DSpace
 
Sass Essentials
Sass EssentialsSass Essentials
Sass Essentials
 
Pemrograman Web 2 - CSS
Pemrograman Web 2 - CSSPemrograman Web 2 - CSS
Pemrograman Web 2 - CSS
 
CSS Foundations, pt 2
CSS Foundations, pt 2CSS Foundations, pt 2
CSS Foundations, pt 2
 
Spectrum 2015 going online with style - an intro to css
Spectrum 2015   going online with style - an intro to cssSpectrum 2015   going online with style - an intro to css
Spectrum 2015 going online with style - an intro to css
 
CSS_tutorial_2
CSS_tutorial_2CSS_tutorial_2
CSS_tutorial_2
 
CSS_tutorial_2
CSS_tutorial_2CSS_tutorial_2
CSS_tutorial_2
 
Css 1
Css 1Css 1
Css 1
 
Css Basics
Css BasicsCss Basics
Css Basics
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
 

More from Ann Foley

Slicing+rollovers
Slicing+rolloversSlicing+rollovers
Slicing+rolloversAnn Foley
 
Centering page
Centering pageCentering page
Centering pageAnn Foley
 
Layout absolute poz
Layout absolute pozLayout absolute poz
Layout absolute pozAnn Foley
 
Elements r boxes
Elements r boxesElements r boxes
Elements r boxesAnn Foley
 
Self Awareness Learning Plan
Self Awareness Learning PlanSelf Awareness Learning Plan
Self Awareness Learning Plan
Ann Foley
 

More from Ann Foley (6)

Slicing+rollovers
Slicing+rolloversSlicing+rollovers
Slicing+rollovers
 
Background
BackgroundBackground
Background
 
Centering page
Centering pageCentering page
Centering page
 
Layout absolute poz
Layout absolute pozLayout absolute poz
Layout absolute poz
 
Elements r boxes
Elements r boxesElements r boxes
Elements r boxes
 
Self Awareness Learning Plan
Self Awareness Learning PlanSelf Awareness Learning Plan
Self Awareness Learning Plan
 

Recently uploaded

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 

Recently uploaded (20)

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 

Day5

  • 1. CSS Review Self Awareness Developing
  • 2. 3 Ways " #1:In the Head to style <head> html " <style type=“text/css”> with CSS Selector { property:value; property:value; }   </head>
  • 3. 3 Ways " #2:Inline to style <p style=“color:red”>This paragraph html " would be red (almost never a great with CSS choice L</p>
  • 4. 3 Ways " #3:In a .css file to style By putting all the styles in a separate html " document with a “.css” extension, " and linking to that document in your" with CSS html document. Don’t stress about this one for now.
  • 5. CSS for styling text Awareness Developing Self p {! font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;font-size font-size: you can use pixels, points, ems, percentages and many other units. Ems are the size of the base font you’re working from. font-weight: Bold or normal font-style: normal or italic Text-align: left, right, center, justify, inherit. line-height: distance from baseline to baseline (like leading). Expressed in pixels, points, ems, percentages and many other units. text-shadow: 2em .2em .3 em silver (x-offset y-offset blur color) Text-decoration: none (no underline) }!
  • 6. CSS for styling text Awareness Developing Self You can group selectors: p, h1 { color:green; font-style:italic; }
  • 7. Developing Self Awareness Fonts 1.  Go to http://www.google.com/webfonts# 2.  Choose a font and put it in your collection 3.  Review the font to make sure it’s what you want 4.  Click use 1.  Put the code from “add this code” in the <head> of your html document 2.  Apply the fonts in your CSS
  • 8. Developing Self Awareness Pseudo-class selectors Making your links change color when you mouse over them. a:link {color:red} /* links are red*/ a:visited {color:blue} /* visited links are blue*/ a:hover {color:purple} /* hovering turns them purple*/ a:active {color:red} /* red when clicking*/ Note well – the pseudo-class selectors must be in " the above order. LVHA – LoVe before HAte
  • 9. <div></div> <span> </span>   Generic Elements
  • 10. <div> content</div> This is a generic block-level element. It makes an element sort of like a <p> </p> or an " <h1> </h1>, with space above and below. Mostly, you create a <div> to apply styles to it. Divs are used quite a bit in layout.   Generic Elements
  • 11. <span> content</span> This is a generic inline element. It goes around areas of text, the way you’d use <em> or <strong>. Mostly, you use a span to apply styles to it.   Generic Elements
  • 12. Class Step #1: Create a class in the style sheet. You do so by putting a period selectors Before a name you make up for the class and then putting in your declarations. creating generic styles .bluebold{ font-weight:bold; color:blue; }
  • 13. Class Step #2: Apply the class to an element selectors <p class=“bluebold”>This creating generic styles paragraph has the bluebold class applied to it, and it is now blue and bold.</p>