Top Banner
Reintroducing to Web Technology Isriya Paireepairit
21

Reintroducing Web Technology

Dec 13, 2014

Download

Technology

Basic concepts about Internet and Web. Including TCP/IP, HTTP, DOM, DHTML, SOAP.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Reintroducing Web Technology

Reintroducing to Web Technology

Isriya Paireepairit

Page 2: Reintroducing Web Technology

Agenda• HTTP

• XML

• HTML/XHTML

• CSS

• JavaScript

• DOM

• SVG

• Unicode

Page 3: Reintroducing Web Technology

HTTP

• “HyperText Transfer Protocol”

• Latest version: 1.1

• Familiar terms for web developers

• GET, POST, 404

• Encrypted version called HTTPS vis SSL (now TLS)

• Port 80

Page 4: Reintroducing Web Technology

HTTP role in Internet Protocol

• TCP/IP Stack pic

Page 5: Reintroducing Web Technology

HTTP Advantage

• All browsers support HTTP 1.1

• Other protocol can be blocked via Firewall

• SMTP, POP3, IMAP, IRC, NNTP, BitTorrent

• So that all web frameworks are built on HTTP

• We will cover this again in AJAX topic

Page 6: Reintroducing Web Technology

Technologies on top of HTTP

• XML-RPC

• XMLHttpRequest (used in AJAX)

• SOAP

• Web Service

Page 7: Reintroducing Web Technology

XML

• “Extensible Markup Language”

• Latest version is 1.1

• Simplified version of SGML

• De Facto format for data exchange via web

• Simply text file, with HTML-like syntax

• Tag scheme is definable by users

Page 8: Reintroducing Web Technology

XML schema

• The document for checking XML syntax

• There are big 3

• DTD - oldest, not in XML format

• XML Schema (or XSD) - designed to replace DTD, XMLed but too complex

• RELAX NG - newest, reduce complication

Page 9: Reintroducing Web Technology

XML Correctness

• 2 States

• Well-formed

• Correct in term of XML syntax rules

• Validate

• Logically correct with XML schema

Page 10: Reintroducing Web Technology

HTML

• HyperText Markup Language

• The language that describes “Web Page”

• Simply text file, human readable

• Latest version is HTML 4.0

Page 11: Reintroducing Web Technology

XHTML

• XHTML is XMLified HTML

• or “HTML in XML format”

• XHTML 1.0 is very similar to HTML 4.0

• XHTML has all XML properties (e.g. well-formed, valid)

Page 12: Reintroducing Web Technology

XHTML Version

• XHTML 1.0

• Transitional - allow deprecated elements

• <center> <u> <strike>

• Strict - deprecated are not allow

• Use CSS instead for presentation

• XHTML 1.1

• Modularized XHTML 1.0 Strict

Page 13: Reintroducing Web Technology

CSS

• Cascading Style Sheet

• Simply text file to describe XML/HTML presentation

• Separate “style” from “content”

• 3 levels: CSS1, CSS2, CSS3

• There is no browser support full CSS2

• IE has many problem with CSS1

Page 14: Reintroducing Web Technology

JavaScript

• A programming language

• Formal name is “ECMA Script”

• Interpreting (or scripting) not compiling

• Not related with Java (only name)

• De Facto script for web

• Latest version is 1.5, but 1.0 is enough

• IE6 supports only JavaScript 1.0

Page 15: Reintroducing Web Technology

DOM

• Document Object Model

• W3C Standard

• A “method”, not implementation

• Tell us how objects in page are related to each other

• Using Tree diagram

Page 16: Reintroducing Web Technology

DOM Demo

• Using Mozilla DOM Inspector

• Very useful for web developers

Page 17: Reintroducing Web Technology

What is DHTML?

• “Dynamic HTML”

• Technic that makes web interactive

• Not technology itself, just set of existing technology

• Including HTML, CSS, DOM, JavaScript

Page 18: Reintroducing Web Technology

SVG

• Scalable Vector Graphics

• XML-based vector graphics format

• Compete with Macromedia Flash

• Can do animation

• Browser support is rapidly growing

Page 19: Reintroducing Web Technology

SVG Demo

• Mozilla SVG Tiger

Page 20: Reintroducing Web Technology

Unicode

• Unicode is universal character encoding

• Unicode has some mode, UTF-8 is most popular

• Each Thai character uses 3 bytes in UTF-8

• Compare with 1 byte in TIS-620

• Anyway, Unicode is recommended for new web

Page 21: Reintroducing Web Technology

Canvas

• Another HTML extension from Apple

• De Facto

• Intend to render scriptable bitmap image

• Used in Mac OS X Dashboard

• Currently supported by Mozilla and KDE

• Use by <canvas>