Internet, intranet and Web
Lecture II World Wide Web: standards, protocols, documents
Marco Solieri marco.solieri@lipn.univ-paris13.fr
Info et Réseaux en Apprentissage, Sup Galilée, Paris 13
I nternet , intranet and W eb L ecture II W orld W ide W eb : - - PowerPoint PPT Presentation
I nternet , intranet and W eb L ecture II W orld W ide W eb : standards , protocols , documents Marco Solieri marco.solieri@lipn.univ-paris13.fr Info et Rseaux en Apprentissage, Sup Galile, Paris 13 November 6 th, 2014 O utline 1 W orld W ide
Info et Réseaux en Apprentissage, Sup Galilée, Paris 13
1 World Wide Web 2 Uniform Resource Identifier 3 HyperText Transfer Protocol 4 HTTP extensions 5 Web architectures 6 Web markup 7 XHTML 1 and HTML 4 markup
IWEB: World Wide Web 11/6/2014 2 / 61
World Wide Web
IWEB: World Wide Web 11/6/2014 3 / 61
World Wide Web
IWEB: World Wide Web 11/6/2014 3 / 61
World Wide Web
IWEB: World Wide Web 11/6/2014 3 / 61
World Wide Web
IWEB: World Wide Web 11/6/2014 4 / 61
World Wide Web
IWEB: World Wide Web 11/6/2014 5 / 61
Uniform Resource Identifier
IWEB: World Wide Web 11/6/2014 6 / 61
Uniform Resource Identifier
IWEB: World Wide Web 11/6/2014 6 / 61
Uniform Resource Identifier Features
IWEB: World Wide Web 11/6/2014 6 / 61
Uniform Resource Identifier Features
IWEB: World Wide Web 11/6/2014 7 / 61
Uniform Resource Identifier Definition
IWEB: World Wide Web 11/6/2014 8 / 61
Uniform Resource Identifier Definition
IWEB: World Wide Web 11/6/2014 9 / 61
Uniform Resource Identifier Definition
IWEB: World Wide Web 11/6/2014 10 / 61
Uniform Resource Identifier Definition
IWEB: World Wide Web 11/6/2014 11 / 61
Uniform Resource Identifier Dynamics
IWEB: World Wide Web 11/6/2014 12 / 61
HyperText Transfer Protocol
IWEB: World Wide Web 11/6/2014 13 / 61
HyperText Transfer Protocol Connections
IWEB: World Wide Web 11/6/2014 13 / 61
HyperText Transfer Protocol Connections
IWEB: World Wide Web 11/6/2014 14 / 61
HyperText Transfer Protocol Connections
IWEB: World Wide Web 11/6/2014 15 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 16 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 17 / 61
HyperText Transfer Protocol Headers
IWEB: World Wide Web 11/6/2014 18 / 61
HyperText Transfer Protocol Headers
IWEB: World Wide Web 11/6/2014 19 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 20 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 21 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 22 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 22 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 22 / 61
HyperText Transfer Protocol Requests
IWEB: World Wide Web 11/6/2014 22 / 61
HyperText Transfer Protocol Replies
IWEB: World Wide Web 11/6/2014 23 / 61
HyperText Transfer Protocol Replies
IWEB: World Wide Web 11/6/2014 24 / 61
HyperText Transfer Protocol Replies
IWEB: World Wide Web 11/6/2014 25 / 61
HyperText Transfer Protocol Replies
IWEB: World Wide Web 11/6/2014 26 / 61
HTTP extensions
IWEB: World Wide Web 11/6/2014 27 / 61
HTTP extensions Authentication and security
1 client send a request for a restricted resource; 2 server replies with code 401 and a WWW-Authenticate header:
3 client get username and password from user; 4 client send the request again, with response
5 server verify response and
IWEB: World Wide Web 11/6/2014 27 / 61
HTTP extensions Authentication and security
IWEB: World Wide Web 11/6/2014 28 / 61
HTTP extensions Authentication and security
IWEB: World Wide Web 11/6/2014 28 / 61
HTTP extensions Authentication and security
IWEB: World Wide Web 11/6/2014 29 / 61
HTTP extensions State management
1 server adds to the first response a Set-Cookie header containing
2 server now start associating the unique cookie to the client 3 client stores the cookie and will always add it to requests for that
IWEB: World Wide Web 11/6/2014 30 / 61
HTTP extensions State management
IWEB: World Wide Web 11/6/2014 31 / 61
HTTP extensions State management
IWEB: World Wide Web 11/6/2014 32 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 33 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 33 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 33 / 61
Web architectures
1 storage: files for binary data, DBMS for structured data 2 application: programs for the HTML generation 3 browser: HTML rendering
IWEB: World Wide Web 11/6/2014 34 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 35 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 35 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 36 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 36 / 61
Web architectures
1 storage: files for binary data, DBMS for structured data 2 application-logic: programs for content generation (e.g. XML) 3 presentation: programs for content presentation (e.g. XSLT) 4 browser: HTML rendering
IWEB: World Wide Web 11/6/2014 37 / 61
Web architectures
1 storage: files for binary data, DBMS for structured data 2 application-logic: programs for content generation (e.g. XML) 3 presentation: programs for content presentation (e.g. XSLT) 4 browser: HTML rendering
IWEB: World Wide Web 11/6/2014 37 / 61
Web architectures
IWEB: World Wide Web 11/6/2014 38 / 61
Web markup
IWEB: World Wide Web 11/6/2014 39 / 61
Web markup
IWEB: World Wide Web 11/6/2014 39 / 61
Web markup Brief history of web markup
formatting, hyperlinks, images . . .
correctness (it is validated)
IWEB: World Wide Web 11/6/2014 40 / 61
Web markup Brief history of web markup
IWEB: World Wide Web 11/6/2014 41 / 61
Web markup Brief history of web markup
participation of players from browsers, search engines, CMSs (abandoned draft XHTML 2)
together a new HTML version (He who ships working code wins)
features (web application, multimedia)
IWEB: World Wide Web 11/6/2014 42 / 61
Web markup Morals
IWEB: World Wide Web 11/6/2014 43 / 61
Web markup Morals
IWEB: World Wide Web 11/6/2014 44 / 61
Web markup Morals
IWEB: World Wide Web 11/6/2014 45 / 61
XHTML 1 and HTML 4 markup
IWEB: World Wide Web 11/6/2014 46 / 61
XHTML 1 and HTML 4 markup Document type and basic structure
IWEB: World Wide Web 11/6/2014 46 / 61
XHTML 1 and HTML 4 markup Document type and basic structure
IWEB: World Wide Web 11/6/2014 47 / 61
XHTML 1 and HTML 4 markup Document type and basic structure
IWEB: World Wide Web 11/6/2014 48 / 61
XHTML 1 and HTML 4 markup Document type and basic structure
IWEB: World Wide Web 11/6/2014 49 / 61
XHTML 1 and HTML 4 markup Inline elements
IWEB: World Wide Web 11/6/2014 50 / 61
XHTML 1 and HTML 4 markup Inline elements
IWEB: World Wide Web 11/6/2014 51 / 61
XHTML 1 and HTML 4 markup Block elements
IWEB: World Wide Web 11/6/2014 52 / 61
XHTML 1 and HTML 4 markup Block elements
IWEB: World Wide Web 11/6/2014 53 / 61
XHTML 1 and HTML 4 markup Tables
IWEB: World Wide Web 11/6/2014 54 / 61
XHTML 1 and HTML 4 markup Tables
<table border="1" cellpadding="3" width="75%" summary="Spanning cells"> <tr> <td>Cell A</td> <td colspan="2">Cell B</td> </tr> <tr> <td colspan="2">Cell C</td> <td rowspan="2">Cell D</td> </tr> <tr> <td>Cell E</td> <td>Cell F</td> </tr> </table>
IWEB: World Wide Web 11/6/2014 55 / 61
XHTML 1 and HTML 4 markup Tables
<table border="1" cellpadding="3" width="75%" summary="Spanning cells"> <tr> <td>Cell A</td> <td colspan="2">Cell B</td> </tr> <tr> <td colspan="2">Cell C</td> <td rowspan="2">Cell D</td> </tr> <tr> <td>Cell E</td> <td>Cell F</td> </tr> </table> Cell placement is A: 1,1 - B: 1,2-3 - C: 2,1-2 - D: 2-3,3 - E: 3,1 - F: 3,2
IWEB: World Wide Web 11/6/2014 55 / 61
XHTML 1 and HTML 4 markup Images
IWEB: World Wide Web 11/6/2014 56 / 61
XHTML 1 and HTML 4 markup Forms
1 asking information to the user 2 specification of information processing
IWEB: World Wide Web 11/6/2014 57 / 61
XHTML 1 and HTML 4 markup Forms
IWEB: World Wide Web 11/6/2014 58 / 61
XHTML 1 and HTML 4 markup Forms
IWEB: World Wide Web 11/6/2014 59 / 61
XHTML 1 and HTML 4 markup Forms
<form action="add_subscriber.cgi" method="post"><p> First name: <input type="text" name="firstname" /> <br /> Last name: <input type="text" name="lastname" /> <br /> Email: <input type="text" name="email" /> <br /> <input type="radio" name="sex" value="M" /> Male <br /> <input type="radio" name="sex" value="F" /> Female <br /> <button name="submit" value="submit" type="submit" onclick="verify()"> Send <img src="/icons/wow.gif" alt="wow"> </button> <button name="reset" type="reset"> Reset <img src="/icons/oops.gif" alt="oops"> </button> </p></form>
IWEB: World Wide Web 11/6/2014 60 / 61
XHTML 1 and HTML 4 markup Forms
1 World Wide Web 2 Uniform Resource Identifier 3 HyperText Transfer Protocol 4 HTTP extensions 5 Web architectures 6 Web markup 7 XHTML 1 and HTML 4 markup
IWEB: World Wide Web 11/6/2014 61 / 61