Computer Science E-1. Understanding Computers and the Internet. Lecture 10: Website Development Wednesday, 29 November 2006

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

Lab 4 CSS CISC1600, Spring 2012

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Introduction to Web Technologies

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

Computer Science E-75 Building Dynamic Websites

Step 1- Creating a new XHTML Website (2points)

Dreamweaver: Portfolio Site

Three Ways to Use CSS:

Basics of Page Format

Basic CSS Lecture 17

Introduction to Web Development

Implementing a chat button on TECHNICAL PAPER

CSE 154 LECTURE 3: MORE CSS

Final Exam Study Guide

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

ITNP43: HTML Lecture 4

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

HTML Hyperlinks (Links)

Computer Science E-259

CSS: The Basics CISC 282 September 20, 2014

Web Structure and Style. MB2030 Section 2 Class 4

(from Chapter 5 & 25.6 of the text)

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

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

Publishing On the Web. Course Content. Objectives of Lecture 7 Dynamic Pages

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

CMPT 165 Advanced XHTML & CSS Part 3

Cascading style sheets, HTML, DOM and Javascript

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

DAY 4. Coding External Style Sheets

HyperText Markup Language (HTML)

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

Introduction to HTML5

XHTML & CSS CASCADING STYLE SHEETS

Outline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

Title: Dec 11 3:40 PM (1 of 11)

PRAjax PHP Reflected Ajax Developer Manual

Lecture B3 Style : Algorithmic Thinking. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

CSS stands for Cascading Style Sheets Styles define how to display HTML elements

ajax1.html 1/2 lectures/7/src/ ajax1.html 2/2 lectures/7/src/

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

A Balanced Introduction to Computer Science, 3/E

CSc 337 LECTURE 3: CSS

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CS134 Web Site Design & Development. Quiz1

CSS Scripting and Computer Environment - Lecture 09

CSC309 Tutorial CSS & XHTML

CSS Styles Quick Reference Guide

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

11 TREES DATA STRUCTURES AND ALGORITHMS IMPLEMENTATION & APPLICATIONS IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

singly and doubly linked lists, one- and two-ended arrays, and circular arrays.

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

TRAINING GUIDE. Rebranding Lucity Web

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

map1.html 1/1 lectures/8/src/

CSS Lecture 16 COMPSCI 111/111G SS 2018

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

Anatomy of an HTML document

AIM. 10 September

Using Dreamweaver CS6

jmaki Overview Sang Shin Java Technology Architect Sun Microsystems, Inc.

CSC 121 Computers and Scientific Thinking

Time: 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups as directed. Group A.

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Part A Short Answer (50 marks)

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

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

CASCADING STYLE SHEETS (CSS) BY: RIHAM ALSMARI, PNU. Lab 4

Multimedia for the Web: Creating Digital Excitement. Multimedia Element Text

Modify cmp.htm, contactme.htm and create scheduleme.htm

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS

In the early days of the Web, designers just had the original 91 HTML tags to work with.

COMP1000 Mid-Session Test 2017s1

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

How the Internet Works

Cascading Style Sheets

To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

Wireframe :: tistory wireframe tistory.

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

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

CSS for Styling CS380

CSS Cascading Style Sheets

Admin & Today s Agenda

Course Information. Instructor Todd Sproull Jolley 536 Office Hours by Appointment

Web Publishing Intermediate 2

ACSC 231 Internet Technologies

Problem Set 7: Website Development

Prasad V. Potluri Siddhartha Institute of Technology, Kanuru, Vijayawada. Semester end examination: 50 marks

Dynamic Select Option Menu Using Ajax And PHP. Wednesday, Mar 11, 2015

CSS means Cascading Style Sheets. It is used to style HTML documents.

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

A designers guide to creating & editing templates in EzPz

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

Transcription:

Computer Science E-1 Understanding Computers and the Internet Lecture 10: Website Development Wednesday, 29 November 2006 David J. Malan malan@post.harvard.edu 1

Agenda Webservers Structure Permissions Implementations Virtual Hosting Static Webpages XHTML Tags Attributes Elements CSS Well-Formedness Validity Dynamic Webpages SSIs DHTML AJAX CGI ASPs JSPs 2

Webservers 3

Static Webpages XHTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>hello, World!</title> </head> <body> Hello, World! </body> </html> Source from http://www.fas.harvard.edu/~cscie1/distribution/lectures/10/markup/hello.html. 4

Static Webpages XHTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>hello, World!</title> </head> <body bgcolor="#00ff00"> Hello, World! </body> </html> Source from http://www.fas.harvard.edu/~cscie1/distribution/lectures/10/markup/bgcolor.html. 5

Static Webpages XHTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>hello, World!</title> </head> <body> <div align="center"> <font color="blue" face="sans-serif" size="7"> Hello, World! </font> <br/> <font color="#0000ff" face="sans-serif" size="2"> from little ol' <a href="mailto:username@fas.harvard.edu">me</a> </font> </div> </body> </html> Source from http://www.fas.harvard.edu/~cscie1/distribution/lectures/10/markup/mailto.html. 6

Static Webpages XHTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>hello, World!</title> </head> <body> <div style="text-align: center; color: blue; font-family: sans-serif; font-size: 36pt;"> Hello, World! </div> <br/> <div style="text-align: center; color: blue; font-family: sans-serif; font-size: 10pt;"> from little ol' <a href="mailto:username@fas.harvard.edu">me</a> </div> </body> </html> Source from http://www.fas.harvard.edu/~cscie1/distribution/lectures/10/markup/style.html. 7

Static Webpages XHTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>hello, World!</title> <style type="text/css"> <!--.mystyle { text-align: center; color: blue; font-family: sans-serif; } a { text-decoration: none; font-weight: bold; color: blue } a:hover { text-decoration: underline; font-weight: bold; color: red } --> </style> </head> <body> <div class="mystyle" style="font-size: 36pt;"> Hello, World! </div> <br/> <div class="mystyle" style="font-size: 10pt;"> from little ol' <a href="mailto:username@fas.harvard.edu">me</a> </div> </body> </html> Source from http://www.fas.harvard.edu/~cscie1/distribution/lectures/10/markup/css.html. 8

Static Webpages Well-Formedness <foo bar="baz"/> 9

Static Webpages Validity 10

Dynamic Webpages SSIs <!--#config timefmt="%a, %B %d, %Y %r"--> <!--#echo var="last_modified"--> <!--#echo var="remote_addr"--> <!--#echo var="date_local"--> <!--#echo var="http_user_agent"--> <!--#include file="footer.html"--> Excerpted from http://www.fas.harvard.edu/~cscie1/distribution/lectures/10/markup/ssi.html. For a tutorial on the SSIs supported by Apache's webserver, see http://httpd.apache.org/docs/howto/ssi.html. 11

Dynamic Webpages DHTML XHTML + CSS + JavaScript 12

Dynamic Webpages AJAX JavaScript + XML 13

Dynamic Webpages CGI dispatcher.cgi Main entry point to E-1 site. Copyright (c) 2002 David Malan All rights reserved libraries # standard libraries use CGI ':standard'; # E-1 libraries use lib '/home/l/i/libe1/public_html/cgi-bin/lib'; use E1::Constants; use E1::Helpers; MAIN Main entry point for site MAIN: { # instantiate a CGI object, accessible by all subroutines local $cgi = new CGI; # process the request &E1::Helpers::processRequest($cgi, $E1::Constants::MENU); } exit(0); # EOF Source from http://www.fas.harvard.edu/~cscie1/cgi-bin/dispatcher.cgi. 14

Dynamic Webpages ASPs <%@ LANGUAGE = "VBScript" %> <html> <head> <title>my First ASP!</title> </head> <body> <% If Time >= #12:00 AM# And Time < #12:00 PM# Then %> Good morning! <% ElseIf Time >= #12:00 PM# And Time < #6:00 PM# Then %> Good afternoon! <% Else %> Good evening! <% End If %> </body> </html> 15

Dynamic Webpages JSPs <html> <head> <title>my First JSP!</title> </head> <body> <%@ page language="java" %> <% out.println("hello World"); %> </body> </html> 16

Computer Science E-1 Understanding Computers and the Internet Lecture 10: Website Development Wednesday, 29 November 2006 David J. Malan malan@post.harvard.edu 17