Distributed Computing Lesson 9: WWW, HTML, and URLS Thomas Weise · 汤卫思 [email protected] · http://www.it-weise.de
Hefei University, South Campus 2 合肥学院 南艳湖校区/南2区 Faculty of Computer Science and Technology 计算机科学与技术系 Institute of Applied Optimization 应用优化研究所 230601 Shushan District, Hefei, Anhui, China 中国 安徽省 合肥市 蜀山区 230601 Econ. & Tech. Devel. Zone, Jinxiu Dadao 99 经济技术开发区 锦绣大道99号 Outline
2 Web Pages and Sites
3 URLs & Co. website
Distributed Computing Thomas Weise 2/22 Overview
• Understand the concepts of static HTML and URLs • Understand closely related standards such as CSS and JavaScript
Distributed Computing Thomas Weise 3/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format
Distributed Computing Thomas Weise 4/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format 91-12 First text-based prototype shown at the Hypertext’91 conference [3]
Distributed Computing Thomas Weise 4/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format 91-12 First text-based prototype shown at the Hypertext’91 conference [3] 92-12 50 WWW server wordwide
Distributed Computing Thomas Weise 4/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format 91-12 First text-based prototype shown at the Hypertext’91 conference [3] 92-12 50 WWW server wordwide 93-02 First graphical browser user interface (Mosaic) presented by Marc Andreessen [4]
Distributed Computing Thomas Weise 4/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format 91-12 First text-based prototype shown at the Hypertext’91 conference [3] 92-12 50 WWW server wordwide 93-02 First graphical browser user interface (Mosaic) presented by Marc Andreessen [4] 1994 Foundation of Netscape by M. Andreessen
Distributed Computing Thomas Weise 4/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format 91-12 First text-based prototype shown at the Hypertext’91 conference [3] 92-12 50 WWW server wordwide 93-02 First graphical browser user interface (Mosaic) presented by Marc Andreessen [4] 1994 Foundation of Netscape by M. Andreessen 1994 Foundation of the WWW Consortium (www.w3.org)
Distributed Computing Thomas Weise 4/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format 91-12 First text-based prototype shown at the Hypertext’91 conference [3] 92-12 50 WWW server wordwide 93-02 First graphical browser user interface (Mosaic) presented by Marc Andreessen [4] 1994 Foundation of Netscape by M. Andreessen 1994 Foundation of the WWW Consortium (www.w3.org) 1994 First international WWW conferenz in Geneva [5]
Distributed Computing Thomas Weise 4/22 World Wide Web (History)
89-03 First proposal for HTML/WWW by Tim Berners-Lee at CERN in Geneva for a network of documents [1] in a Hypertext [2] format 91-12 First text-based prototype shown at the Hypertext’91 conference [3] 92-12 50 WWW server wordwide 93-02 First graphical browser user interface (Mosaic) presented by Marc Andreessen [4] 1994 Foundation of Netscape by M. Andreessen 1994 Foundation of the WWW Consortium (www.w3.org) 1994 First international WWW conferenz in Geneva [5] 1995 Netscape arrives at stock market: 1.5 billion USD
Distributed Computing Thomas Weise 4/22 World Wide Web (Development)
933 892 520 sites in Netcraft’s February 2016 Web Server Survey [6]
Distributed Computing Thomas Weise 5/22 Main Components of the WWW
1 Resources
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files...
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files... 2 HTML
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files... 2 HTML: A document format allowing for • organizing and linking other HTML documents togther as a directed graph
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files... 2 HTML: A document format allowing for • organizing and linking other HTML documents togther as a directed graph • linking to arbitrary resources
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files... 2 HTML: A document format allowing for • organizing and linking other HTML documents togther as a directed graph • linking to arbitrary resources 3 URIs
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files... 2 HTML: A document format allowing for • organizing and linking other HTML documents togther as a directed graph • linking to arbitrary resources 3 URIs: A way to locate and identify resources
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files... 2 HTML: A document format allowing for • organizing and linking other HTML documents togther as a directed graph • linking to arbitrary resources 3 URIs: A way to locate and identify resources 4 HTTP
Distributed Computing Thomas Weise 6/22 Main Components of the WWW
1 Resources: a source of data: text, pictures, sounds, video, files... 2 HTML: A document format allowing for • organizing and linking other HTML documents togther as a directed graph • linking to arbitrary resources 3 URIs: A way to locate and identify resources 4 HTTP: A protocol allowing for requesting resources from a (remote) server
Distributed Computing Thomas Weise 6/22 Introduction
• A web server hosts web pages
Distributed Computing Thomas Weise 7/22 Introduction
• A web server hosts web pages • A web browser accesses these pages via a protocol
Distributed Computing Thomas Weise 7/22 Introduction
• A web server hosts web pages • A web browser accesses these pages via a protocol • A web page can be defined in HTML enriched with JavaScript and Style Sheets
Distributed Computing Thomas Weise 7/22 Introduction
• A web server hosts web pages • A web browser accesses these pages via a protocol • A web page can be defined in HTML enriched with JavaScript and Style Sheets • We now look at these server-side data formats
Distributed Computing Thomas Weise 7/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser
Distributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9])
Distributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9]) • Hierarchical structure of
Distributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9]) • Hierarchical structure of: • tags enclosed by opening and closing brackets ( )
Distributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9]) • Hierarchical structure of: • tags enclosed by opening and closing brackets ( ) • that usually are paired like
contents
Distributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9]) • Hierarchical structure of: • tags enclosed by opening and closing brackets ( ) • that usually are paired like
contents
• but there also are stand-alone tags without contents such as orDistributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9]) • Hierarchical structure of: • tags enclosed by opening and closing brackets ( ) • that usually are paired like
contents
• but there also are stand-alone tags without contents such as or• some tags require attributes (e.g., )
Distributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9]) • Hierarchical structure of tags which give semantic information. . . • ...and layout information
Distributed Computing Thomas Weise 8/22 HTML
• HyperText Markup Language [7, 8]: Language to create web pages to be displayed in a web browser • Originally based on SGML (ISO Standard, complex, 1986 [9]) • Hierarchical structure of tags which give semantic information. . . • ...and layout information
Distributed Computing Thomas Weise 8/22 Examples for HTML Tags
Examples for HTML tags
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-informationDistributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-informationDistributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-informationDistributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
- ...
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
- ...
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
- ...
...
text paragraphDistributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
- ...
...
text paragraphnewline
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
- ...
...
text paragraphnewline ... hyperlink to another page
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
- ...
...
text paragraphnewline ... hyperlink to another page embedded image
Distributed Computing Thomas Weise 9/22 Examples for HTML Tags
Examples for HTML tags:
... tag pair enclosing the web page
... head of a web page: meta-information...
head line of level 1...
head line of level 2 ......- ...
- ...
...
text paragraphnewline ... hyperlink to another page embedded image ......
Distributed Computing Thomas Weise 9/22 HTML Example
Distributed Computing Thomas Weise 10/22 HTML Example
Distributed Computing Thomas Weise 10/22 HTML Example
Distributed Computing Thomas Weise 10/22 HTML Example