Introduction to Web Technologies

Similar documents
CS144 Notes: Web Standards

Html basics Course Outline

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

CSC 121 Computers and Scientific Thinking

Introduction to WEB PROGRAMMING

LING 408/508: Computational Techniques for Linguists. Lecture 14

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

A Balanced Introduction to Computer Science, 3/E

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

c122jan2714.notebook January 27, 2014

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

HyperText Markup Language (HTML)

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

Basic Web Pages with XHTML (and a bit of CSS) CSE 190 M (Web Programming), Spring 2008 University of Washington Reading: Chapter 1, sections

Programmazione Web a.a. 2017/2018 HTML5

Hyper Text Markup Language HTML: A Tutorial

HTML+ CSS PRINCIPLES. Getting started with web design the right way

INTRODUCTION TO HTML5! HTML5 Page Structure!

Web Publishing Basics I

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

ITNP43: HTML Lecture 4

HTML. HTML Evolution

Web Design and Development ACS-1809

Outline. Internet and World Wide Web. History of the Internet. What is the Internet? How Does Data Travel Through the Internet?

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

This document provides a concise, introductory lesson in HTML formatting.

CS WEB TECHNOLOGY

Web Development and HTML. Shan-Hung Wu CS, NTHU

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

ICT IGCSE Practical Revision Presentation Web Authoring

COPYRIGHTED MATERIAL. The Basics of HTML. What Is the World Wide Web?

FOR MORE PAPERS LOGON TO

Course Overview. Week 1

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Creating A Web Page. Computer Concepts I and II. Sue Norris

Hypertext Markup Language, or HTML, is a markup

Web Technology. Assignment 3. Notes: This assignment is individual assignment, every student should complete it by himself.

Web Design and HTML. Web Page vs Web Site. Navigation. Links. A web page is a single page viewable using web browser. A web site is a set of web pages

HTML. Hypertext Markup Language. Code used to create web pages

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

(1) I (2) S (3) P allow subscribers to connect to the (4) often provide basic services such as (5) (6)

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 3 Test Bank

Three Ways to Use CSS:

Chapter 2. Self-test exercises

Creating Forms. Starting the Page. another way of applying a template to a page.

Full file at

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Introduction to Computers and Their Applications

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

HTML and CSS COURSE SYLLABUS

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

WML2.0 TUTORIAL. The XHTML Basic defined by the W3C is a proper subset of XHTML, which is a reformulation of HTML in XML.

A Brief Introduction to HTML

Document Object Model. Overview

History of the Internet. The Internet - A Huge Virtual Network. Global Information Infrastructure. Client Server Network Connectivity

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

HTML: The Basics & Block Elements

Chapter 2: Technology Infrastructure: The Internet and the World Wide Web

HTTP & Websites. Web Browsers. Web Servers vs. Web sites. World Wide Web. Internet Explorer. Surfing the World Wide Web. Part 4. The World Wide Web

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

2. Write style rules for how you d like certain elements to look.

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Creating Web Pages. Getting Started

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

HTML CS 4640 Programming Languages for Web Applications

CSS: The Basics CISC 282 September 20, 2014

Global Servers. The new masters

Creating and Building Websites

HTML and CSS: An Introduction

HTML: The Basics & Block Elements

Objectives. Introduction to HTML. Objectives. Objectives

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

Web and Apps 1) HTML - CSS

Semantic Web Lecture Part 1. Prof. Do van Thanh

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

ICT IGCSE Practical Revision Presentation Web Authoring

XHTML & CSS CASCADING STYLE SHEETS

More about HTML. Digging in a little deeper

HTML & CSS. Lesson 1: HTML Basics Lesson 2: Adding Tables Lesson 3: Intro to CSS Lesson 4: CSS in more detail Lesson 5: Review

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

Part 1: HTML Language HyperText Make-up Language

Developing a Basic Web Page

The Web. Session 4 INST 301 Introduction to Information Science

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

The Nature of the Web

introduction to XHTML

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

Beginning HTML. A tag is a command written between angle brackets (the less than and greater than symbols). Ex. <html>

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Transcription:

Introduction to Web Technologies James Curran and Tara Murphy 16th April, 2009

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 technolgies. ˆ 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 ˆ Chris, Simon and Ray will/have covered some examples

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 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" s i z e ="+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" r e l ="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/