SlideShare uma empresa Scribd logo
1 de 24
CSS & XHTML




Week 12 – March 29, 2012
Agenda

   IT News
    – Google Summer of Code 2012!
    – Fastest Computer
    – DIGITECH!
   Course Updates/Due Dates
   XHTML/CSS
   Group Presentations:
    – 2pm section – 2 group presentations (Prezi &
      BarEye.com)
    – 3pm section – Oust.me
Course Updates
Date                         Topic                                  Due

Monday 4/2/12                CSS/XHTML cont'; introduction to       -
                             A9
Tuesday 4/3/12               "best of" GA 2, in class workshop on   A8 Part B due
                             CSS/XHTML
Thursday 4/5/12              Academic Technologies                  A8 Part C due
                                                                    (LAST QUIZ)
Monday 4/9/12                TBA                                    A9 due

Tuesday 4/10/12              Make-up Lab – for A5a, A5b, or A8
                             (part A)
Thursday 4/12/12             No class – prepare for final exam      GA#3 due at 10AM

Monday 4/16/12               Future options for graduates &         -
                             emerging technology –

                             FINAL EXAM REVIEW
Tuesday 4/17/12              Course Review                          -

Thursday 4/19/12             EXAM #2

Friday 4/20/12 @ 12PM NOON   ANY OUTSTANDING ITEMS NEED TO          After it is posted, you have 24 hours
                             BE TURNED IN TO ME. GRADES             to resolve any final issues, or forever
                             WILL BE POSTED TO YOUR GRADE           hold your peace. This is specifically
                             CENTER BY 4/25 @ 12PM NOON             for SIGNIFICANT grade
                                                                    discrepancies ONLY.
CSS

   Earlier versions of HTML combined
    elements of style (fonts, backgrounds, etc.)
    within the page itself
   CSS allowed for rules of formatting and
    presentation to be executed differently.
   Definition: A set of style rules that tell the
    web browser how to present a web page
    or document
CSS

   Definition
    – Cascading Style Sheet
   Rules of specificity and order
CSS - Benefits

The W3C created CSS to replace HTML tables, font
tags, frames, and other presentational hacks of
HTML elements
   • Reduction of file size is about 50% less than a Web
     page built with traditional Web design methods,
     making it faster!
   • Easily tweak the design of a thousand-page site with
     just a few edits to one CSS file
   • Allows for greater control over the typography and
     the placement of elements in Web pages
CSS - Benefits

   CSS – edited same way as HTML
   By keeping the design in separate files
    linked to the HTML pages, you reduce the
    likelihood of your page designs falling
    apart over time as different contributors
    add to the Web page
   You can set a “look” and “feel” for the
    site and have the content molded to fit that
    “scheme”!
Before CSS


     CONTENT             STYLE




               WEBPAGE
With CSS

     CONTENT             STYLE




               WEBPAGE
With CSS

                                                        WEBPAGE
               WEBPAGE
WEBPAGE                                                                 WEBPAGE




                                   STYLE

WEBPAGE                                                                 WEBPAGE


           One CSS file can be used to set the style and format for
          many different Web pages, saving time in editing sites that
                        have a large number of pages.
With CSS (reverse is true)

                                                       Body Style
               Font Style

Header                                                                Text Style
Style




                                 WEBPAGE

Paragraph                                                             Link Style
Style

            Likewise, a single webpage can be formatted by several
            different CSS files (either external or embedded). WHY?
With CSS
             CONTENT             STYLE
                                  STYLE
                                   STYLE




    mobile             browser             print
Why CSS?

•   Separate design/style/layout from content
•   Separate designers from writers
•   Quickly change the visual appearance of a
    Web document (fonts, headings, tables)
•   Allows for multiple looks for the same
    HTML code (i.e., a Web browser style sheet
    vs. a printer style sheet vs. a Smartphone
    style sheet)
Rules

•   Consists of a selector and a declaration
•   Selector – HTML tag the style sheet will
    change (h1, p, etc.)
•   Declaration – what the style actually is,
    and what to do with it
•   Example:
       h1 {text-align: center;}
       p {color: red; font-family: sans-serif;}
Rules

•   Specificity
•   Order
Rules

   Internal/Embedded
     – Style characteristics are embedded in the HEAD section of the
         web page; used when a single page requires a unique style sheet
   External/Linked
     – Connection made via the link tag; uses optional TYPE attribute to
         specify a media type (type/css); most common
   Imported
     – Allows for using style sheets from other sources; must be
         included at beginning of the page using the @import statement
   Inline
     – Least flexible; requires each element to be tagged within the
         HTML coding of the page.
CSS – Internal/Embedded

   Style information is embedded into the HEAD element of
    page
   All formatting in one location, vs. each individual
    element/tag on the page needing its own stylistic
    information attached
   Good for small sites/pages

       <head>
       <style type="text/css">
       hr {color: red;}
       body {margin-left: 20px;}
       </style>
       </head>
CSS – External

   Style information is external to the webpage
   Code shows syntax for linking the webpage to
    an external CSS
   This page below will draw CSS/formatting
    information frm the yourstyle.css document.

    <head>
    <link rel="stylesheet" type="text/css" href="yourstyle.css" />
    </head>
CSS – Import

   This statement may be used in a CSS file or inside the STYLE element.
   You can combine importing with other methods
   All @import statements must occur at the start of the style sheet
   Any rules specified in the style sheets themselves override conflicting rules in the
    imported style sheets
   You can use as many style sheet files as you wish and override them with
    embedded styles


    <style type="text/css">
    <!—
    @import url(pagestyle.css);
    ->
    </style>
CSS – Inline

   Least flexible
   requires each element to be tagged
    within the HTML coding of the page.

<p style="color:sienna;margin-left:20px">This
is a paragraph.
</p>
Example
Example
h1 {
    font-family:
    haettenschweiler;
    color: maroon;
   font-size: xx-large;
}
table, tr, td {
   border-color:
   olive;
   font-family: arial;
}
p{
   background-color
   : yellow;
   text-align: center;
}
Example




          CSS
Assignment 9 – last one!

Mais conteúdo relacionado

Mais procurados

Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSSSiddhantSingh980217
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsQA TrainingHub
 
OOCSS, SMACSS or BEM, what is the question...
OOCSS, SMACSS or BEM, what is the question...OOCSS, SMACSS or BEM, what is the question...
OOCSS, SMACSS or BEM, what is the question...Michael Posso
 
CSS introduction
CSS introductionCSS introduction
CSS introductionCloudTech 
 
SPSVB 1 7-2012 - getting started with share point branding
SPSVB 1 7-2012 - getting started with share point brandingSPSVB 1 7-2012 - getting started with share point branding
SPSVB 1 7-2012 - getting started with share point brandingThomas Daly
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1Jyoti Yadav
 
Web programming css
Web programming cssWeb programming css
Web programming cssUma mohan
 
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.
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSdanpaquette
 
Drupal Basic Website Content Management Training (Summer 2010)
Drupal Basic Website Content Management Training (Summer 2010)Drupal Basic Website Content Management Training (Summer 2010)
Drupal Basic Website Content Management Training (Summer 2010)Tyndale Webteam
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)Harshita Yadav
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSNYCSS Meetup
 

Mais procurados (20)

Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
 
OOCSS, SMACSS or BEM, what is the question...
OOCSS, SMACSS or BEM, what is the question...OOCSS, SMACSS or BEM, what is the question...
OOCSS, SMACSS or BEM, what is the question...
 
CSS
CSSCSS
CSS
 
CSS introduction
CSS introductionCSS introduction
CSS introduction
 
SPSVB 1 7-2012 - getting started with share point branding
SPSVB 1 7-2012 - getting started with share point brandingSPSVB 1 7-2012 - getting started with share point branding
SPSVB 1 7-2012 - getting started with share point branding
 
CSS
CSSCSS
CSS
 
Basic HTML/CSS
Basic HTML/CSSBasic HTML/CSS
Basic HTML/CSS
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Html
HtmlHtml
Html
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1
 
Web programming css
Web programming cssWeb programming css
Web programming css
 
Unit iii css and javascript 1
Unit iii css and javascript 1Unit iii css and javascript 1
Unit iii css and javascript 1
 
CSS
CSSCSS
CSS
 
Css class-01
Css class-01Css class-01
Css class-01
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Drupal Basic Website Content Management Training (Summer 2010)
Drupal Basic Website Content Management Training (Summer 2010)Drupal Basic Website Content Management Training (Summer 2010)
Drupal Basic Website Content Management Training (Summer 2010)
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
 
Css basic
Css basicCss basic
Css basic
 

Destaque

Destaque (8)

As media 2u
As media 2uAs media 2u
As media 2u
 
LIS3353 SP12 Week 10
LIS3353 SP12 Week 10LIS3353 SP12 Week 10
LIS3353 SP12 Week 10
 
1-22IN BN Newsletter NOV
1-22IN BN Newsletter NOV1-22IN BN Newsletter NOV
1-22IN BN Newsletter NOV
 
LIS3353 SP12 Week 13
LIS3353 SP12 Week 13LIS3353 SP12 Week 13
LIS3353 SP12 Week 13
 
LIS3021 Group 7 Fall2012 T@llyCo
LIS3021 Group 7 Fall2012 T@llyCoLIS3021 Group 7 Fall2012 T@llyCo
LIS3021 Group 7 Fall2012 T@llyCo
 
LIS3353 SP12 Week 11
LIS3353 SP12 Week 11LIS3353 SP12 Week 11
LIS3353 SP12 Week 11
 
The three visitors
The three visitorsThe three visitors
The three visitors
 
Интенсив Brand Identity
Интенсив Brand IdentityИнтенсив Brand Identity
Интенсив Brand Identity
 

Semelhante a LIS3353 SP12 Week 12

Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer NotesVskills
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!Stefan Bauer
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdfwubiederebe1
 
Web Publishing terminology 1
Web Publishing terminology 1Web Publishing terminology 1
Web Publishing terminology 1Beth Lovell
 
The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbookjackchenvlo
 
Supplement web design
Supplement web designSupplement web design
Supplement web designshelly3160
 
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...New Tricks
 
New Css style
New Css styleNew Css style
New Css styleBUDNET
 
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Patrick Lauke
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfelayelily
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSSanjoy Kr. Paul
 

Semelhante a LIS3353 SP12 Week 12 (20)

Css home
Css   homeCss   home
Css home
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
 
Css
CssCss
Css
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Lecture-6.pptx
Lecture-6.pptxLecture-6.pptx
Lecture-6.pptx
 
DHTML
DHTMLDHTML
DHTML
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Rational HATS and CSS
Rational HATS and CSSRational HATS and CSS
Rational HATS and CSS
 
Web Publishing terminology 1
Web Publishing terminology 1Web Publishing terminology 1
Web Publishing terminology 1
 
The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbook
 
Supplement web design
Supplement web designSupplement web design
Supplement web design
 
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
WordCamp Atlanta 2014 - CSS For Beginners - By Michael Earley of ATL Squared ...
 
New Css style
New Css styleNew Css style
New Css style
 
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdf
 
CSS.ppt
CSS.pptCSS.ppt
CSS.ppt
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
CSS HTML.pdf
CSS HTML.pdfCSS HTML.pdf
CSS HTML.pdf
 

Mais de Amanda Case

LIS3353 SP12 Week 10a
LIS3353 SP12 Week 10aLIS3353 SP12 Week 10a
LIS3353 SP12 Week 10aAmanda Case
 
LIS3353 SP12 Week 10
LIS3353 SP12 Week 10LIS3353 SP12 Week 10
LIS3353 SP12 Week 10Amanda Case
 
LIS3353 SP12 Week 9
LIS3353 SP12 Week 9LIS3353 SP12 Week 9
LIS3353 SP12 Week 9Amanda Case
 
LIS3353 SP12 Week 8
LIS3353 SP12 Week 8LIS3353 SP12 Week 8
LIS3353 SP12 Week 8Amanda Case
 
LIS3353 SP12 Week 7
LIS3353 SP12 Week 7LIS3353 SP12 Week 7
LIS3353 SP12 Week 7Amanda Case
 
LIS3353 SP12 Week 6
LIS3353 SP12 Week 6LIS3353 SP12 Week 6
LIS3353 SP12 Week 6Amanda Case
 
LIS3353 SP12 Week 5a
LIS3353 SP12 Week 5aLIS3353 SP12 Week 5a
LIS3353 SP12 Week 5aAmanda Case
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4Amanda Case
 
LIS3353 SP12 Week 5
LIS3353 SP12 Week 5LIS3353 SP12 Week 5
LIS3353 SP12 Week 5Amanda Case
 
LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3Amanda Case
 
LIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2aLIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2aAmanda Case
 
LIS3353 SP12 Week 2
LIS3353 SP12 Week 2LIS3353 SP12 Week 2
LIS3353 SP12 Week 2Amanda Case
 
Lis3353 sp12 week1
Lis3353 sp12 week1Lis3353 sp12 week1
Lis3353 sp12 week1Amanda Case
 
LIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalkLIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalkAmanda Case
 

Mais de Amanda Case (14)

LIS3353 SP12 Week 10a
LIS3353 SP12 Week 10aLIS3353 SP12 Week 10a
LIS3353 SP12 Week 10a
 
LIS3353 SP12 Week 10
LIS3353 SP12 Week 10LIS3353 SP12 Week 10
LIS3353 SP12 Week 10
 
LIS3353 SP12 Week 9
LIS3353 SP12 Week 9LIS3353 SP12 Week 9
LIS3353 SP12 Week 9
 
LIS3353 SP12 Week 8
LIS3353 SP12 Week 8LIS3353 SP12 Week 8
LIS3353 SP12 Week 8
 
LIS3353 SP12 Week 7
LIS3353 SP12 Week 7LIS3353 SP12 Week 7
LIS3353 SP12 Week 7
 
LIS3353 SP12 Week 6
LIS3353 SP12 Week 6LIS3353 SP12 Week 6
LIS3353 SP12 Week 6
 
LIS3353 SP12 Week 5a
LIS3353 SP12 Week 5aLIS3353 SP12 Week 5a
LIS3353 SP12 Week 5a
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
LIS3353 SP12 Week 5
LIS3353 SP12 Week 5LIS3353 SP12 Week 5
LIS3353 SP12 Week 5
 
LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3
 
LIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2aLIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2a
 
LIS3353 SP12 Week 2
LIS3353 SP12 Week 2LIS3353 SP12 Week 2
LIS3353 SP12 Week 2
 
Lis3353 sp12 week1
Lis3353 sp12 week1Lis3353 sp12 week1
Lis3353 sp12 week1
 
LIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalkLIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalk
 

Último

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Último (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

LIS3353 SP12 Week 12

  • 1. CSS & XHTML Week 12 – March 29, 2012
  • 2. Agenda  IT News – Google Summer of Code 2012! – Fastest Computer – DIGITECH!  Course Updates/Due Dates  XHTML/CSS  Group Presentations: – 2pm section – 2 group presentations (Prezi & BarEye.com) – 3pm section – Oust.me
  • 3. Course Updates Date Topic Due Monday 4/2/12 CSS/XHTML cont'; introduction to - A9 Tuesday 4/3/12 "best of" GA 2, in class workshop on A8 Part B due CSS/XHTML Thursday 4/5/12 Academic Technologies A8 Part C due (LAST QUIZ) Monday 4/9/12 TBA A9 due Tuesday 4/10/12 Make-up Lab – for A5a, A5b, or A8 (part A) Thursday 4/12/12 No class – prepare for final exam GA#3 due at 10AM Monday 4/16/12 Future options for graduates & - emerging technology – FINAL EXAM REVIEW Tuesday 4/17/12 Course Review - Thursday 4/19/12 EXAM #2 Friday 4/20/12 @ 12PM NOON ANY OUTSTANDING ITEMS NEED TO After it is posted, you have 24 hours BE TURNED IN TO ME. GRADES to resolve any final issues, or forever WILL BE POSTED TO YOUR GRADE hold your peace. This is specifically CENTER BY 4/25 @ 12PM NOON for SIGNIFICANT grade discrepancies ONLY.
  • 4. CSS  Earlier versions of HTML combined elements of style (fonts, backgrounds, etc.) within the page itself  CSS allowed for rules of formatting and presentation to be executed differently.  Definition: A set of style rules that tell the web browser how to present a web page or document
  • 5. CSS  Definition – Cascading Style Sheet  Rules of specificity and order
  • 6. CSS - Benefits The W3C created CSS to replace HTML tables, font tags, frames, and other presentational hacks of HTML elements • Reduction of file size is about 50% less than a Web page built with traditional Web design methods, making it faster! • Easily tweak the design of a thousand-page site with just a few edits to one CSS file • Allows for greater control over the typography and the placement of elements in Web pages
  • 7. CSS - Benefits  CSS – edited same way as HTML  By keeping the design in separate files linked to the HTML pages, you reduce the likelihood of your page designs falling apart over time as different contributors add to the Web page  You can set a “look” and “feel” for the site and have the content molded to fit that “scheme”!
  • 8. Before CSS CONTENT STYLE WEBPAGE
  • 9. With CSS CONTENT STYLE WEBPAGE
  • 10. With CSS WEBPAGE WEBPAGE WEBPAGE WEBPAGE STYLE WEBPAGE WEBPAGE One CSS file can be used to set the style and format for many different Web pages, saving time in editing sites that have a large number of pages.
  • 11. With CSS (reverse is true) Body Style Font Style Header Text Style Style WEBPAGE Paragraph Link Style Style Likewise, a single webpage can be formatted by several different CSS files (either external or embedded). WHY?
  • 12. With CSS CONTENT STYLE STYLE STYLE mobile browser print
  • 13. Why CSS? • Separate design/style/layout from content • Separate designers from writers • Quickly change the visual appearance of a Web document (fonts, headings, tables) • Allows for multiple looks for the same HTML code (i.e., a Web browser style sheet vs. a printer style sheet vs. a Smartphone style sheet)
  • 14. Rules • Consists of a selector and a declaration • Selector – HTML tag the style sheet will change (h1, p, etc.) • Declaration – what the style actually is, and what to do with it • Example: h1 {text-align: center;} p {color: red; font-family: sans-serif;}
  • 15. Rules • Specificity • Order
  • 16. Rules  Internal/Embedded – Style characteristics are embedded in the HEAD section of the web page; used when a single page requires a unique style sheet  External/Linked – Connection made via the link tag; uses optional TYPE attribute to specify a media type (type/css); most common  Imported – Allows for using style sheets from other sources; must be included at beginning of the page using the @import statement  Inline – Least flexible; requires each element to be tagged within the HTML coding of the page.
  • 17. CSS – Internal/Embedded  Style information is embedded into the HEAD element of page  All formatting in one location, vs. each individual element/tag on the page needing its own stylistic information attached  Good for small sites/pages <head> <style type="text/css"> hr {color: red;} body {margin-left: 20px;} </style> </head>
  • 18. CSS – External  Style information is external to the webpage  Code shows syntax for linking the webpage to an external CSS  This page below will draw CSS/formatting information frm the yourstyle.css document. <head> <link rel="stylesheet" type="text/css" href="yourstyle.css" /> </head>
  • 19. CSS – Import  This statement may be used in a CSS file or inside the STYLE element.  You can combine importing with other methods  All @import statements must occur at the start of the style sheet  Any rules specified in the style sheets themselves override conflicting rules in the imported style sheets  You can use as many style sheet files as you wish and override them with embedded styles <style type="text/css"> <!— @import url(pagestyle.css); -> </style>
  • 20. CSS – Inline  Least flexible  requires each element to be tagged within the HTML coding of the page. <p style="color:sienna;margin-left:20px">This is a paragraph. </p>
  • 22. Example h1 { font-family: haettenschweiler; color: maroon; font-size: xx-large; } table, tr, td { border-color: olive; font-family: arial; } p{ background-color : yellow; text-align: center; }
  • 23. Example CSS
  • 24. Assignment 9 – last one!

Notas do Editor

  1. Specificity determines, which CSS rule is applied by browsers. “Specificity is a type of weighting that has a bearing on how your cascading style sheet (CSS) rules are displayed.” [Understanding Specificity]Selector specificity is a process used to determine which rules take precedence in CSS when several rules could be applied to the same element in markup. [Selector Specificity]Every selector has its specificity. “All rules in your CSS carry a specificity rating regardless of selector type, although the weighting that is given to each selector type varies and will ultimately affect the styling of your web documents.” [Understanding Specificity]If two selectors apply to the same element, the one with higher specificity wins.ORDERBy now you know that styles are simply the rules you create for how various HTML elements should display. The term &quot;cascading&quot; refers to the order of importance the browser should follow when it encounters conflicting style rules. For example, you may have a rule in your external style sheet that specifies the first letter of the first word in each paragraph tag is rendered in bold text. You may have another rule in your embedded styles that specifies that the first letter should be rendered in normal text, but colored red. The browser needs to know which rule to follow, and it&apos;s the cascading order that determines that.