SlideShare a Scribd company logo
1 of 21
World Wide Web
Introduction
What is WWW?
What is Internet?
Internet & WWW
The internet is a global system of connected networks that consists of millions of
computers, servers, routers, and printers on every network.
Systems communicate using Protocols.
It was called ARPANET in 1969 as a research network by Advanced Research Projects
Agency (ARPA) of the US Defence Department.
World Wide Web (WWW) started in 1989 at the European Particle Physics
Laboratory (CERN) by Tim Berners-Lee.It is a network of computers that serve web
pages that distributed hypermedia information system on the Internet. Information
can be organize, link, and access via client-server protocol.
World Wide Web(WWW) is a part of the Internet that consists of Internet connected
computers called Web Servers that store electronic documents called Web Pages.
Web Page is a specially formatted document that can contain images, text,
interactive elements, and hyperlinks, which links to other pages.
Web Site is a group of related Web Pages.A web site’s primary page known as Home
Page, typically introduces the web site and provide information about the site’s
purpose and content.
A hyperlink, or simply known as link, is a word, phrase or image that connects web
pages.Exploring the Web by jumping from one Web page to another is sometimes
called browsing or surfing the web.
Client server architecture
The Web is a client/server application: Web browsers are clients which send
requests to Web servers, which send responses back.
Internet Layers
Architecturally, the Internet consists of a collection of layers, each one providing
services for the one above it:
 The Internet Layer gets packets to their destinations. (inter network
communication)
 The Transport Layer provides communication between processes running on hosts
 The Application Layer provides high-level services to applications such as Web
browsers
HTTP
HTTP makes use of TCP to open connections between clients and servers and to
pass the requests and responses between them.
When a user clicks a link or types a web address:
 A TCP connection is opened between browser and server
 Then requests and responses are sent back and forth using HTTP
HTTP is a stateless protocol, meaning each request for data is dealt with in isolation;
once the server sends the response, it forgets everything about the original request.
URLs
A URL is a type of uniform resource identifier and is address of a resource on the
World Wide Web and the protocol used to access it.
It is used to indicate the location of a web resource to access the web pages.
URLs have 3 components:
 A Prefix (usually http:// )
 A Hostname: (such as www.cityu.edu.hk)
 A Path: (such as /scm/index.htm)
Every computer connected to the Internet must have a unique IP address, no matter
whether it’s a client or a server (or both)
An IP address is just a number that identifies a host on the Internet. Example:
212.171.218.34 or 144.214.5.218
Domain Name System
The Domain Name System (DNS) is a database that matches IP addresses to host
names.
Domain Name System (DNS) translates host names into IP addresses, which are then
used by TCP to establish connections between HTTP clients and servers.
Domain names are administered in such a way that they are guaranteed to be
unique.
Domain names are organised in a hierarchical structure….
DNS Hierarchy
Top Level Domain (TLD)
Mostly country domains:
.uk, .au, .hk, etc.
Generic Top Level Domain (gTLD)
.com
.org
.net
.biz
.info
.name
.ws
.tv
Second level domain:
The actual name of the organisation or service.
Can contain letters
(a to z),
numbers (0 to 9),
dashes ( - )
“blog.myexample.com” the second level domain address would be “myexample”
 subdomain – sometimes referred to as “third-level domains.”
“blog.myexample.com” the subdomain address would be “blog.”
Registering Domain Names
Registering a domain name can either be done directly with a registration service,
such as HKDNR, or through a website hosting service.
Either way, you have to pay a fee for domain registration that is separate from any
site hosting fees you may pay.
gTLD domains (.com, .org, .net): US$12 - 15 per year
Country domains in Hong Kong:
.com.hk, .org.hk, .net.hk: HK$200 per year
.hk: HK$250 per year
Linking Domain Names and IP Addresses
A domain name, once registered, needs to be associated with a fixed IP address of a
web server on the Internet. When you register and setup a new domain name, you
need to enter details of at least 2 nameservers.
 These nameservers are special internet servers that implement a name service
protocol.
 They may be provided by a web hosting service, or a domain registration service.
 They link a domain name to the specific IP address assigned for a website.
Examples:
ns0.directnic.com
ns1.directnic.com
Note: Most commercial hosting services
provide a form of virtual hosting, placing many
websites on a single server, so special software
is used to route domains names to assigned IP
address.
Domain Names… not just websites
Once your domain name is assigned a specific IP host you can:
Set up and run a website (www.cityu.edu.hk)
Set up e-mail accounts (nick.foxall@cityu.edu.hk)
Set up file transfer capabilties (ftp.cityu.edu.hk)
Home Page Naming
Web servers will automatically serve up pages file-named
index.html
index.htm
default.htm
default.html
…as long as ONE page by those filenames resides in the root directory of your site.
If you want to use a page by another name as the home page of the site, you will have
to configure the server software to point to that page.
The Request/Response Procedure
You enter http://server.com into your browser’s address bar.
 Your browser looks up the IP address for server.com.
 Your browser issues a request to that address for the web server’s home page.
 The request crosses the Internet and arrives at the server.com web server.
 The web server, having received the request, fetches the home page from its hard
disk.
With the home page now in memory, the web server notices that it is a file
incorporating PHP scripting and passes the page to the PHP interpreter.
The PHP interpreter executes the PHP code.
 Some of the PHP contains MySQL statements, which the PHP interpreter now
passes to the MySQL database engine
The MySQL database returns the results of the statements back to the PHP
interpreter.
 The PHP interpreter returns the results of the executed PHP code, along with the
results from the MySQL database, to the web server.
 The web server returns the page to the requesting client, which displays it.
Static Web
Pre-built webist
HTML, CSS, Javascript
Server sider rendering
Dynamic Web
Different content to each website visior
HTML, CSS, as well as server side scripting language i.e. PHP
Built pages on fly
Web versions
Web 1.0
 Read-only web
Web 2.0
Read-write
Social networking
Encourages user participation
Web 3.0 a.k.a semantic web
Can bridge gap between humans and appliactions
Can provide context to data
Search engine optimization

More Related Content

Similar to WWW - Lecture 1.pptx

Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server iSyaiful Ahdan
 
How Internet Works
How Internet WorksHow Internet Works
How Internet Workssumit kumar
 
Basics of Internet and WWW
Basics of Internet and WWWBasics of Internet and WWW
Basics of Internet and WWWSagar Rai
 
Lecture 1- Introduction to Computers and the Internet.pptx
Lecture 1- Introduction to Computers and the Internet.pptxLecture 1- Introduction to Computers and the Internet.pptx
Lecture 1- Introduction to Computers and the Internet.pptxRemyaTom2
 
Chap1 Internet Fundamental
Chap1 Internet FundamentalChap1 Internet Fundamental
Chap1 Internet Fundamentalnizamhusen
 
Unit 1 introduction to web programming
Unit 1 introduction to web programmingUnit 1 introduction to web programming
Unit 1 introduction to web programmingzahid7578
 
Introduction to Information Technology Lecture Slides PPT
Introduction to Information Technology Lecture Slides PPTIntroduction to Information Technology Lecture Slides PPT
Introduction to Information Technology Lecture Slides PPTOsama Yousaf
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Html intake 38 lect1
Html intake 38 lect1Html intake 38 lect1
Html intake 38 lect1ghkadous
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internetYusuf Brima
 
introduction_to_web_technology.pdf
introduction_to_web_technology.pdfintroduction_to_web_technology.pdf
introduction_to_web_technology.pdfVishwanathBurkpalli
 
Lecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxLecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxKevi20
 

Similar to WWW - Lecture 1.pptx (20)

Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server i
 
INTERNET
INTERNETINTERNET
INTERNET
 
How Internet Works
How Internet WorksHow Internet Works
How Internet Works
 
Basics of Internet and WWW
Basics of Internet and WWWBasics of Internet and WWW
Basics of Internet and WWW
 
Lecture 1- Introduction to Computers and the Internet.pptx
Lecture 1- Introduction to Computers and the Internet.pptxLecture 1- Introduction to Computers and the Internet.pptx
Lecture 1- Introduction to Computers and the Internet.pptx
 
Chap1 Internet Fundamental
Chap1 Internet FundamentalChap1 Internet Fundamental
Chap1 Internet Fundamental
 
Unit 1 introduction to web programming
Unit 1 introduction to web programmingUnit 1 introduction to web programming
Unit 1 introduction to web programming
 
Introduction to Information Technology Lecture Slides PPT
Introduction to Information Technology Lecture Slides PPTIntroduction to Information Technology Lecture Slides PPT
Introduction to Information Technology Lecture Slides PPT
 
Web Browsers.pptx
Web Browsers.pptxWeb Browsers.pptx
Web Browsers.pptx
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Html intake 38 lect1
Html intake 38 lect1Html intake 38 lect1
Html intake 38 lect1
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Web engineering lecture 3
Web engineering lecture 3Web engineering lecture 3
Web engineering lecture 3
 
W 11 internet & www
W 11 internet & wwwW 11 internet & www
W 11 internet & www
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
 
Internet
InternetInternet
Internet
 
introduction_to_web_technology.pdf
introduction_to_web_technology.pdfintroduction_to_web_technology.pdf
introduction_to_web_technology.pdf
 
Ebusiness
EbusinessEbusiness
Ebusiness
 
Lecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxLecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptx
 

Recently uploaded

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
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
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.
 
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
 
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
 
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
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
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
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
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
 

Recently uploaded (20)

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
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
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...
 
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
 
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
 
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
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
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
 
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Ă...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
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
 

WWW - Lecture 1.pptx

  • 2. What is WWW? What is Internet?
  • 3. Internet & WWW The internet is a global system of connected networks that consists of millions of computers, servers, routers, and printers on every network. Systems communicate using Protocols. It was called ARPANET in 1969 as a research network by Advanced Research Projects Agency (ARPA) of the US Defence Department. World Wide Web (WWW) started in 1989 at the European Particle Physics Laboratory (CERN) by Tim Berners-Lee.It is a network of computers that serve web pages that distributed hypermedia information system on the Internet. Information can be organize, link, and access via client-server protocol.
  • 4. World Wide Web(WWW) is a part of the Internet that consists of Internet connected computers called Web Servers that store electronic documents called Web Pages. Web Page is a specially formatted document that can contain images, text, interactive elements, and hyperlinks, which links to other pages. Web Site is a group of related Web Pages.A web site’s primary page known as Home Page, typically introduces the web site and provide information about the site’s purpose and content. A hyperlink, or simply known as link, is a word, phrase or image that connects web pages.Exploring the Web by jumping from one Web page to another is sometimes called browsing or surfing the web.
  • 5. Client server architecture The Web is a client/server application: Web browsers are clients which send requests to Web servers, which send responses back.
  • 6. Internet Layers Architecturally, the Internet consists of a collection of layers, each one providing services for the one above it:  The Internet Layer gets packets to their destinations. (inter network communication)  The Transport Layer provides communication between processes running on hosts  The Application Layer provides high-level services to applications such as Web browsers
  • 7. HTTP HTTP makes use of TCP to open connections between clients and servers and to pass the requests and responses between them. When a user clicks a link or types a web address:  A TCP connection is opened between browser and server  Then requests and responses are sent back and forth using HTTP HTTP is a stateless protocol, meaning each request for data is dealt with in isolation; once the server sends the response, it forgets everything about the original request.
  • 8. URLs A URL is a type of uniform resource identifier and is address of a resource on the World Wide Web and the protocol used to access it. It is used to indicate the location of a web resource to access the web pages. URLs have 3 components:  A Prefix (usually http:// )  A Hostname: (such as www.cityu.edu.hk)  A Path: (such as /scm/index.htm)
  • 9. Every computer connected to the Internet must have a unique IP address, no matter whether it’s a client or a server (or both) An IP address is just a number that identifies a host on the Internet. Example: 212.171.218.34 or 144.214.5.218
  • 10. Domain Name System The Domain Name System (DNS) is a database that matches IP addresses to host names. Domain Name System (DNS) translates host names into IP addresses, which are then used by TCP to establish connections between HTTP clients and servers. Domain names are administered in such a way that they are guaranteed to be unique. Domain names are organised in a hierarchical structure….
  • 11. DNS Hierarchy Top Level Domain (TLD) Mostly country domains: .uk, .au, .hk, etc. Generic Top Level Domain (gTLD) .com .org .net .biz .info .name .ws .tv
  • 12. Second level domain: The actual name of the organisation or service. Can contain letters (a to z), numbers (0 to 9), dashes ( - ) “blog.myexample.com” the second level domain address would be “myexample”  subdomain – sometimes referred to as “third-level domains.” “blog.myexample.com” the subdomain address would be “blog.”
  • 13. Registering Domain Names Registering a domain name can either be done directly with a registration service, such as HKDNR, or through a website hosting service. Either way, you have to pay a fee for domain registration that is separate from any site hosting fees you may pay. gTLD domains (.com, .org, .net): US$12 - 15 per year Country domains in Hong Kong: .com.hk, .org.hk, .net.hk: HK$200 per year .hk: HK$250 per year
  • 14. Linking Domain Names and IP Addresses A domain name, once registered, needs to be associated with a fixed IP address of a web server on the Internet. When you register and setup a new domain name, you need to enter details of at least 2 nameservers.  These nameservers are special internet servers that implement a name service protocol.  They may be provided by a web hosting service, or a domain registration service.  They link a domain name to the specific IP address assigned for a website. Examples: ns0.directnic.com ns1.directnic.com Note: Most commercial hosting services provide a form of virtual hosting, placing many websites on a single server, so special software is used to route domains names to assigned IP address.
  • 15. Domain Names… not just websites Once your domain name is assigned a specific IP host you can: Set up and run a website (www.cityu.edu.hk) Set up e-mail accounts (nick.foxall@cityu.edu.hk) Set up file transfer capabilties (ftp.cityu.edu.hk)
  • 16. Home Page Naming Web servers will automatically serve up pages file-named index.html index.htm default.htm default.html …as long as ONE page by those filenames resides in the root directory of your site. If you want to use a page by another name as the home page of the site, you will have to configure the server software to point to that page.
  • 17. The Request/Response Procedure You enter http://server.com into your browser’s address bar.  Your browser looks up the IP address for server.com.  Your browser issues a request to that address for the web server’s home page.  The request crosses the Internet and arrives at the server.com web server.  The web server, having received the request, fetches the home page from its hard disk.
  • 18. With the home page now in memory, the web server notices that it is a file incorporating PHP scripting and passes the page to the PHP interpreter. The PHP interpreter executes the PHP code.  Some of the PHP contains MySQL statements, which the PHP interpreter now passes to the MySQL database engine The MySQL database returns the results of the statements back to the PHP interpreter.  The PHP interpreter returns the results of the executed PHP code, along with the results from the MySQL database, to the web server.  The web server returns the page to the requesting client, which displays it.
  • 19. Static Web Pre-built webist HTML, CSS, Javascript Server sider rendering
  • 20. Dynamic Web Different content to each website visior HTML, CSS, as well as server side scripting language i.e. PHP Built pages on fly
  • 21. Web versions Web 1.0  Read-only web Web 2.0 Read-write Social networking Encourages user participation Web 3.0 a.k.a semantic web Can bridge gap between humans and appliactions Can provide context to data Search engine optimization

Editor's Notes

  1. Tim Berners-Lee (a CERN fellow) devised a method of navigating between them using a hyperlinking framework, which came to be known as the Hyper Text Transfer Protocol, or HTTP. He also created a markup language called HTML, or Hyper Text Markup Language. To bring these together, he wrote the first web browser and web server.