Ch1 - WWW and HTML
Ch1 - WWW and HTML
Chapter 1
Internet, WWW and HTML
Tran Cong An
([email protected])
Content
- Internet
- World Wide Web (WWW)
- HyperText Markup Language (HTML)
2
The Internet
3
The Internet
4
The Internet basic concepts
- The Internet
- Communication protocols
- IP (Internet protocol)
• What is IP?
• IPv4 and IP v6
- TCP (Transmission Control Protocol)
- UDP (User Datagram Protocol)
- DNS (Domain Name System)
5
The Internet
6
The Internet basic concepts
7
The Internet basic concepts
8
The Internet basic concepts
9
The WWW
10
What is WWW?
- Origins:
• Tim Berners-Lee at CERN (European Organization for Nuclear Research ) in
1989
• Purpose: to allow scientists to have access to many databases of
scientific work (share) through their own computers
11
WWW Document
12
Hypertext, Webpage and Website
13
Web Server and Web Browser
14
Web Server and Web Browser
15
Web Browser and Web Server
16
HyperText Transfer Protocol (HTTP)
17
HyperText Transfer Protocol (HTTP)
18
HyperText Transfer Protocol (HTTP)
1) Request line:
• method: GET, POST, HEAD, PUT, DELETE,…
• URL: path to the requested resource
• version: HTTP version used in communication between client
and server (currently 1.1)
• Example: GET / HTTP/1.1
(request the homepage using HTTP protocol version 1.1)
2) Header fields: additional information with the request
3) Body: usually empty, except in case browser wants to upload
19
HyperText Transfer Protocol (HTTP)
20
HyperText Transfer Protocol (HTTP)
- URL:
• Specifies location at which a resource can be found
• HTTP URL Syntax:
http://host_name/path/command?parameter1=value¶meter2...
21
HyperText Transfer Protocol (HTTP)
22
HyperText Transfer Protocol (HTTP)
23
HyperText Transfer Protocol (HTTP)
25
WWW Resources
- Web pages
- Multimedia data: images, sound, videos, etc.
26
Uniform Resource Locator (URL)
- Examples:
• http://www.w3.org/Consortium/siteindex.html
• ftp://ctan.tug.org/pub/tex/tds.zip
• mailto:[email protected]
• file:///c:/Windows/clock.avi
27
Uniform Resource Locator (URL)
- Absolute URL:
• Fully qualified URL which contains all elements of an URL
• Example: http://www.w3.org/Consortium/siteindex.html
- Relative URL:
• Contains only the relative path to the resource
• Protocol and host address are inferred using the information in
the URL of the containing page
• Absolute path of the resource is calculated from the address
(path) of containing the webpage
• Example: images/logo.png
28
Types of web
- Static web:
• Content of the webpage is fixed
• Extension: .html
• Can be served directly by web server
- Dynamic web:
• Content of a webpage is “dynamic”
• Usually produced by a programming/scripting language
29
Client-side scripting languages
30
Server-side scripting languages
31
HTML
(HyperText Markup Language)
32
Introduction to HTML
33
HTML Basic
36
HTML Document Head
https://www.w3schools.com/html/html_head.asp
37
HTML Document Body
38
HTML Formatting Elements
39
HTML Styles
40
HTML Colors
41
HTML Forms
42
HTML Forms Elements
HTML5: color, date, email, number, range, search, tel, time, url, week
43
HTML Forms Elements
44
Questions
45
Appendix
46
References
- http://www.w3.org(official)
(http: // www. w3. org/ community/ webed/ wiki/ Main_ Page)
- http://w3school.com/html/(recommended)
- http://htmldog.com/guides/html/
- http://www.echoecho.com/html.htm
47
Quiz
48
Quiz
49
Quiz
50
Quiz
51
Quiz
52
Quiz
53
Quiz
54
Quiz
55
HTML5
- The latest version of the HTML markup language (5.0, 5.1, 5.2)
- The living standard
- The next generation features for modern web development
- Theoretically, the HTML5 specification will be completed in
2022.
HTML5
56
HTML5 Characteristics
57