Setup and Environment

Similar documents
UFCEKG Lecture 2. Mashups N. H. N. D. de Silva (Slides adapted from Prakash Chatterjee, UWE)

Media Types. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents. Erik Wilde, UC Berkeley School of

introduction to XHTML

Global Servers. The new masters

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

Html basics Course Outline

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

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

HTML CS 4640 Programming Languages for Web Applications

Creating Web Pages. Getting Started

INTRODUCTION TO HTML5! HTML5 Page Structure!

Chapter 1 Introduction to HTML, XHTML, and CSS

HTML. Based mostly on

Announcements. Paper due this Wednesday

Web Architecture Review Sheet

Programmazione Web a.a. 2017/2018 HTML5

Uniform Resource Locators (URL)

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

11. HTML5 and Future Web Application

INTRODUCTION TO WEB USING HTML What is HTML?

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

Web Engineering (Lecture 01)

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

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

Introduction to Web Technologies

Introduction to Web Development

CSC Web Programming. Introduction to HTML

HTML is a mark-up language, in that it specifies the roles the different parts of the document are to play.

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

Course Overview. Week 1

Week 1 - Overview of HTML and Introduction to JavaScript

More about HTML. Digging in a little deeper

Web Development Course (PHP-MYSQL-HTML5.0)

Ampliación de Bases de Datos

Web Design and Application Development

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

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

HTML Overview. With an emphasis on XHTML

Scripting. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents

Certified HTML5 Developer VS-1029

HTML Hyper Text Markup Language

CS WEB TECHNOLOGY

Instructor s Notes Web Data Management Web Client/Server Concepts. Web Data Management Web Client/Server Concepts

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

CSC 121 Computers and Scientific Thinking

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

Hyper Text Markup Language HTML: A Tutorial

CS144 Notes: Web Standards

Bridges To Computing

Management Information Systems

Web Programming Paper Solution (Chapter wise)

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

INSTITUTE OF TECHNOLOGY AND ADVANCED LEARNING SCHOOL OF APPLIED TECHNOLOGY COURSE OUTLINE ACADEMIC YEAR 2012/2013

Web Programming Week 2 Semester Byron Fisher 2018

Objective % Select and utilize tools to design and develop websites.

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

Dreamweaver Primer. Using Dreamweaver to Create and Publish Simple Web Pages. Mark Branom, Stanford University, Continuing Studies June 2011

Web Development IB PRECISION EXAMS

Multimedia Content. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents. Erik Wilde, UC Berkeley School of

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

A Balanced Introduction to Computer Science, 3/E

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

HTML Overview formerly a Quick Review

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

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

Web development using PHP & MySQL with HTML5, CSS, JavaScript

I-5 Internet Applications

Student, Perfect Midterm Exam March 24, 2006 Exam ID: 3193 CS-081/Vickery Page 1 of 5

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

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

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

Chapter 2 Creating and Editing a Web Page

Contents. Topics. 01. WWW 02. WWW Documents 03. Web Service 04. Web Technologies. Management of Technology. C01-1. Documents

CISC 1400 Discrete Structures

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


Duke Library Website Preliminary Accessibility Assessment

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

Static Webpage Development

CIS 228 (Fall 2011) Exam 1, 9/27/11

c122jan2714.notebook January 27, 2014

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Introduction to Computers and Their Applications

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Developing a Basic Web Page

A PAtCHy server: developed by the Apache group formed 2/95 around by a number of people who provided patch files for NCSA httpd 1.3 by Rob McCool.

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

Using Dreamweaver CS3 to Create and Publish Simple Web Pages

Job Interview / New Job Learn the Buzzwords. Lab Assignment Login and Explore Key Systems. Buzzwords. Outline. Saddleback

UNIT I. A protocol is a precise set of rules defining how components communicate, the format of addresses, how data is split into packets

Introduction to WEB PROGRAMMING

Semantic Web Lecture Part 1. Prof. Do van Thanh

Chapter 12 Creating Web Pages

Hypertext Markup Language, or HTML, is a markup

Web Design. Basic Concepts

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

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

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

3. WWW and HTTP. Fig.3.1 Architecture of WWW

Transcription:

Setup and Environment Web Architecture and Information Management [./] Spring 2009 INFO 190-02 (CCN 42509) Erik Wilde, UC Berkeley School of Information [http://creativecommons.org/licenses/by/3.0/] This work is licensed under a CC Attribution 3.0 Unported License [http://creativecommons.org/licenses/by/3.0/] Contents Abstract Assignments 1 Web Server Configuration Web Servers File Handling Apache XAMPP Apache Configuration 2 HTML Basics Structured Documents 2.1 Elements HTML's Main Building Blocks Element Markup 2.2 Element Structures Element Nesting Element Names End Tags Overlapping Elements Element Markup Errors 2.3 Attributes Element Metadata Attribute Syntax Attribute Markup Errors Summary Contents 2 3 5 6 7 8 9 11 13 14 16 17 18 19 20 22 23 24 25

Abstract (2) Assignments (3) This lecture provides a hands-on overview of the various tools that are required to create and publish Web pages. This includes authoring a Web page, transferring the page onto your Web space on the Web server, and validating the Web page. For a more detailed look at the Web page in the context of the browser, the Firebug extension allows Firefox users to understand in detail how a Web page is structured and styled. 12 Assignments over the course of the semester first assignment was ungraded, the rest is graded all assignments have to be satisfactory, top 10 will be counted if you attend labs, you may skip one assignment Assignment grading is based on 0-5 points 0 means not turned in 1 means turned in but unsatisfactory 2 means the bare minimum 3 means ok but not great 4 means good job but not quite perfect 5 means everything solved perfectly

Web Server Configuration Web Servers (5) Web servers do more than just deliver files They receive a request for acting on a resource this may be a simple file retrieval (read file from disk, send over network) additional information is available from the request's header fields [Web Foundations (URI and HTTP); HTTP Header Fields (1)] the request URI may contain additional query information [Web Foundations (URI and HTTP); Query Information (1)] the request may transmit complex data (such as a form submission) Processing can mean anything, it is transparent for the client selection of a particular file processing/transformation of a file starting a process that creates a resource The result of processing yields a resource representation File Handling Web Server Configuration (6) Accessing files on your computer uses local programs program installation associates file types with a program multiple programs may be associated with the same file type programs usually compete to be the default association Accessing documents with a browser uses browser knowledge 1. some types are handled by the browser (HTML, GIF, JPEG, PNG, ) 2. some types are handled by browser plug-ins (Flash, ActiveX, ) 3. some types may be associated with external programs (PDF, ) 4. some types may not be know to the browser at all Program assocations work different locally and on the Web locally, a file is selected and the OS manages a list of programs on the Web, a link is clicked and the browser handles the content

Web Server Configuration Web Server Configuration Apache (7) XAMPP (8) Apache [http://httpd.apache.org/] is the most popular server on the Internet at least this can be said for a general-purpose servers more specialized scenarios (e.g., Google) need specialized servers Apache is open-source and available for various platforms Apache is the A in the popular LAMP [http://en.wikipedia.org /wiki/lamp_(software_bundle)] suite Linux as a free and open-source operating system Apache as the Web server processing incoming requests MySQL as the database for managing large amounts of data PHP as a simple language for server-side scripts (some people claim that the P stands for Perl) Many software packages can be easily installed in LAMP environments IMP [http://www.horde.org/imp/] allows you to set up Web-based email access mantis [http://www.mantisbt.org/] provides bug and issue tracking XAMPP [http://www.apachefriends.org/en/xampp.html] is a software installation package available for a variety of platforms (Windows, Linux, MacOS, Solaris) Apache [Apache (1)] as Web server MySQL as a database PHP and Perl as programming languages control panel for ease of use Why running a Web server on the local computer? browsing local files using HTTP testing server configurations locally testing server-based code locally running a local database and a Web-based interface for it XAMPP is not required but recommended for this course

Apache Configuration Web servers need some configuration do to their job Configuration controls various aspects of server behavior who am I? <VirtualHost 128.32.78.26:80> ServerAdmin webmaster@ischool.berkeley.edu ServerName ischool.berkeley.edu RedirectMatch permanent ^/~(.*)$ http://people.ischool.berkeley.edu/~$1 RedirectMatch permanent ^(.*)$ http://www.ischool.berkeley.edu$1 where to look for documents to serve Web Server Configuration (9) HTML Basics Structured Documents (11) Hypertext Markup Language (HTML) is the language of the Web Hypertext because the Web is a hypermedia system Markup because documents are encoded using text Language because HTML is used for communications Markup Languages are different from most file formats many computer formats are binary encoded and not just text markup allows structured documents to be encoded as just text Web data formats use markup as well as other encodings HTML and XML are markup languages JavaScript is also exchanged textually (but it's not markup) images and other multimedia content is encoded as binary files # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/var/www/html" <Directory /home/*/public_html> Options Indexes SymLinksIfOwnerMatch MultiViews +Includes AllowOverride All XBitHack on DirectoryIndex index.html index.htm index.php

Elements HTML's Main Building Blocks HTML pages have a header and a body the header contains information about the page the body contains the actual document content Elements are used to mark up structures of the HTML document block-level elements for paragraphs, lists, tables, inline elements for text structures (links, emphasis, ) elements with specific semantics (e.g., embedding images) HTML defines rules for how these elements can be combined additionally, HTML defines default layouts for these elements some elements also require special handling (e.g., images) (13) Element Markup Elements (14) Elements contain content for HTML structures the text of a paragraph the items of a list the content of a list item emphasized text with a list item's text Elements are marked up using tags start tags mark the start of an element: ul end tags mark the end of an element: /ul start and end tags must always match elements can never overlap, everything must be properly nested

Element Structures Element Nesting Elements can be nested to represent nested content everything in HTML is nested (contained in body) advanced Web pages often may not look like simple nested structures representing a pages logical structure is important (16) <ul> <li>unordered lists contain one or more items <li>each item <em>may contain <strong>markup</strong> </em> <ol> <li> such as ordered lists </ol> Element Names Elements may use lowercase or uppercase HTML treats names as case-insensitive XHTML treats names as case-sensitive in XHTML, everything has to be lowercase sticking to lowercase as a general rule is a good idea Element Structures (17) <UL> <LI>Unordered lists contain one or more items</li> <LI>Each item <EM>may contain <STRONG>markup</STRONG> </EM></LI> <LI>items can also contain further block-level content <OL> <LI> such as ordered lists</li> </OL> </LI> </UL>

Element Structures Element Structures End Tags (18) Overlapping Elements (19) Elements can be closed explicitly or implicitly (if allowed) <ul> <li>unordered lists contain one or more items <li>each item <em>may contain <strong>markup</strong> </em> <ol> <li> such as ordered lists </ol> <hr> <!ELEMENT LI - O (%flow;)* -- list item --> <!ATTLIST LI %attrs; -- %coreattrs, %i18n, %events -- > HTML Elements can never overlap any overlapping markup has to be interpreted somehow depending on the browser, different things may happen <h2>overlapping elements</h2> <ul> <li>unordered lists contain one or more items <li>each item <em>may contain <strong>markup</em> </strong> <ol> <li> such as ordered lists </ol> <!ELEMENT HR - O EMPTY -- horizontal rule --> <!ATTLIST HR %attrs; -- %coreattrs, %i18n, %events -- >

Element Markup Errors Element Structures HTML Markup allows only certain variations whitespace after the element name is allowed whitespace before the element name is not allowed the markup characters ( < > / ) always must be used properly (20) <ul> < li>unordered lists contain one or more items</ li> <li >Each item <em>may contain <strong>markup</strong> </em></li > <ol <li> such as ordered lists <ol> Attributes Element Metadata (22) Elements may need additional information usually not considered content, but data about data (thus, metadata) Elements and attributes represent HTML's full capabilities Some attributes can be used on many different elements id can be used to assign a unique ID to an element class and style are used to associate styling with elements title assigns a human-readable title to an element lang [http://www.w3.org/tr/html4/struct/dirlang.html#h-8.1] specifies the language of an element's content on* associate various events with an element Some attribute are specific to a certain element href [http://www.w3.org/tr/html4/struct/links.html#adef-href] specifies the target of an a hyperlink src specifies the source URI for an img type [http://www.w3.org/tr/html4/interact/forms.html#adef-type-input] specifies the type a form input

Attributes Attributes Attribute Syntax (23) Attribute Markup Errors (24) Attributes are specified in an element's start tag they have a name and can occur at most once per element they follow a simple name=value syntax values must be quoted (with some exceptions), using single or double quotes <h2 id="attributes">attributes specify element metadata</h2> <ul type="square"> <li>unordered lists contain one or more items <li>each item <em>may contain <strong title="'quotes' in value">markup</strong></em> <ol start='42'> <li> such as ordered lists </ol> <hr> <p><a href="http://validator.w3.org/check /referer">validate page</a> with the <a href="http://validator.w3.org/">w3c Validator</a></p> Attributes have to respect a number of limitations they cannot be repeated on the same element some attributes have restricted value spaces quotes within values must be quoted with the other type of quotes quotes around values must be properly paired <h2 id="attributes" id="error">attributes markup syntax errors</h2> <ul type="diamond"> <li>unordered lists contain one or more items <li>each item <em>may contain <strong title=''quotes' in value'>markup</strong></em> <ol start='42"> <li> such as ordered lists </ol>

Summary (25) Web Servers are not required to serve HTML pages local copies can be handled like regular documents running a local Web server makes Web development easier HTML pages use markup to represent document structures Markup should be validated before it is published on the Web Markup on the Web can be inspected as source and within the browser