SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler 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>

Mais conteúdo relacionado

Mais procurados

Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSS
John Nelson
 
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
Sahil Gandhi
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1
Jesus Obenita Jr.
 

Mais procurados (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
 

Semelhante a Day5

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
CK Yang
 
CSS Foundations, pt 2
CSS Foundations, pt 2CSS Foundations, pt 2
CSS Foundations, pt 2
Shawn Calvert
 
Css 1
Css 1Css 1
Css 1
H K
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 

Semelhante a 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
 

Mais de 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
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

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>