Web Development 1 A4 Project Description Web Architecture

Similar documents
Website Planning Checklist

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

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Introduction to XHTML. 2010, Robert K. Moniot 1

Accessibility in e-learning. Accessible Content Authoring Practices

HTML Forms. Pat Morin COMP 2405

Website Login Integration

Introduction to Web Design Curriculum Sample

ICE: HTML, CSS, and Validation

HTML Tables. IT 3203 Introduction to Web Development

Selectors in Action LESSON 3

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

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

HTML Form Widgets. Review: HTML Forms. Review: CGI Programs

ITNP43: HTML Lecture 4

JavaScript Basics & HTML DOM. Sang Shin Java Technology Architect Sun Microsystems, Inc. sang.shin@sun.com

Web Design and Databases WD: Class 7: HTML and CSS Part 3

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

Further web design: HTML forms

CIS 467/602-01: Data Visualization

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Programming the Web 06CS73 SAMPLE QUESTIONS

HTML Forms and CONTROLS

Caldes CM12: Content Management Software Introduction v1.9

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Outline of CSS: Cascading Style Sheets

Making Web Application using Tizen Web UI Framework. Koeun Choi

Style & Layout in the web: CSS and Bootstrap

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Internet Technologies

Script Handbook for Interactive Scientific Website Building

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

HTML TIPS FOR DESIGNING

Creating HTML authored webpages using a text editor

CS412 Interactive Lab Creating a Simple Web Form

How to Properly Compose HTML Code : 1

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Cascading Style Sheets (CSS)

jquery Tutorial for Beginners: Nothing But the Goods

Making Content Editable. Create re-usable templates with total control over the sections you can (and more importantly can't) change.

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

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

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

Campaign Guidelines and Best Practices

Fast track to HTML & CSS 101 (Web Design)

WHITEPAPER. Skinning Guide. Let s chat Velaro info@velaro.com by Velaro

Lesson Review Answers

JavaScript and Dreamweaver Examples

Web Design I. Spring 2009 Kevin Cole Gallaudet University

07 Forms. 1 About Forms. 2 The FORM Tag. 1.1 Form Handlers

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

Interspire Website Publisher Developer Documentation. Template Customization Guide

Web Design & Development - Tutorial 04

Fortis Theme. User Guide. v Magento theme by Infortis. Copyright 2012 Infortis

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

<script type="text/javascript"> var _gaq = _gaq []; _gaq.push(['_setaccount', 'UA ']); _gaq.push(['_trackpageview']);

Yandex.Widgets Quick start

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Designing HTML s for Use in the Advanced Editor

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Short notes on webpage programming languages

Web Programming with XHTML

c. Write a JavaScript statement to print out as an alert box the value of the third Radio button (whether or not selected) in the second form.

ICT 6012: Web Programming

Web Design and Development ACS Chapter 13. Using Forms 11/30/2015 1

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

How to code, test, and validate a web page

MAGENTO THEME SHOE STORE

HTML, CSS, XML, and XSL

Umbraco v4 Editors Manual

The purpose of jquery is to make it much easier to use JavaScript on your website.

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Fortigate SSL VPN 4 With PINsafe Installation Notes

In order for the form to process and send correctly the follow objects must be in the form tag.

Advanced Drupal Features and Techniques

Using Adobe Dreamweaver CS4 (10.0)

Create Webpages using HTML and CSS

CHAPTER 10. When you complete this chapter, you will be able to:

Web Design and Development ACS Chapter 9. Page Structure

XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

By Glenn Fleishman. WebSpy. Form and function

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

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

Creative Guidelines for s

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

Using an external style sheet with Dreamweaver (CS6)

Coding HTML Tips, Tricks and Best Practices

Web Design with CSS and CSS3. Dr. Jan Stelovsky

oncourse web design handbook Aristedes Maniatis Charlotte Tanner

Transcription:

Web Development 1 Introduction to A4, Architecture, Core Technologies A4 Project Description 2 Web Architecture 3

Web Service Web Service Web Service Browser Javascript Database Javascript Other Stuff: Load balancing Security Etc. Framework Web Server Static Pages Programs CSS Core Technologies HTML CSS 5 Almost Minimal HTML5 Document <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <title> </title> <link href="css/some-stylesheet.css rel="stylesheet"/> <script src="scripts/some-script.js ></script> </head> <body> <!-- page content (this is an HTML comment, by the way) --> </body> </html> 6

Good Tags to Know <h1> </h1> <p> </p> Headings (also h2 h6) Paragraphs <a href= > </a> Anchor to reference another document; a hyperlink. <ul><li> </li> <li> </li></ul> <img src= alt= height= px width= px /> <table> <tr><td> </td><td> </td> <tr><td> </td><td> </td> </table> <div> </div> <span> </span> Lists. Use <ul> for unordered lists and <ol> for ordered lists. Images A 2 x 2 table. Related tags include <thead>, <tbody>, and <tfoot> to define headers, footers, and the body. <th> renders cell titles. Apply CSS to a section of the document Apply CSS to a span of characters br, hr, code, pre, dl/dt/dd 8 Tag Attributes! Typical tags: - <a href="http://www.lipsum.com">lorem ipsum</a> - <img id="cicero" src="cicero.jpg" alt="cicero" />! What other attributes are useful? 9

Core Attributes: Available for most tags Attribute id class style title Meaning Assigns a unique identifier to the element. Assigns one or more classifications to the element. Apply in-line CSS styles to the element. Provide a title or advisory information about the element. 10 Event Attributes: Available on most tags listed earlier Attribute onclick ondblclick onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup Meaning Fired when the pointer s button is clicked over an element. Fired when the pointer s button is pressed over an element. Fired when the pointer moves over an element. Fired when the pointer moves out of an element s bounds Fired when the pointer s button is released over an element. Useful with Javascript more later. 11 Focus Attributes: Available on input tags Attribute accesskey onblur onfocus tabindex Meaning Assigns an access key to the link and/or form field Fired when an element loses focus Fired when an element gains focus Assigns a position to an element when tabbing through input elements. Useful with Javascript more later. 12

Per Element Attributes! Many elements have tags that are unique.! Example: <table> Attribute border= num cellpadding= num cellspacing= num rules= all cols rows none summary= text width= num width= percentage Meaning Width of border (in pixels) around the table Space (in pixels) between cell border and contents Space (in pixels) between table cells Specifies which interior rules (lines) to display A summary of the table s contents Width of the table. Most of these should be specified in CSS rather than in-line. 13 Forms and Input Elements! This style of form is used for sending information to a program running on a server. We won t be doing this for A4. <form action= https://oat.cs.uwaterloo.ca:9444/addstudent method= post > <label>first Name: <input type= text name= first /></label> <label>last Name: <input type= text name= last /></label> <input type= submit >Add Student</input> </form> 14 Input Elements! We ll be processing input data using Javascript. It will look more like this: <label>first Name: <input type= text name= first /></label> <label>last Name: <input type= text name= last /></label> <input type= submit onclick= myjavascriptfunction() > Add Student</input>! More on Javascript in the next lectures. 15

Input Elements Element <input type= button > <input type= checkbox > <input type= file > <input type= hidden > <input type= image > <input type= password > <input type= radio > <input type= reset > <input type= submit > <input type= text > <select><option> </o> <textarea> <label> Meaning A button A checkbox Specify a file for uploading Hidden information to be submitted with a form Use an image instead of a button Don t show the actual text Only one can be on of the group with the same name Reset the form Submit the form Input one line of text A drop-down list of options A multi-line block of text A label for an input element 16 CSS: Cascading Style Sheets! Specify formatting in a separate file.! Advantages: - Consistency Consistency across pages and within pages Apply changes consistently Use someone else s styles - Minimize network traffic (cache the css file) 17 Element Tags <head> <meta charset="utf-8"/> <title> </title> <link href="css/some-stylesheet.css rel="stylesheet"/> <script src="scripts/some-script.js > </script> </head> 18

Rule Structure Selector Declaration block Property Value p { padding-left: 20px; color: red; } 19 Specifying Values! Colours: - #RRGGBB eg: #FFFF00 for yellow - rgb(rr.rr%, gg.gg%, bb.bb%) - black, yellow, silver, gray, maroon, purple, and about 150 others! Numbers - Percentage: 50% - Absolute:.5in, 1cm, 10mm, 50pt, 50px - Relative: 1.2em 20 Block-level Layout top margin top border top padding width height! Background goes to the outer edge of the border.! Margins can have negative lengths.! Padding and borders default to 0 and none. 21

What can be a selector? What HTML CSS Universal * { } Type <p> p { } Descendent <ul> <li> <em> ul em { } Child <p> <em> p > em { } <tr><td> </td><td> td:first-child { } Class <div class= floatleft big > div.floatleft { } or.big{ } Id <img id= cicero > #cicero { } 22 23 What can be a selector? What HTML CSS Universal * { } Type <p> p { } Descendent <ul> <li> <em> ul em { } Child <p> <em> p > em { } Pseudoselectors Pseudoselectors <tr><td> </td><td> td:first-child { } Class <div class= floatleft big > div.floatleft { } or.big{ } Id <img id= cicero > #cicero { } 24

The Cascade! A single html document may have many style sheets. There may be in-line styles. The browser has pre-defined styles. The user can define styles. For a given element, which one takes precedence?! How are missing values filled in?! Find all selectors that apply to the element! Sort by the composite key (explicit weight, specificity, order of declaration)! Use the first rule! Propagate inherited attributes 25 The Cascade! Explicit weight: - Example: p { color: red;!important} - When to use it? Almost never.! Specificity: Selector Type Specificity Inline style 1, 0, 0, 0 ID identifier 0, 1, 0, 0 Class identifier, pseudo-class ids 0, 0, 1, 0 Element identifier, pseudo-element ids 0, 0, 0, 1 Universal selector 0, 0, 0, 0! Order of declaration: 26 Pro-Tip: Use your Browser s Developer Tools 27

Pre-Built Stylesheets! E.g. Twitter Bootstrap -- http://getbootstrap.com - Customize your own - Pre-built themes, eg bootswatch.com http://bootstrapthemes.quora.com/25-awseome-twitter-bootstrap- Themes-For-Better-Bootstrap-Designs - The A4 portal will have Bootstrap loaded 28 Coming! Javascript - Basic language features - Object-oriented model (it s different!) - Gotchas! Client-Side Programming - Manipulating the HTML document Adding/removing elements Changing CSS JQuery, Callbacks - Model-View-Controller in Javascript - Templating (mustache.js library) - Web services & Json 29