SlideShare uma empresa Scribd logo
1 de 29
Baixar para ler offline
The Web Environment
                           Web Page Design




Friday, 30 September 11
Overview

                    • Internet and the web
                    • Network details
                    • Evolution of the web
                    • Web technologies
                    • Web standards

Friday, 30 September 11
The Internet
                    • A massive number of computers connected
                          together through a global network
                    • Carries a range of data:
                      • Email
                      • Web
                      • File transfer
                    • Audio video data
Friday, 30 September 11
The Web

                    • A global collection of hyperlinked pages
                          connected via the internet
                    • Web pages are stored on a server
                    • The user views web pages on a client


Friday, 30 September 11
Internet addressing
                (IPv4)
                    •     logical not physical
                    •     32-bit binary number
                    •     written as 4 decimal numbers separated by dots
                          •   e.g. 146.87.119.37
                          •   146.87 is University of Salford
                          •   119 is one network at Salford
                          •   37 is a computer on that network


Friday, 30 September 11
Internet addressing
                (IPv6)
                    • We have now run out of IP addresses
                     • IPv4 only has about 4.3 billion addresses
                    • Addresses consist of 8 groups of 4
                          hexadecimal digits (with : as separator)
                          •   2001:0db8:85a3:0000:0000:8a2e:0370:7334




Friday, 30 September 11
Domain names
                    • Easier for people to remember names than
                          numbers
                    • www.salford.ac.uk
                    • www.rickogden.com
                    • Domain name service (DNS) converts
                          name to numerical IP address


Friday, 30 September 11
Uniform Resource
                Locator
                    • Specifies how and where to find an internet
                          resource
                    • Three parts: protocol, address, selector
                    • Example: http://www.rickogden.com/
                          tutorials/960gs



Friday, 30 September 11
Protocol
                    • Specifies the protocol used to communicate
                          with server
                    • Example protocols:
                      • HTTP - the protocol of the Web
                      • FTP - access an FTP server
                      • Mailto - send an email message
                    • http://
Friday, 30 September 11
Resource address


                    • IP address or domain name
                    • http://www.rickogden.com


Friday, 30 September 11
Resource details


                    • Selector string e.g. Path to a particular
                          folder/file on web site
                    • http://www.rickogden.com/tutorials/960gs


Friday, 30 September 11
Index page
                    • If no filename specified, server
                          automatically serves (by default) the file
                          called index.html
                    • Home page of website should be called
                          index.html
                    • Do not use other variations e.g.
                          Homepage.html, assignment.html


Friday, 30 September 11
URL format
                    •     Applies to folder and filenames as well as URL
                    •     Only use lowercase letters:
                          •   index.html NOT Index.html
                    •     Do not use spaces
                          •   my_contacts.html NOT my contacts.html
                    •     Use meaningful names
                          •   gigs.html NOT page1.html


Friday, 30 September 11
Client server model
                                   The client requests a web
                                     page from the server


                          Client                               Server

                                   Server generates a stream
                                    of HTML/CSS to client




Friday, 30 September 11
Static web pages
                    • All users always get the same information
                          from a page
                    • No user interaction
                    • Limited functionality
                    • Completed web page is stored on server
                    • HTML / CSS
                    • Starting point for web page design
Friday, 30 September 11
Dynamic web pages
                    • Page may be different depending on user
                          and time of request
                    • Extended functionality
                    • Web page is generated on demand
                    • HTML / CSS plus server side programming
                          e.g. php, ASP.NET, Python, Ruby plus client
                          side programming e.g. JavaScript


Friday, 30 September 11
Web standards
                    • Allow all browsers to display all web pages
                    • Allow web pages to be accessible to
                          everyone
                    • W3C (World Wide Web Consortium)
                          creates recommendations that are de facto
                          standards
                    • Other standard organisations exist
Friday, 30 September 11
Web standards for this
                module
                    •     Structural layer (HTML 5)
                          •   defines the structure of a document, e.g. Headings,
                              paragraphs, lists, sections etc.
                          •   Evolved from HTML 4.01 and XHTML 1.1
                    •     Presentation layer (CSS Level 3)
                          •   defines rules for the presentation of the elements
                              that make up a page
                          •   controls fonts, colour, margins, position on the page
                              or screen, etc.


Friday, 30 September 11
Two key concepts


                    • Separation of structure/content from
                          presentation
                    • Use CSS for layout NOT tables


Friday, 30 September 11
Standards-based design
                    •     Separate presentation from structure
                          •   don't select an element based on how it looks in a
                              browser
                          •   don't use deprecated elements and attributes
                          •   don't use tables for layout
                    •     Use DOCTYPE declarations
                          •   enables DOCTYPE switching
                          •   facilitates validation
                    •     Validate both HTML and CSS rules



Friday, 30 September 11
Client variation -
                browsers
                                 Firefox                              42.2%
                                Chrome                                27.9%
                           Internet Explorer                          23.2%
                                  Safari                              3.7%
                                  Opera                               2.4%

          Figures show visitors to w3schools.com website in June 2011 by browser




Friday, 30 September 11
Client variation -
                browsers
                                Chrome                               43.62%
                                 Firefox                             40.72%
                           Internet Explorer                          6.96%
                                  Safari                              3.33%
                                 Opera                                2.9%

          Figures show visitors to rickogden.com website in June 2011 by browser




Friday, 30 September 11
Client variation -
                display
                               1280x1024                               14.8%
                                1280x800                               14.4%
                                1024x768                              10.43%
                                1366x768                               10.1%
                                1440x900                               9.9%

         Figures show visitors to w3schools.com website in January 2011 by display




Friday, 30 September 11
Client variation -
                display
                                1680x1050                               24.35%
                                 1280x800                               13.77%
                                1280x1024                               11.59%
                                 1366x768                               10.43%
                                1920x1080                               9.57%

            Figures show visitors to rickogden.com website in June 2011 by display




Friday, 30 September 11
Client variation - OS
                                 Windows                                85.1%
                                 Macintosh                               8.1%
                                    Linux                                5.2%
                                     iOS                                0.54%
                                  Android                               0.21%

            Figures show visitors to w3schools.com website in June 2011 by display




Friday, 30 September 11
Client variation - OS
                                 Windows                                54.93%
                                    Linux                               29.71%
                                 Macintosh                              13.19%
                                     iOS                                0.58%
                                  Android                               0.43%

            Figures show visitors to rickogden.com website in June 2011 by display




Friday, 30 September 11
The challenge

                    • To make a web site operate satisfactorily
                          for every user, regardless of browser/
                          display/operating system combination
                    • Use standards compliant design to achieve
                          this




Friday, 30 September 11
Design for compatibility
                    • Page need not look the same in all browsers
                      • graded browser support
                      • ensure content is accessible and usable
                    • Follow Web standards for content markup
                    • Follow accessibility guidelines
                    • Follow standards for CSS Rules
Friday, 30 September 11
The design process
                    • design for good standard-compliant
                          browser: Firefox
                    • test in other standard-compliant browsers
                     • fix problems
                    • test in older browsers
                     • work around problems by splitting up
                            stylesheet


Friday, 30 September 11

Mais conteúdo relacionado

Semelhante a 1 the web environment

www | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorialwww | HTTP | HTML - Tutorial
www | HTTP | HTML - TutorialMSA Technosoft
 
Managing storage on Prem and in Cloud
Managing storage on Prem and in CloudManaging storage on Prem and in Cloud
Managing storage on Prem and in CloudHoward Marks
 
ARTDM 171, Week 2: A Brief History + Web Basics
ARTDM 171, Week 2: A Brief History + Web BasicsARTDM 171, Week 2: A Brief History + Web Basics
ARTDM 171, Week 2: A Brief History + Web BasicsGilbert Guerrero
 
Sharing information with MediaWiki
Sharing information with MediaWikiSharing information with MediaWiki
Sharing information with MediaWikiGeert Van Pamel
 
Porting ASP.NET applications to Windows Azure
Porting ASP.NET applications to Windows AzurePorting ASP.NET applications to Windows Azure
Porting ASP.NET applications to Windows AzureGunnar Peipman
 
An introduction to GWT and Ext GWT
An introduction to GWT and Ext GWTAn introduction to GWT and Ext GWT
An introduction to GWT and Ext GWTDarrell Meyer
 
Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!Brian Culver
 
Intro to SharePoint 2013 Branding
Intro to SharePoint 2013 BrandingIntro to SharePoint 2013 Branding
Intro to SharePoint 2013 BrandingThomas Daly
 
Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2
Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2
Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2Richard Esplin
 
Share point 2013 enterprise search (public)
Share point 2013 enterprise search (public)Share point 2013 enterprise search (public)
Share point 2013 enterprise search (public)Petter Skodvin-Hvammen
 
StoryCode Tech Immersion 1
StoryCode Tech Immersion 1StoryCode Tech Immersion 1
StoryCode Tech Immersion 1storycode
 
IWMW 1998: Deploying new web technologies
IWMW 1998: Deploying new web technologiesIWMW 1998: Deploying new web technologies
IWMW 1998: Deploying new web technologiesIWMW
 
It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...
It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...
It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...mharpasu
 
Scalability andefficiencypres
Scalability andefficiencypresScalability andefficiencypres
Scalability andefficiencypresNekoGato
 
CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesSam Bowne
 

Semelhante a 1 the web environment (20)

www | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorialwww | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorial
 
world wide web
world wide webworld wide web
world wide web
 
Managing storage on Prem and in Cloud
Managing storage on Prem and in CloudManaging storage on Prem and in Cloud
Managing storage on Prem and in Cloud
 
ARTDM 171, Week 2: A Brief History + Web Basics
ARTDM 171, Week 2: A Brief History + Web BasicsARTDM 171, Week 2: A Brief History + Web Basics
ARTDM 171, Week 2: A Brief History + Web Basics
 
Sharing information with MediaWiki
Sharing information with MediaWikiSharing information with MediaWiki
Sharing information with MediaWiki
 
Web
WebWeb
Web
 
Porting ASP.NET applications to Windows Azure
Porting ASP.NET applications to Windows AzurePorting ASP.NET applications to Windows Azure
Porting ASP.NET applications to Windows Azure
 
10. ROS (1).pptx
10. ROS (1).pptx10. ROS (1).pptx
10. ROS (1).pptx
 
An introduction to GWT and Ext GWT
An introduction to GWT and Ext GWTAn introduction to GWT and Ext GWT
An introduction to GWT and Ext GWT
 
Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!
 
Intro to SharePoint 2013 Branding
Intro to SharePoint 2013 BrandingIntro to SharePoint 2013 Branding
Intro to SharePoint 2013 Branding
 
dmBridge & dmMonocle
dmBridge & dmMonocledmBridge & dmMonocle
dmBridge & dmMonocle
 
Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2
Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2
Alfresco Tech Talk Live (Episode 70): Customizing Alfresco Share 4.2
 
Share point 2013 enterprise search (public)
Share point 2013 enterprise search (public)Share point 2013 enterprise search (public)
Share point 2013 enterprise search (public)
 
StoryCode Tech Immersion 1
StoryCode Tech Immersion 1StoryCode Tech Immersion 1
StoryCode Tech Immersion 1
 
IWMW 1998: Deploying new web technologies
IWMW 1998: Deploying new web technologiesIWMW 1998: Deploying new web technologies
IWMW 1998: Deploying new web technologies
 
It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...
It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...
It takes a Village: Implementing a Homegrown Solution for Streaming Video Res...
 
Scalability andefficiencypres
Scalability andefficiencypresScalability andefficiencypres
Scalability andefficiencypres
 
Web Terms Handout
Web Terms HandoutWeb Terms Handout
Web Terms Handout
 
CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application Technologies
 

Último

USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
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
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
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
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
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
 
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
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
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
 
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
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
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
 

Último (20)

USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
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
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
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
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
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
 
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
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
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
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
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
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
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
 

1 the web environment

  • 1. The Web Environment Web Page Design Friday, 30 September 11
  • 2. Overview • Internet and the web • Network details • Evolution of the web • Web technologies • Web standards Friday, 30 September 11
  • 3. The Internet • A massive number of computers connected together through a global network • Carries a range of data: • Email • Web • File transfer • Audio video data Friday, 30 September 11
  • 4. The Web • A global collection of hyperlinked pages connected via the internet • Web pages are stored on a server • The user views web pages on a client Friday, 30 September 11
  • 5. Internet addressing (IPv4) • logical not physical • 32-bit binary number • written as 4 decimal numbers separated by dots • e.g. 146.87.119.37 • 146.87 is University of Salford • 119 is one network at Salford • 37 is a computer on that network Friday, 30 September 11
  • 6. Internet addressing (IPv6) • We have now run out of IP addresses • IPv4 only has about 4.3 billion addresses • Addresses consist of 8 groups of 4 hexadecimal digits (with : as separator) • 2001:0db8:85a3:0000:0000:8a2e:0370:7334 Friday, 30 September 11
  • 7. Domain names • Easier for people to remember names than numbers • www.salford.ac.uk • www.rickogden.com • Domain name service (DNS) converts name to numerical IP address Friday, 30 September 11
  • 8. Uniform Resource Locator • Specifies how and where to find an internet resource • Three parts: protocol, address, selector • Example: http://www.rickogden.com/ tutorials/960gs Friday, 30 September 11
  • 9. Protocol • Specifies the protocol used to communicate with server • Example protocols: • HTTP - the protocol of the Web • FTP - access an FTP server • Mailto - send an email message • http:// Friday, 30 September 11
  • 10. Resource address • IP address or domain name • http://www.rickogden.com Friday, 30 September 11
  • 11. Resource details • Selector string e.g. Path to a particular folder/file on web site • http://www.rickogden.com/tutorials/960gs Friday, 30 September 11
  • 12. Index page • If no filename specified, server automatically serves (by default) the file called index.html • Home page of website should be called index.html • Do not use other variations e.g. Homepage.html, assignment.html Friday, 30 September 11
  • 13. URL format • Applies to folder and filenames as well as URL • Only use lowercase letters: • index.html NOT Index.html • Do not use spaces • my_contacts.html NOT my contacts.html • Use meaningful names • gigs.html NOT page1.html Friday, 30 September 11
  • 14. Client server model The client requests a web page from the server Client Server Server generates a stream of HTML/CSS to client Friday, 30 September 11
  • 15. Static web pages • All users always get the same information from a page • No user interaction • Limited functionality • Completed web page is stored on server • HTML / CSS • Starting point for web page design Friday, 30 September 11
  • 16. Dynamic web pages • Page may be different depending on user and time of request • Extended functionality • Web page is generated on demand • HTML / CSS plus server side programming e.g. php, ASP.NET, Python, Ruby plus client side programming e.g. JavaScript Friday, 30 September 11
  • 17. Web standards • Allow all browsers to display all web pages • Allow web pages to be accessible to everyone • W3C (World Wide Web Consortium) creates recommendations that are de facto standards • Other standard organisations exist Friday, 30 September 11
  • 18. Web standards for this module • Structural layer (HTML 5) • defines the structure of a document, e.g. Headings, paragraphs, lists, sections etc. • Evolved from HTML 4.01 and XHTML 1.1 • Presentation layer (CSS Level 3) • defines rules for the presentation of the elements that make up a page • controls fonts, colour, margins, position on the page or screen, etc. Friday, 30 September 11
  • 19. Two key concepts • Separation of structure/content from presentation • Use CSS for layout NOT tables Friday, 30 September 11
  • 20. Standards-based design • Separate presentation from structure • don't select an element based on how it looks in a browser • don't use deprecated elements and attributes • don't use tables for layout • Use DOCTYPE declarations • enables DOCTYPE switching • facilitates validation • Validate both HTML and CSS rules Friday, 30 September 11
  • 21. Client variation - browsers Firefox 42.2% Chrome 27.9% Internet Explorer 23.2% Safari 3.7% Opera 2.4% Figures show visitors to w3schools.com website in June 2011 by browser Friday, 30 September 11
  • 22. Client variation - browsers Chrome 43.62% Firefox 40.72% Internet Explorer 6.96% Safari 3.33% Opera 2.9% Figures show visitors to rickogden.com website in June 2011 by browser Friday, 30 September 11
  • 23. Client variation - display 1280x1024 14.8% 1280x800 14.4% 1024x768 10.43% 1366x768 10.1% 1440x900 9.9% Figures show visitors to w3schools.com website in January 2011 by display Friday, 30 September 11
  • 24. Client variation - display 1680x1050 24.35% 1280x800 13.77% 1280x1024 11.59% 1366x768 10.43% 1920x1080 9.57% Figures show visitors to rickogden.com website in June 2011 by display Friday, 30 September 11
  • 25. Client variation - OS Windows 85.1% Macintosh 8.1% Linux 5.2% iOS 0.54% Android 0.21% Figures show visitors to w3schools.com website in June 2011 by display Friday, 30 September 11
  • 26. Client variation - OS Windows 54.93% Linux 29.71% Macintosh 13.19% iOS 0.58% Android 0.43% Figures show visitors to rickogden.com website in June 2011 by display Friday, 30 September 11
  • 27. The challenge • To make a web site operate satisfactorily for every user, regardless of browser/ display/operating system combination • Use standards compliant design to achieve this Friday, 30 September 11
  • 28. Design for compatibility • Page need not look the same in all browsers • graded browser support • ensure content is accessible and usable • Follow Web standards for content markup • Follow accessibility guidelines • Follow standards for CSS Rules Friday, 30 September 11
  • 29. The design process • design for good standard-compliant browser: Firefox • test in other standard-compliant browsers • fix problems • test in older browsers • work around problems by splitting up stylesheet Friday, 30 September 11