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

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

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
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
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
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 

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