01 Internet Basics
01 Internet Basics
01 Internet Basics
Response
Client Server
Program /
Scripts
HTTP
• HTTP (Hypertext Transfer Protocol)
▫ protocol used to access data on the WWW.
▫ uses one TCP connection on well-known port 80.
▫ two types of http messages: Request, Response
▫ transfer data in the form of plain text, hypertext,
audio, video, and so on.
Who defines the Web standards?
• The Web standards are not defined or setup by
the browser companies or Microsoft, but the
World Wide Web Consortium (W3C).
• The specifications form the Web standards.
▫ HTML, CSS, XML, XHTML, …
Web Programming Languages
• The Web is no longer just presenting
information on a computer screen.
▫ Many commercial sites include some methods of
getting information from a browser to web servers.
How do you program your web site such that it can interact
with people?
▫ With XML, data from spreadsheets, reports or
other applications can be easily displayed on the
Web.
Can we learn XML without the understanding of HTML and
other Web language?
The History of Markup
• In the early 1970s
▫ GML (the Generalized Markup Language)
▫ “:h1.The Content is placed here”
• Since the 1980s
▫ SGML (the Standard GML)
▫ HTML
• Currently
▫ XML (eXtensible Mark-up Language)
Not intended to replace HTML!
XHTML does by providing better data description, …
SGML, HTML and XML
simplifies
Meta SGML XML
Language
defines
Usage of the
Language Web pages XML Data
Documents
HTML
• HyperText Markup Language
• It is not a programming language.
▫ Cannot be used to describe computations.
▫ Use to describe the general form and layout of
documents to be displayed by the browser.
• Compose of “Content” and “Controls”
Client-Side and Server-side
Programming
• Client-side code
▫ ECMAScript
JavaScript, JScript – Microsoft
▫ VBScript – Microsoft
▫ Embedded in <script> elements and execute in the browser,
provides immediate feedback to the user.
▫ Reduces the load on a server, reduces network traffic.
• Server-side code
▫ Execute on the server
▫ CGI/Perl, ASP, PHP, ColdFusion, JSP
▫ The code remains hidden from users, and browser independent.
• Can be combined with good results.
Client-side & Server-side
Technologies
Client-Side Server-Side
scripts
File stored
HTML Page
CSS stylesheet
References
• Internet and World Wide Web How to
Program – Deitel, Deitel and Nieto