SlideShare a Scribd company logo
1 of 13
Download to read offline
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
 
Boostrap basics
Boostrap basicsBoostrap basics
Boostrap basicsJTechTown
 
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
 
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 TricksAndolasoft 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 CSSMario Hernandez
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSNYCSS Meetup
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn 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.3Liang-Hsuan Lin
 
HTML+CSS: how to get started
HTML+CSS: how to get startedHTML+CSS: how to get started
HTML+CSS: how to get startedDimitris Tsironis
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Designmlincol2
 

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

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
 
css1.ppt
css1.pptcss1.ppt
css1.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 PlanAnn 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

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
 
"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
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
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
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
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
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 

Recently uploaded (20)

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
 
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
 
"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
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
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
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
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
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 

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>