Mid-Term Review Pat Morin COMP 2405.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Cascading Style Sheets
Today CSS HTML A project.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Webpage design for researchers Dr Jim Briggs 1.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
1 Introduction to HTML Joshua S. Simon Collective Technologies.
Sheet 1XML Technology in E-Commerce 2001Lecture 1 XML Technology in E-Commerce Lecture 1 WWW, HTML, CSS, XML, Meta-modeling.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 3.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
HTML: Hyptertext Markup Language Doman’s Sections.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CSS: Cascading Style Sheets Part II. Style Syntax.
COMP2405 Review Pat Morin COMP Outline Web technologies and types of applications – Web sites (HTTP, HTML, CSS, CRAP) – Server-side scripted (CGI,
National College of Science & Information Technology.
The Common Gateway Interface (CGI) Pat Morin COMP2405.
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Review 1 csc242 – web programming.
Cascading Style Sheets
Working with Cascading Style Sheets
HTML & CSS Jan Janoušek.
DHTML.
HTML CS 4640 Programming Languages for Web Applications
Chapter 8 Introduction to HTML and Applets
Objective % Select and utilize tools to design and develop websites.
CGS 3066: Lecture 2 Web Development and HTML5
WWW and HTTP King Fahd University of Petroleum & Minerals
The Hypertext Transfer Protocol
Webpage layout using CSS
Objective % Select and utilize tools to design and develop websites.
HTML MULTIPLE CHOICE QUESTION
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Styles and the Box Model
Chapter 27 WWW and HTTP.
DynamicHTML Cascading Style Sheet Internet Technology.
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
CGS 3066: Lecture 2 Web Development and HTML5
Static and Dynamic Web Pages
DynamicHTML Cascading Style Sheet Internet Technology.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
The Internet 10/27/11 XHTML Forms
Cascading Style Sheets
Cascading Style Sheets
Lesson 2: HTML5 Coding.
HTML CS 4640 Programming Languages for Web Applications
CGS 3066: Web Programming and Design Fall 2019
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Mid-Term Review Pat Morin COMP 2405

Format 1 h 10 minutes 58 multiple-choice questions Scantron Bring a pencil and eraser 2 Rooms Last Names A-M : Here Last Names N-Z : UC 180 (Unicenter)

Main Topics History of the Internet HTTP – How data is transferred HTML – What format the data is in CRAP – What makes the data look nice CSS – How to make the data look nice CGI – How to generate the data dynamically (on the server) Perl – A programming language that's convenient for handling string data PHP (a few easy questions)

History of the Internet Origins of the Internet Licklider, Kleinrock, Roberts Late 1960s: ARPANET developed by DARPA Internet Timeline 1970s: Email and newsgroups, emoticons 1980s: DNS, FTP, the Morris Worm 1991: Tim Berners-Lee, HTTP and HTML 1996: Sun Microsystems, Java, applets 1995: Netscape Communications, LiveScript, renamed JavaScript 2000s: Worms, viruses, phishing, blogs

The Hypertext Transfer Protocol (HTTP) Initial version created by Tim Berners-Lee Current version: HTTP 1.1 Typical HTTP transaction client open connection to server client sends request to server server sends reply client and server close connection

HTTP Messages HTTP request types GET, HEAD, PUT, POST, OPTIONS The HTTP request format: Header, blank line, data HTTP response codes 200 (OK), 404 (NOT FOUND), 403 (FORBIDDEN) HTTP response format Common header fields Content-type, Content-length, User-Agent

The Hypertext Markup Language (HTML) Created by Tim Berners-Lee and Robert Caillau at CERN in 1991 Comes in many different versions from 1.0 up to 4.01 and XHTML 1.0 and 1.1 The DOCTYPE tag is used to indicate which version of the HTML the document is written in HTML documents have three parts DOCTYPE tag HEAD tag BODY tag

The HEAD Tag There is only one HEAD tag per document Contains information about the document: TITLE tag Metadata CSS information (included or an external reference to) Script information

The BODY Tag Is a container for the body (contents) of the document Any body text (cdata) must be included in some other kind of tag Logical Markup Tags: P, H1, H2, Hi, Q, BLOCKQUOTE, CITE, ADDRESS, INS, DEL, KBD, VAR, SAMP, PRE Lists and Tables OL, UL, DL, LI, DT, DD TABLE, TR, TH, TD The A tag As a source or as a target

Principles of Graphic Design Contrast Things that are different should be very different Repetition Consistent use of elements and styles Alignment Our eyes like things to be aligned and evenly spaced Proximity Use distance and closeness to group together logically related items and separate unrelated itemsj

Cascading Style Sheets (CSS) Purpose: To separate visual design (CSS) from logical structure (HTML) Advantages and disadvantages Three ways to use CSS External style sheets Inline style sheets Inline style information (usually not a good idea) The CSS naming mechanisms Tags The CLASS attribute The ID attribute

CSS Continued Block (DIV) versus inline (SPAN) elements CSS length units %, em, ex, px, in, cm, mm, pt CSS colors rgb(255,128,11), #ff800b CSS font properties font-family, font-size, font-style, font-weight CSS text properties text-align, text-transform, text-decoration Special handling of the A tag A:link, A:hover, A:visited

Layout with CSS Block-level elements in HTML The display property inline or block The position property static, relative, or absolute The top, left, right, bottom, properties specify offsets from some existing thing (containing box or current location) The CSS box model From the outside in: margin, border, padding, content

The Common Gateway Interface (CGI) A simple interface that allows a web server to respond to a request by calling a program Input is passed to the program by environment variables and/or stdin Programs can be written in any programming language In Perl, we use the cgi-lib.pl module to hide the CGI interface Security is a critical concern Program should check all input for validity before using it Program should never execute anything supplied as input

Perl Perl is a programming language that has no special relationship to CGI or the web Scalar variables Numbers, strings, and references prefixed with $ Arrays Indexed by 0,...,n-1 prefixed with @ Hashes indexed by scalar variables (keys) prefixed with %

Perl (Continued) By default, Perl variables are global Use my to declare variables local to the current block Perl is context-sensitive The same symbol can represent two different operators depending on the context in which it appears See examples in the notes ( , ) Perl references are absolutely essential for making complicated data structures for passing hashes as parameters to subroutines Perl subroutines are just weird no named parameters All parameters are passed as a single array named @_

Perl Regular Expressions The =~ operator is used in conjunction with regular expression operators // and s/// $myString =~ /regexp/ Components of a regular expression Alternations: | Character classes: [] and named classes \s, \d, \w Range operators: *, +, ?, {n}, {n,m}, {,m} Special characters ^ and $ RE return values Can be made to return a boolean value or an array (using brackets) Useful for breaking a string into several parts

Substitutions in Regular Expressions The substitution operator s/// allows for substitutions in regular expressions s/pattern/replacement/ The special variables $1, $2, $3, etc can be used in the replacement portion

Mid-Term Format A bunch of multiple (5) choice questions to be completed on a scantron form Bring a pencil and eraser Keep this format in mind when studying Important to understand code Not so important to be able to write code

Format 1 h 10 minutes 58 multiple-choice questions Scantron Bring a pencil and eraser 2 Rooms Last Names A-M : Here Last Names N-Z : UC 180 (Unicenter)