SlideShare una empresa de Scribd logo
1 de 16
Week 03
Images and Typography
Images in HTML




<img src="images/full/factory.jpg" alt="factory-pic" title="Factory" />
Images in HTML




Start Tag                                             Alternate text if                           End Tag
                                                      image doesn't
        Search      Path to Image         Alternate       appear          Title     Image Title
        Attribute                         Attribute                       Attribute



   <img src="images/full/factory.jpg" alt="factory-pic" title="Factory" />
IMAGE TYPES: GIFs, JPGs, PNGs

GIF           Low quality, use for simple graphics
              only.




JPG           Photographic Imagery, Complex
              patters or gradients.




              Images with Alpha Transperency
PNG
Background Images in CSS

          HTML                                CSS                               Browser


<body>                          body {
                                  background-color: grey;
     <div id="box">             }
                                                                       This sentence is the intro to this
          <p>This sentence is
          the intro to this     p {                                              paragraph.
          paragraphs. </p>        font-size: 14px;
          </div>                  color: white;
                                  text-align: center;
</body>                           margin-top: 30px;
                                }

                                #box {
                                    height: 300px;
                                    width: 400px;
                                    border: 2px solid green;
                                    background-image:
                                      url('../images/factory2.jpg');
                                }
Background Images in CSS

          HTML                                CSS                               Browser


<body>                          body {
                                  background-color: grey;
     <div id="box">             }
                                                                       This sentence is the intro to this
          <p>This sentence is
          the intro to this     p {                                              paragraph.
          paragraphs. </p>        font-size: 14px;
          </div>                  color: white;
                                  text-align: center;
</body>                           margin-top: 28px;
                                }

                                #box {
                                    height: 300px;
                                    width: 400px;
                                    border: 2px solid green;
                                    background-image:
                                      url('../images/factory2.jpg');
                                }
Font-Family


   Font Family Property   Desired Font       Next Best   Most General



h1 {
             font-family: "Trebuchet MS", Helvetica, sans-serif;
   }
                                         Font Stack
Embedding Fonts

      CSS

@font-face {
    font-family: coolfont;
    src: url('fonts/coolfont.ttf'),   url('fonts/coolfont.eot');
}

p {
       font-family: coolfont, arial, sans-serif;
}
Embedding Fonts

      CSS
                                                     give the font a
@font-face {                                         simple name
    font-family: coolfont;
    src: url('fonts/coolfont.ttf'),   url('fonts/coolfont.eot');
}

p {
       font-family: coolfont, arial, sans-serif;
}
Embedding Fonts
                                                .OTF and .TTF fonts
                                                work with all browsers
      CSS                                       but Internet Explorer

@font-face {
    font-family: coolfont;
    src: url('fonts/coolfont.ttf'),   url('fonts/coolfont.eot');
}

p {
       font-family: coolfont, arial, sans-serif;
}
                                                   .EOT format required for
                                                   Internet Explorer Use.
Embedding Fonts

                                                   paths to the font files, in
      CSS
                                                   a font folder.
@font-face {
    font-family: coolfont;
    src: url('fonts/coolfont.ttf'), url('fonts/coolfont.eot');
}

p {
       font-family: coolfont, arial, sans-serif;
}
Embedding Fonts

      CSS - without IE code...

@font-face {
    font-family: coolfont;
    src: url('fonts/coolfont.ttf');
}

p {
       font-family: coolfont, arial, sans-serif;
}
Resetting Default CSS Styles
      CSS

* {
      vertical-align: baseline;
      font-weight: inherit;
      font-family: inherit;
      font-style: inherit;
      font-size: 100%;
      border: 0 none;
      outline: 0;
      padding: 0;
      margin: 0;
      }
Styling Links w/ Pseudo-classes
      CSS

a:link {
    color: blue;
    text-decoration: none;
    }

a:visited {
    color: lightBlue;
    text-decoration: none;
    }

a:hover {
    color: white;
    background-color: yellow;
    text-decoration: none;
    }

a:active {
    color: blue;
    text-decoration: none;
    }
Styling Links w/ Pseudo-classes
      CSS

a:link {
    color: blue;
    text-decoration: none;
    }

a:visited {
                                 PSEUDO-CLASSES
    color: lightBlue;
    text-decoration: none;
    }

a:hover {
    color: white;
    background-color: yellow;
    text-decoration: none;
    }

a:active {
    color: blue;
    text-decoration: none;
    }
Styling Links w/ Pseudo-classes
      CSS

a:link {                        Unvisited Link
    color: blue;
    text-decoration: none;
    }

a:visited {                     Visited Link
    color: lightBlue;
    text-decoration: none;
    }

a:hover {                       Mouse Over Link
    color: white;
    background-color: yellow;
    text-decoration: none;
    }

a:active {                      Selected Link
    color: blue;
    text-decoration: none;
    }

Más contenido relacionado

La actualidad más candente

Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSS
John Nelson
 

La actualidad más candente (19)

HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Html
HtmlHtml
Html
 
Basic html tags
Basic html tagsBasic html tags
Basic html tags
 
Html full
Html fullHtml full
Html full
 
HTML & XHTML Basics
HTML & XHTML BasicsHTML & XHTML Basics
HTML & XHTML Basics
 
Presentation 2
Presentation 2Presentation 2
Presentation 2
 
Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSS
 
TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
Html5
Html5Html5
Html5
 
Html Tags
Html TagsHtml Tags
Html Tags
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Web page concept final ppt
Web page concept  final pptWeb page concept  final ppt
Web page concept final ppt
 
HTML
HTMLHTML
HTML
 
Web Page Designing Using HTML
Web Page Designing Using HTMLWeb Page Designing Using HTML
Web Page Designing Using HTML
 
User Defined Characters Solution Proposal
User Defined Characters Solution ProposalUser Defined Characters Solution Proposal
User Defined Characters Solution Proposal
 
Css1
Css1Css1
Css1
 
HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
 

Similar a ID01 Week 3

waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 
Css 1
Css 1Css 1
Css 1
H K
 
Css+tutorial+in+bangla
Css+tutorial+in+banglaCss+tutorial+in+bangla
Css+tutorial+in+bangla
jessicaemily
 

Similar a ID01 Week 3 (20)

Css1
Css1Css1
Css1
 
html
htmlhtml
html
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
 
css1.ppt
css1.pptcss1.ppt
css1.ppt
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
 
Css(handbook)
Css(handbook)Css(handbook)
Css(handbook)
 
Estilos Css
Estilos CssEstilos Css
Estilos Css
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
 
CSS'in Gücü Adına
CSS'in Gücü AdınaCSS'in Gücü Adına
CSS'in Gücü Adına
 
Css 1
Css 1Css 1
Css 1
 
LessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingLessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG Meeting
 
CSS
CSSCSS
CSS
 
Web Design Assignment 1
Web Design Assignment 1 Web Design Assignment 1
Web Design Assignment 1
 
CSS Extenders
CSS ExtendersCSS Extenders
CSS Extenders
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Finding a Better Way to CSS: Navigating Sass with Compass
Finding a Better Way to CSS: Navigating Sass with CompassFinding a Better Way to CSS: Navigating Sass with Compass
Finding a Better Way to CSS: Navigating Sass with Compass
 
HTML & CSS Basics
HTML & CSS BasicsHTML & CSS Basics
HTML & CSS Basics
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
 
Css+tutorial+in+bangla
Css+tutorial+in+banglaCss+tutorial+in+bangla
Css+tutorial+in+bangla
 
Cascade.ss
Cascade.ssCascade.ss
Cascade.ss
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
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
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 

ID01 Week 3

  • 1. Week 03 Images and Typography
  • 2. Images in HTML <img src="images/full/factory.jpg" alt="factory-pic" title="Factory" />
  • 3. Images in HTML Start Tag Alternate text if End Tag image doesn't Search Path to Image Alternate appear Title Image Title Attribute Attribute Attribute <img src="images/full/factory.jpg" alt="factory-pic" title="Factory" />
  • 4. IMAGE TYPES: GIFs, JPGs, PNGs GIF Low quality, use for simple graphics only. JPG Photographic Imagery, Complex patters or gradients. Images with Alpha Transperency PNG
  • 5. Background Images in CSS HTML CSS Browser <body> body { background-color: grey; <div id="box"> } This sentence is the intro to this <p>This sentence is the intro to this p { paragraph. paragraphs. </p> font-size: 14px; </div> color: white; text-align: center; </body> margin-top: 30px; } #box { height: 300px; width: 400px; border: 2px solid green; background-image: url('../images/factory2.jpg'); }
  • 6. Background Images in CSS HTML CSS Browser <body> body { background-color: grey; <div id="box"> } This sentence is the intro to this <p>This sentence is the intro to this p { paragraph. paragraphs. </p> font-size: 14px; </div> color: white; text-align: center; </body> margin-top: 28px; } #box { height: 300px; width: 400px; border: 2px solid green; background-image: url('../images/factory2.jpg'); }
  • 7. Font-Family Font Family Property Desired Font Next Best Most General h1 { font-family: "Trebuchet MS", Helvetica, sans-serif; } Font Stack
  • 8. Embedding Fonts CSS @font-face { font-family: coolfont; src: url('fonts/coolfont.ttf'), url('fonts/coolfont.eot'); } p { font-family: coolfont, arial, sans-serif; }
  • 9. Embedding Fonts CSS give the font a @font-face { simple name font-family: coolfont; src: url('fonts/coolfont.ttf'), url('fonts/coolfont.eot'); } p { font-family: coolfont, arial, sans-serif; }
  • 10. Embedding Fonts .OTF and .TTF fonts work with all browsers CSS but Internet Explorer @font-face { font-family: coolfont; src: url('fonts/coolfont.ttf'), url('fonts/coolfont.eot'); } p { font-family: coolfont, arial, sans-serif; } .EOT format required for Internet Explorer Use.
  • 11. Embedding Fonts paths to the font files, in CSS a font folder. @font-face { font-family: coolfont; src: url('fonts/coolfont.ttf'), url('fonts/coolfont.eot'); } p { font-family: coolfont, arial, sans-serif; }
  • 12. Embedding Fonts CSS - without IE code... @font-face { font-family: coolfont; src: url('fonts/coolfont.ttf'); } p { font-family: coolfont, arial, sans-serif; }
  • 13. Resetting Default CSS Styles CSS * { vertical-align: baseline; font-weight: inherit; font-family: inherit; font-style: inherit; font-size: 100%; border: 0 none; outline: 0; padding: 0; margin: 0; }
  • 14. Styling Links w/ Pseudo-classes CSS a:link { color: blue; text-decoration: none; } a:visited { color: lightBlue; text-decoration: none; } a:hover { color: white; background-color: yellow; text-decoration: none; } a:active { color: blue; text-decoration: none; }
  • 15. Styling Links w/ Pseudo-classes CSS a:link { color: blue; text-decoration: none; } a:visited { PSEUDO-CLASSES color: lightBlue; text-decoration: none; } a:hover { color: white; background-color: yellow; text-decoration: none; } a:active { color: blue; text-decoration: none; }
  • 16. Styling Links w/ Pseudo-classes CSS a:link { Unvisited Link color: blue; text-decoration: none; } a:visited { Visited Link color: lightBlue; text-decoration: none; } a:hover { Mouse Over Link color: white; background-color: yellow; text-decoration: none; } a:active { Selected Link color: blue; text-decoration: none; }

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n