Introduction to Web Technologies



Similar documents
Contents. Downloading the Data Files Centering Page Elements... 6

HTML and CSS. Elliot Davies. April 10th,

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

What is a Web Browser? Web Site Functionality. A client program that uses HTTP to communicate with web servers.

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Introduction to Web Development

Oct 15, Internet : the vast collection of interconnected networks that all use the TCP/IP protocols

WEB DEVELOPMENT IA & IB (893 & 894)

Internet Technologies_1. Doc. Ing. František Huňka, CSc.

IT3503 Web Development Techniques (Optional)

CREATING WEB PAGES USING HTML INTRODUCTION

IT3504: Web Development Techniques (Optional)

The Web as a Client-Server System; TCP/IP intro!

How To Use Dreamweaver With Your Computer Or Your Computer (Or Your Computer) Or Your Phone Or Tablet (Or A Computer)

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Welcome to CSE 330 Crea0ve Progamming and Rapid Prototyping. Course Informa0on

Introduction to Web Technology. Content of the course. What is the Internet? Diana Inkpen

CS134 Web Site Design & Development. Quiz1

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Short notes on webpage programming languages

ICT 6012: Web Programming

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

Web Authoring CSS. Module Descriptor

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Fast track to HTML & CSS 101 (Web Design)

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Lesson Overview. Getting Started. The Internet WWW

Connecting with Computer Science, 2e. Chapter 5 The Internet

Web Design and Development ACS-1809

Introduction to web development and JavaScript

CSCI110: Examination information.

World Wide Web. Before WWW

Chapter 1. Introduction to web development

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

10CS73:Web Programming

Dreamweaver Tutorial #1

Getting Started with KompoZer

Web Development I & II*

The World Wide Web: History

Pizza SEO: Effective Web. Effective Web Audit. Effective Web Audit. Copyright Pizza SEO Ltd.

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

By : Khalid Alfalqi Department of Computer Science, Umm Al-Qura University

Basic Internet programming Formalities. Hands-on tools for internet programming

Chapter 1 Introduction to web development and PHP

Lesson Review Answers

Course: CSC 224 Internet Technology I (2 credits Compulsory)

What is HTML? a)hyper Text Marking Language b) Hyper Text Machine Language c)hyper Text Middle Language d)hyper Text Markup Language

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

4.2 Understand Microsoft ASP.NET Web Application Development

Simply download Beepip from and run the file when it arrives at your computer.

Interactive Data Visualization for the Web Scott Murray

Web Programming. Robert M. Dondero, Ph.D. Princeton University


Web Developer Jr - Newbie Course

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Designing HTML s for Use in the Advanced Editor

SWE 444 Internet and Web Application Development. Introduction to Web Technology. Dr. Ahmed Youssef. Internet

Website Development Komodo Editor and HTML Intro

Cascading Style Sheets

Modern Web Development From Angle Brackets to Web Sockets

Release: 1. ICAWEB414A Design simple web page layouts

1. When will an IP process drop a datagram? 2. When will an IP process fragment a datagram? 3. When will a TCP process drop a segment?

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Chapter 16 Exercises and Answers

Introduction to XHTML. 2010, Robert K. Moniot 1

Internet. Internet is the network of networks i.e. a global network which make WWW (world wide web) Seema Sirpal Delhi University Computer Centre

The Web Web page Links 16-3

How To Write A Web Page In Html

Contents. Introduction Downloading the Data Files... 2

Network Technologies

Computer Networks. Lecture 7: Application layer: FTP and HTTP. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

ITNP43: HTML Lecture 4

Dreamweaver CS5. Module 2: Website Modification

Installation Guide For Choic Enterprise Edition

Fachgebiet Technische Informatik, Joachim Zumbrägel

CA106 Web Design. Dr. Dónal Fitzpatrick, School of Computing Room l2.48, Extension 8929,

Guide to B2B marketing. Part Three: Building great s

Enduring Understandings: Web Page Design is a skill that grows and develops throughout the careful planning and study of software and design.

Web Authoring. Module Descriptor

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

HTML, CSS, XML, and XSL

Advanced Web Design. Zac Van Note.

Learnem.com. Web Development Course Series. Quickly Learn. Web Design Using HTML. By: Siamak Sarmady

Saucon Valley School District Planned Course of Study

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

HTML Fundamentals IN THIS APPENDIX

Learnem.com. Web Development Course Series. Learn em. HTML Web Design in 7 days! By: Siamak Sarmady

Dreamweaver. Introduction to Editing Web Pages

Network: several computers who can communicate. bus. Main example: Ethernet (1980 today: coaxial cable, twisted pair, 10Mb 1000Gb).

Lecture 2. Internet: who talks with whom?

Web layout guidelines for daughter sites of Scotland s Environment

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

IE Class Web Design Curriculum

Transcription:

Introduction to Web Technologies Tara Murphy 17th February, 2011

The Internet CGI Web services HTML and CSS 2 The Internet is a network of networks ˆ The Internet is the descendant of ARPANET (Advanced Research Projects Agency Network) developed for the US DoD ˆ The initial goal was to research the possibility of remote communication between machines ˆ Critical step was development of the TCP/IP protocol (1977) TCP Transmission Control Protocol IP Internet Protocol ˆ Vinton Cerf s postcard analogy for TCP/IP: ˆ A document is broken up into postcard-sized chunks (packets) ˆ Each postcard has its own address and sequence number ˆ Each postcard travels independently to the final destination ˆ The document is reconstructed by ordering the postcards ˆ If one is missing, the recipient can request for it to be resent ˆ If a post-office is closed the postcard is sent a different way ˆ Congestion and service interruptions do not stop transmission

The Internet CGI Web services HTML and CSS 3 The first connection between two hosts Image Ref: http://www.computerhistory.org

The Internet CGI Web services HTML and CSS 4 The Internet grew extremely rapidly! 450 400 Number of hosts (millions) 350 300 250 200 150 100 50 0 Aug-81 Aug-82 Aug-83 Aug-84 Aug-85 Aug-86 Aug-87 Aug-88 Aug-89 Aug-90 Aug-91 Aug-92 Aug-93 Aug-94 Aug-95 Date Data Ref: http://www.isc.org/ Aug-96 Aug-97 Aug-98 Aug-99 Aug-00 Aug-01 Aug-02 Aug-03 Aug-04 Aug-05

The Internet CGI Web services HTML and CSS 5 The World Wide Web operates over the Internet ˆ We often use the phrases the WWW and the Internet interchangeably, however they are different entities ˆ The WWW is a service that operates over the internet ˆ The concept of the WWW combines 4 ideas: ˆ hypertext ˆ resource identifiers (URI, URL) ˆ client-server model of computing (web servers/browsers) ˆ markup language (HTML) ˆ These were the brainchild of Tim Berners-Lee from CERN who released his first browser in 1991 ˆ All clients and servers in the WWW speak the language of HTTP (HyperText Transfer Protocol)

The Internet CGI Web services HTML and CSS 6 We can generate content dynamically ˆ There are several benefits to dynamically generating content: ˆ We don t have to store loads of pages ˆ The content is completely up-to-date ˆ We can respond to/interact with the user ˆ Every site that involves a transaction (eg. Google, Amazon, NED) is generating dynamic content

The Internet CGI Web services HTML and CSS 7 Web servers serve content on request across the network ˆ The web server is responsible for: ˆ accepting requests for content described by the url ˆ checking whether access is permitted and requesting authentication if necessary ˆ sending (or serving) the content back to the browser ˆ A web server is the machine and the process serving content ˆ The most popular web server software now is: ˆ Apache is an open source web server (Unix/Mac OS X/Win) ˆ Microsoft IIS is the main Windows web server (Win only)

The Internet CGI Web services HTML and CSS 8 Browsers and servers communicate via http GET /index.html HTTP/1.0 Web Browser Web Server HTTP/1.1 200 OK ˆ HyperText Transfer Protocol (http) is the standard protocol for transferring web content ˆ The server listens on port 80 waiting for connections ˆ The web browser connects to the server, and sends a request ˆ The server responds with an error code or the web content

The Internet CGI Web services HTML and CSS 9 The server runs a program to generate the web content ˆ This program gets run every time the given url is requested ˆ The server passes the http request details to the program ˆ The program returns the web content or an error code ˆ Each web server interacts with the programs differently: ˆ Apache uses the Common Gateway Interface (cgi) ˆ Microsoft IIS uses Active Server Pages (asp)

The Internet CGI Web services HTML and CSS 10 Browsing the web uses the client-server model ˆ The client-server model involves networked interaction between: ˆ a client in this case the web browser ˆ a server in this case the web server ˆ Dynamic content is generated on the server side ˆ The advantages of server side are: ˆ We are not running programs on low-powered client computers ˆ Typically the data you want to present is on server side ˆ The client will restrict program functionality for security ˆ The disadvantage of server side are: ˆ The server requires lots of processing power particularly when there are many simultaneous clients ˆ The client side is often quite powerful anyway ˆ Lots of information may need to be passed back and forth

The Internet CGI Web services HTML and CSS 11 The CGI client-server interaction HTML Server CGI Script Query Client Browser

The Internet CGI Web services HTML and CSS 12 A web service is an application accessible over the Internet ˆ Web services emerged amidst a lot of hype ˆ A web service is a network accessible interface to application functionality, built using standard internet technologies. ˆ Powerful new way to build software systems from distributed components ˆ In other words, if an application can be accessed over a network using protocols such as HTTP, XML, SMTP etc. then it is a web service.

The Internet CGI Web services HTML and CSS 13 Web services use the client-server model ˆ Recall the CGI client-server model ˆ In the case of a user looking at a webpage ˆ the client is the web browser ˆ the server is the web server (and programs running on it) ˆ On the WWW information is always returned to the client in the form of a webpage (HTML). ˆ The key to web services is that they return information in a programmatic form (ie: they can return a string, float, array, object, just like an function). ˆ In the final stage of a chain of web services, the information may be presented to the user e.g. a webpage may be generated.

The Internet CGI Web services HTML and CSS 14 The Web service-client interaction Server Web Service Result Query Client/ Server CGI HTML Query Client Browser

The Internet CGI Web services HTML and CSS 15 The Web service-client interaction Result HTML Server Web Service Query Client/ Server CGI Query Client Browser Result Query Server Web Service

The Internet CGI Web services HTML and CSS 16 Example web services ˆ Stock price quotes ˆ Amazon web services ˆ provides access to the entire Amazon database of books/prices ˆ you could aggregate prices for multiple online bookshops ˆ Google web services ˆ originally just access to Google search engine results ˆ people used to do this manually anyway screen scraping ˆ now extended to other services, e.g. Google maps ˆ And lots of astronomy/vo applications ˆ Andreas will show some examples this afternoon

The Internet CGI Web services HTML and CSS 17 The HyperText Markup Language ˆ HTML marks up the structure of a document for publishing on the WWW ˆ It tells the browser how to interpret and display the document ˆ Different browsers interpret things differently (!) ˆ There are two main standards: HTML 4(5) and XHTML 1.0 ˆ These are developed by W3C W3C the World Wide Web Consortium ˆ All HTML documents should declare which standard they are using

The Internet CGI Web services HTML and CSS 18 Hello world! 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/tr/html4/strict.dtd"> 3 <HTML> 4 <HEAD> 5 <TITLE>My first HTML document</title> 6 </HEAD> 7 <BODY> 8 <P>Hello world! 9 </BODY> 10 </HTML>

The Internet CGI Web services HTML and CSS 19 Hello world!

The Internet CGI Web services HTML and CSS 20 The basic unit of HTML is the element ˆ HTML includes element types to represent paragraphs, hypertext links, lists, tables, images, etc ˆ Each element consists of three parts 1 start tag e.g. <title> 2 content e.g. my homepage 3 end tag e.g. </title> ˆ A tag is an element name enclosed in angle brackets ˆ Some elements have no content e.g. <br> or <hr> ˆ Elements may have associated properties (attributes) ˆ Attributes and their values appear inside the start tag e.g. <div id="section1">

The Internet CGI Web services HTML and CSS 21 You only need a small set of elements to create a website Element: start/end tags Description <html> </html> Starts and ends a HTML document <title> </title> Text that appears in the title bar <head> </head> Information about the document <body> </body> The main part of the document <p> </p> A paragraph <hr /> A horizontal line <br /> A line break <a href="url"> </a> A link <img src="url" /> An image <!-- comment --> Comments that are not displayed

The Internet CGI Web services HTML and CSS 22 You only need a small set of elements to create a website Element: start/end tags <div> </div> <span> </span> <ul> </ul> <ol> </ol> <li> </li> <table> </table> <tr> </tr> <td> </td> <pre> </pre> Description A section in the document An inline section in a document An unordered list (bullet points) An ordered list A list item Encloses a table A row in a table A cell within a row Enclosed text that stays in its raw format

The Internet CGI Web services HTML and CSS 23 CSS was introduced into HTML 4.0 to solve a problem ˆ We have focused on the structural aspects of HTML ˆ In fact that is what HTML was originally designed for ˆ <table> = This is a table ˆ <p> = This is a paragraph ˆ Layout was the job of the browser ˆ As the WWW exploded, more people started writing documents ˆ The two major browsers (Internet Explorer and Netscape) added new HTML tags and attributes to the original HTML specification e.g. <font> ˆ It became hard to separate structure and presentation

The Internet CGI Web services HTML and CSS 24 Formatting before CSS was inefficient ˆ Before CSS all formatting had to be included as attributes in HTML tags 1 <font face="verdana, Arial" size="+1" color="blue"> 2 Hello, World! 3 </font> ˆ There are several disadvantages to this way of doing things ˆ Information occurs in many locations redundancy errors ˆ Updating multiple occurrences of information is time-consuming ˆ Formatting information is hard-coded in HTML document ˆ HTML elements can describe format/presentation and content/structure ˆ Other formatting tags you might be familiar with a <b> (bold), <i> (italics)... we do not recommend using these

The Internet CGI Web services HTML and CSS 25 Hello World! the CSS version ˆ To reproduce the previous HTML using CSS we need two files 1 A HTML page (e.g. mypage.html) containing this 1 <head> 2 <link href="css/mystyle.css" rel="stylesheet" 3 type="text/css" /> 4 </head> 5 <body> 6 <p>hello, World!</p> 7 </body> 2 An accompanying style sheet file (e.g. mystyle.css) 1 p { 2 color: blue; 3 font-size: small; 4 font-family: Verdana, Arial, sans-serif; 5 }

The Internet CGI Web services HTML and CSS 26 HTML and CSS should be validated ˆ The W3C site provides tools for validating your website ˆ they check what standard you claim to be using ˆ then check all the syntax in your document complies with that standard ˆ The validators are free and easy to use, so there is no excuse! ˆ http://validator.w3.org/ ˆ http://jigsaw.w3.org/css-validator/

The Internet CGI Web services HTML and CSS 27 References ˆ http://www.computerhistory.org ˆ http://www.anu.edu.au/people/roger.clarke/ii/ OzIHist.html ˆ HTML: http://www.w3.org/markup/ ˆ HTML: http://www.w3schools.com/html/ ˆ XHTML: http://www.w3.org/markup/2004/xhtml-faq ˆ XHTML: http://www.w3schools.com/xhtml/xhtml html.asp ˆ CSS: http://www.w3.org/style/css/ ˆ CSS: http://www.csszengarden.com/