SlideShare uma empresa 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;
    }

Mais conteúdo relacionado

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

Semelhante a ID01 Week 3

Semelhante 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

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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 educationjfdjdjcjdnsjd
 
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...apidays
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
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 DiscoveryTrustArc
 
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 2024The Digital Insurer
 
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 Takeoffsammart93
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
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 2024Rafal Los
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
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 FresherRemote DBA Services
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
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 AutomationSafe Software
 

Último (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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 - 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...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
+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...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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
 
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
 
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
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 

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 do 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