SlideShare uma empresa Scribd logo
1 de 44
DM250
Web Page Design
 Mondays 6:30PM - 9:20PM
     Library Classroom
 http://online.greenville.edu
       Attendance Pin:
The Internet:
   A Refresher
REMEMBER REMEMBER...
Photo by jtstrathdee on Flickr
XHTML RULES
html <tags>




                 Photo by Jesper on Flickr
XHTML RULES
    html <tags>
✓ XHTML pages need to end with
  a .html (or .htm) extension




                                 Photo by Jesper on Flickr
XHTML RULES
     html <tags>
✓ XHTML pages need to end with
    a .html (or .htm) extension
✓   Tags Gotta Close




                                  Photo by Jesper on Flickr
XHTML RULES
     html <tags>
✓ XHTML pages need to end with
    a .html (or .htm) extension
✓   Tags Gotta Close
✓   Tags are like boxes




                                  Photo by Jesper on Flickr
XHTML RULES
    html <tags>
✓ XHTML pages need to end with
  a .html (or .htm) extension
✓ Tags Gotta Close
✓ Tags are like boxes
 ‣ They close out in order
     <body><p><b></b></p></body>




                                   Photo by Jesper on Flickr
XHTML RULES
    html <tags>
✓ XHTML pages need to end with
  a .html (or .htm) extension
✓ Tags Gotta Close
✓ Tags are like boxes
 ‣ They close out in order
     <body><p><b></b></p></body>
✓ Attributes go inside the angle
  brackets. <p style=“color: red;”>


                                      Photo by Jesper on Flickr
XHTML RULES
    html <tags>
✓ XHTML pages need to end with
  a .html (or .htm) extension
✓ Tags Gotta Close
✓ Tags are like boxes
 ‣ They close out in order
     <body><p><b></b></p></body>
✓ Attributes go inside the angle
  brackets. <p style=“color: red;”>
✓ A tag pair is called an element
                                      Photo by Jesper on Flickr
XHTML RULES
    html <tags>
✓ XHTML pages need to end with
  a .html (or .htm) extension
✓ Tags Gotta Close
✓ Tags are like boxes
 ‣ They close out in order
     <body><p><b></b></p></body>
✓ Attributes go inside the angle
  brackets. <p style=“color: red;”>
✓ A tag pair is called an element
 ‣ <p> + </p> = element
                                      Photo by Jesper on Flickr
T    HE FIGHT
                           Physical
Logical Structure
                          Formatting

                    vs.
                              Photo by Private Nobby on Flickr
The Fight
    LOGICAL ELEMENTS           PHYSICAL ELEMENTS
✓ Define individual           ✓ All about formatting
    components               ✓ They do not define
✓   They do not define           the structure.
    the actual formatting.
<b>bold</b>          Structure won out.
                   And so there is separation
  <i>italic</i>     of Structure and Style.

<u>underline</u>     And that leads us to...
<b>bold</b>          Structure won out.
                   And so there is separation
  <i>italic</i>     of Structure and Style.

<u>underline</u>     And that leads us to...
<b>bold</b>          Structure won out.
                   And so there is separation
  <i>italic</i>     of Structure and Style.

<u>underline</u>     And that leads us to...
Cascading Style Sheets
AKA




      Photo by nhussein on Flickr
AKA
 REAL
   ULTIMATE
       POWER
              Photo by nhussein on Flickr
Background Info



When you go to a Web page that uses a style sheet, the following things happen:
1) Your browser requests the XHTML page from a Web server. 2) The browser finds an
instruction in the XHTML page indicating that the page uses a style sheet. The
browser then grabs that style sheet with a separate request. 3) The browser chews
through the XHTML in the Web page, and uses the rules in the style sheet to adjust
the page’s appearance.
THE 3 TYPES
                         OF STYLES




Photo by g_originals on Flickr
THE 3 TYPES
                         OF STYLES

1. Internal Style Sheets




Photo by g_originals on Flickr
THE 3 TYPES
                         OF STYLES

1. Internal Style Sheets

2. Inline Styles




Photo by g_originals on Flickr
THE 3 TYPES
                         OF STYLES

1. Internal Style Sheets

2. Inline Styles

3. External Style Sheets



Photo by g_originals on Flickr
Internal
Style Sheets
Internal
Style Sheets
• Located in the the XHTML document
Internal
Style Sheets
• Located in the the XHTML document
• Usually defined in the <head>
Internal
Style Sheets
• Located in the the XHTML document
• Usually defined in the <head>
• Only *sort of* separate structure and
  presentation
Inline Styles




Photo by jdblundell on Flickr
Inline Styles
           • Set as an attribute on an element




Photo by jdblundell on Flickr
Inline Styles
           • Set as an attribute on an element
           • Inline means in the XHTML markup




Photo by jdblundell on Flickr
Inline Styles
           • Set as an attribute on an element
           • Inline means in the XHTML markup
           • For example:
                    <p style= “color: red; border: thin solid #000;”>




Photo by jdblundell on Flickr
External Style Sheets




Photo by s4xton on Flickr
External Style Sheets

                 • A separate file with just the styles - style.css




Photo by s4xton on Flickr
External Style Sheets

                 • A separate file with just the styles - style.css
                 • Can have multiples



Photo by s4xton on Flickr
External Style Sheets

                 • A separate file with just the styles - style.css
                 • Can have multiples
                 • Keeps your CSS orderly and easy-to-edit


Photo by s4xton on Flickr
External Style Sheets

                 • A separate file with just the styles - style.css
                 • Can have multiples
                 • Keeps your CSS orderly and easy-to-edit
                 • True separation of structure and
                            presentation


Photo by s4xton on Flickr
Anatomy of a Rule

selector { property: value; }
Anatomy of a Rule

selector { property: value; }


  h1 { color: blue; }
Grouping Properties
h1, h2, h3 {
               font-weight: bold;
               color: blue;
               text-align: center;
           }
Applying a Style Sheet

<head>
<link rel=“stylesheet”
type=“text/css” href=“style.css” />
<title>Awesome Page Title!</title>
</head>
LET’S
  GET
STYLIN’

Mais conteúdo relacionado

Semelhante a DM250 Week 2 - CSS (20)

Html intro
Html introHtml intro
Html intro
 
BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptx
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
Websites On Speed
Websites On  SpeedWebsites On  Speed
Websites On Speed
 
Websites On Speed
Websites On SpeedWebsites On Speed
Websites On Speed
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
 
Html coding
Html codingHtml coding
Html coding
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 
Web 101 intro to html
Web 101  intro to htmlWeb 101  intro to html
Web 101 intro to html
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcss
 
面向测试的前端知识
面向测试的前端知识面向测试的前端知识
面向测试的前端知识
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
 
BITM3730 9-27.pptx
BITM3730 9-27.pptxBITM3730 9-27.pptx
BITM3730 9-27.pptx
 
HTML5 Semantics
HTML5 SemanticsHTML5 Semantics
HTML5 Semantics
 
Images and Lists in HTML
Images and Lists in HTMLImages and Lists in HTML
Images and Lists in HTML
 
Html
Html Html
Html
 

Mais de Joel G Goodman

Building An Effective Creative Team | #econfpsu
Building An Effective Creative Team | #econfpsuBuilding An Effective Creative Team | #econfpsu
Building An Effective Creative Team | #econfpsuJoel G Goodman
 
How To Theme: A Design Workflow for WordPress
How To Theme: A Design Workflow for WordPressHow To Theme: A Design Workflow for WordPress
How To Theme: A Design Workflow for WordPressJoel G Goodman
 
Content Strategist's Guide to Design
Content Strategist's Guide to DesignContent Strategist's Guide to Design
Content Strategist's Guide to DesignJoel G Goodman
 
Typography Matters #psuweb
Typography Matters #psuwebTypography Matters #psuweb
Typography Matters #psuwebJoel G Goodman
 
Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...
Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...
Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...Joel G Goodman
 
[psuweb13] We Are What They See: Interpersonal User Experience
[psuweb13] We Are What They See: Interpersonal User Experience[psuweb13] We Are What They See: Interpersonal User Experience
[psuweb13] We Are What They See: Interpersonal User ExperienceJoel G Goodman
 
[wcatx] jQuery for WordPress Theme Designers
[wcatx] jQuery for WordPress Theme Designers[wcatx] jQuery for WordPress Theme Designers
[wcatx] jQuery for WordPress Theme DesignersJoel G Goodman
 
All in the Game: Mobilizing your campus transmedia
All in the Game: Mobilizing your campus transmediaAll in the Game: Mobilizing your campus transmedia
All in the Game: Mobilizing your campus transmediaJoel G Goodman
 
DM 250 Week 1 - The Internet, XHTML, & CSS
DM 250 Week 1 - The Internet, XHTML, & CSSDM 250 Week 1 - The Internet, XHTML, & CSS
DM 250 Week 1 - The Internet, XHTML, & CSSJoel G Goodman
 

Mais de Joel G Goodman (10)

Building An Effective Creative Team | #econfpsu
Building An Effective Creative Team | #econfpsuBuilding An Effective Creative Team | #econfpsu
Building An Effective Creative Team | #econfpsu
 
How To Theme: A Design Workflow for WordPress
How To Theme: A Design Workflow for WordPressHow To Theme: A Design Workflow for WordPress
How To Theme: A Design Workflow for WordPress
 
Content Strategist's Guide to Design
Content Strategist's Guide to DesignContent Strategist's Guide to Design
Content Strategist's Guide to Design
 
Typography Matters #psuweb
Typography Matters #psuwebTypography Matters #psuweb
Typography Matters #psuweb
 
Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...
Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...
Study Abroad: Borrowing Ideas, Design, & Strategy from Beyond the Walls of Ac...
 
[psuweb13] We Are What They See: Interpersonal User Experience
[psuweb13] We Are What They See: Interpersonal User Experience[psuweb13] We Are What They See: Interpersonal User Experience
[psuweb13] We Are What They See: Interpersonal User Experience
 
[wcatx] jQuery for WordPress Theme Designers
[wcatx] jQuery for WordPress Theme Designers[wcatx] jQuery for WordPress Theme Designers
[wcatx] jQuery for WordPress Theme Designers
 
All in the Game: Mobilizing your campus transmedia
All in the Game: Mobilizing your campus transmediaAll in the Game: Mobilizing your campus transmedia
All in the Game: Mobilizing your campus transmedia
 
Netflix: An Analysis
Netflix: An AnalysisNetflix: An Analysis
Netflix: An Analysis
 
DM 250 Week 1 - The Internet, XHTML, & CSS
DM 250 Week 1 - The Internet, XHTML, & CSSDM 250 Week 1 - The Internet, XHTML, & CSS
DM 250 Week 1 - The Internet, XHTML, & CSS
 

Último

HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 

Último (20)

HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 

DM250 Week 2 - CSS

  • 1. DM250 Web Page Design Mondays 6:30PM - 9:20PM Library Classroom http://online.greenville.edu Attendance Pin:
  • 2. The Internet: A Refresher
  • 3. REMEMBER REMEMBER... Photo by jtstrathdee on Flickr
  • 4. XHTML RULES html <tags> Photo by Jesper on Flickr
  • 5. XHTML RULES html <tags> ✓ XHTML pages need to end with a .html (or .htm) extension Photo by Jesper on Flickr
  • 6. XHTML RULES html <tags> ✓ XHTML pages need to end with a .html (or .htm) extension ✓ Tags Gotta Close Photo by Jesper on Flickr
  • 7. XHTML RULES html <tags> ✓ XHTML pages need to end with a .html (or .htm) extension ✓ Tags Gotta Close ✓ Tags are like boxes Photo by Jesper on Flickr
  • 8. XHTML RULES html <tags> ✓ XHTML pages need to end with a .html (or .htm) extension ✓ Tags Gotta Close ✓ Tags are like boxes ‣ They close out in order <body><p><b></b></p></body> Photo by Jesper on Flickr
  • 9. XHTML RULES html <tags> ✓ XHTML pages need to end with a .html (or .htm) extension ✓ Tags Gotta Close ✓ Tags are like boxes ‣ They close out in order <body><p><b></b></p></body> ✓ Attributes go inside the angle brackets. <p style=“color: red;”> Photo by Jesper on Flickr
  • 10. XHTML RULES html <tags> ✓ XHTML pages need to end with a .html (or .htm) extension ✓ Tags Gotta Close ✓ Tags are like boxes ‣ They close out in order <body><p><b></b></p></body> ✓ Attributes go inside the angle brackets. <p style=“color: red;”> ✓ A tag pair is called an element Photo by Jesper on Flickr
  • 11. XHTML RULES html <tags> ✓ XHTML pages need to end with a .html (or .htm) extension ✓ Tags Gotta Close ✓ Tags are like boxes ‣ They close out in order <body><p><b></b></p></body> ✓ Attributes go inside the angle brackets. <p style=“color: red;”> ✓ A tag pair is called an element ‣ <p> + </p> = element Photo by Jesper on Flickr
  • 12. T HE FIGHT Physical Logical Structure Formatting vs. Photo by Private Nobby on Flickr
  • 13. The Fight LOGICAL ELEMENTS PHYSICAL ELEMENTS ✓ Define individual ✓ All about formatting components ✓ They do not define ✓ They do not define the structure. the actual formatting.
  • 14. <b>bold</b> Structure won out. And so there is separation <i>italic</i> of Structure and Style. <u>underline</u> And that leads us to...
  • 15. <b>bold</b> Structure won out. And so there is separation <i>italic</i> of Structure and Style. <u>underline</u> And that leads us to...
  • 16. <b>bold</b> Structure won out. And so there is separation <i>italic</i> of Structure and Style. <u>underline</u> And that leads us to...
  • 17.
  • 19. AKA Photo by nhussein on Flickr
  • 20. AKA REAL ULTIMATE POWER Photo by nhussein on Flickr
  • 21. Background Info When you go to a Web page that uses a style sheet, the following things happen: 1) Your browser requests the XHTML page from a Web server. 2) The browser finds an instruction in the XHTML page indicating that the page uses a style sheet. The browser then grabs that style sheet with a separate request. 3) The browser chews through the XHTML in the Web page, and uses the rules in the style sheet to adjust the page’s appearance.
  • 22. THE 3 TYPES OF STYLES Photo by g_originals on Flickr
  • 23. THE 3 TYPES OF STYLES 1. Internal Style Sheets Photo by g_originals on Flickr
  • 24. THE 3 TYPES OF STYLES 1. Internal Style Sheets 2. Inline Styles Photo by g_originals on Flickr
  • 25. THE 3 TYPES OF STYLES 1. Internal Style Sheets 2. Inline Styles 3. External Style Sheets Photo by g_originals on Flickr
  • 27. Internal Style Sheets • Located in the the XHTML document
  • 28. Internal Style Sheets • Located in the the XHTML document • Usually defined in the <head>
  • 29. Internal Style Sheets • Located in the the XHTML document • Usually defined in the <head> • Only *sort of* separate structure and presentation
  • 30. Inline Styles Photo by jdblundell on Flickr
  • 31. Inline Styles • Set as an attribute on an element Photo by jdblundell on Flickr
  • 32. Inline Styles • Set as an attribute on an element • Inline means in the XHTML markup Photo by jdblundell on Flickr
  • 33. Inline Styles • Set as an attribute on an element • Inline means in the XHTML markup • For example: <p style= “color: red; border: thin solid #000;”> Photo by jdblundell on Flickr
  • 34. External Style Sheets Photo by s4xton on Flickr
  • 35. External Style Sheets • A separate file with just the styles - style.css Photo by s4xton on Flickr
  • 36. External Style Sheets • A separate file with just the styles - style.css • Can have multiples Photo by s4xton on Flickr
  • 37. External Style Sheets • A separate file with just the styles - style.css • Can have multiples • Keeps your CSS orderly and easy-to-edit Photo by s4xton on Flickr
  • 38. External Style Sheets • A separate file with just the styles - style.css • Can have multiples • Keeps your CSS orderly and easy-to-edit • True separation of structure and presentation Photo by s4xton on Flickr
  • 39. Anatomy of a Rule selector { property: value; }
  • 40. Anatomy of a Rule selector { property: value; } h1 { color: blue; }
  • 41. Grouping Properties h1, h2, h3 { font-weight: bold; color: blue; text-align: center; }
  • 42. Applying a Style Sheet <head> <link rel=“stylesheet” type=“text/css” href=“style.css” /> <title>Awesome Page Title!</title> </head>
  • 43.

Notas do Editor

  1. The tags are what separate normal text from HTML code. You might know them as the words between the &lt;angle-brackets&gt;. They allow all the cool stuff like images and tables and stuff, just by telling your browser what to render on the page. Different tags will perform different functions. The tags themselves don&amp;#x2019;t appear when you view your page through a browser, but their effects do. The simplest tags do nothing more than apply formatting to some text, like this: &lt;b&gt;These words will be bold&lt;/b&gt;, and these will not. Pairs are called elements. Containers elements &amp; standalone elements.
  2. The tags are what separate normal text from HTML code. You might know them as the words between the &lt;angle-brackets&gt;. They allow all the cool stuff like images and tables and stuff, just by telling your browser what to render on the page. Different tags will perform different functions. The tags themselves don&amp;#x2019;t appear when you view your page through a browser, but their effects do. The simplest tags do nothing more than apply formatting to some text, like this: &lt;b&gt;These words will be bold&lt;/b&gt;, and these will not. Pairs are called elements. Containers elements &amp; standalone elements.
  3. The tags are what separate normal text from HTML code. You might know them as the words between the &lt;angle-brackets&gt;. They allow all the cool stuff like images and tables and stuff, just by telling your browser what to render on the page. Different tags will perform different functions. The tags themselves don&amp;#x2019;t appear when you view your page through a browser, but their effects do. The simplest tags do nothing more than apply formatting to some text, like this: &lt;b&gt;These words will be bold&lt;/b&gt;, and these will not. Pairs are called elements. Containers elements &amp; standalone elements.
  4. The tags are what separate normal text from HTML code. You might know them as the words between the &lt;angle-brackets&gt;. They allow all the cool stuff like images and tables and stuff, just by telling your browser what to render on the page. Different tags will perform different functions. The tags themselves don&amp;#x2019;t appear when you view your page through a browser, but their effects do. The simplest tags do nothing more than apply formatting to some text, like this: &lt;b&gt;These words will be bold&lt;/b&gt;, and these will not. Pairs are called elements. Containers elements &amp; standalone elements.
  5. The tags are what separate normal text from HTML code. You might know them as the words between the &lt;angle-brackets&gt;. They allow all the cool stuff like images and tables and stuff, just by telling your browser what to render on the page. Different tags will perform different functions. The tags themselves don&amp;#x2019;t appear when you view your page through a browser, but their effects do. The simplest tags do nothing more than apply formatting to some text, like this: &lt;b&gt;These words will be bold&lt;/b&gt;, and these will not. Pairs are called elements. Containers elements &amp; standalone elements.
  6. The tags are what separate normal text from HTML code. You might know them as the words between the &lt;angle-brackets&gt;. They allow all the cool stuff like images and tables and stuff, just by telling your browser what to render on the page. Different tags will perform different functions. The tags themselves don&amp;#x2019;t appear when you view your page through a browser, but their effects do. The simplest tags do nothing more than apply formatting to some text, like this: &lt;b&gt;These words will be bold&lt;/b&gt;, and these will not. Pairs are called elements. Containers elements &amp; standalone elements.
  7. The tags are what separate normal text from HTML code. You might know them as the words between the &lt;angle-brackets&gt;. They allow all the cool stuff like images and tables and stuff, just by telling your browser what to render on the page. Different tags will perform different functions. The tags themselves don&amp;#x2019;t appear when you view your page through a browser, but their effects do. The simplest tags do nothing more than apply formatting to some text, like this: &lt;b&gt;These words will be bold&lt;/b&gt;, and these will not. Pairs are called elements. Containers elements &amp; standalone elements.
  8. Create a new text file in your text editor (notepad++) and save it as style.css
  9. Create a new text file in your text editor (notepad++) and save it as style.css
  10. Create a new text file in your text editor (notepad++) and save it as style.css
  11. Create a new text file in your text editor (notepad++) and save it as style.css
  12. Selector - Identifies the type of content you want to format. Browser then applies that to every occurrence of that content. Property - type of formatting you want to apply. (Color, fonts, alignment, borders... etc.) Value - set the value for the property defined. (the color, alignment direction, etc.)
  13. Selector - Identifies the type of content you want to format. Browser then applies that to every occurrence of that content. Property - type of formatting you want to apply. (Color, fonts, alignment, borders... etc.) Value - set the value for the property defined. (the color, alignment direction, etc.)
  14. Selector - Identifies the type of content you want to format. Browser then applies that to every occurrence of that content. Property - type of formatting you want to apply. (Color, fonts, alignment, borders... etc.) Value - set the value for the property defined. (the color, alignment direction, etc.)
  15. Selector - Identifies the type of content you want to format. Browser then applies that to every occurrence of that content. Property - type of formatting you want to apply. (Color, fonts, alignment, borders... etc.) Value - set the value for the property defined. (the color, alignment direction, etc.)