Introduction to web development using XHTML and CSS. Lars Larsson. Today. Course introduction and information XHTML. CSS crash course.



Similar documents
Fast track to HTML & CSS 101 (Web Design)

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

WEB DEVELOPMENT IA & IB (893 & 894)

CLASSROOM WEB DESIGNING COURSE

WEB DESIGN COURSE CONTENT

Course Duration: One hour Theory and 3 hours practical per week for 15weeks. As taught in 2010/2011 Session

Course Name: Course in JSP Course Code: P5

Web Developer Jr - Newbie Course

Further web design: HTML forms

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

Dreamweaver CS3 THE MISSING MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLY 8 Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo

10CS73:Web Programming

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Introduction to Web Development

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

Themes and Templates Manual FOR ADVANCED USERS

Macromedia Dreamweaver 8 Developer Certification Examination Specification

jquery Tutorial for Beginners: Nothing But the Goods

Website Development Komodo Editor and HTML Intro

Introduction to XHTML. 2010, Robert K. Moniot 1

Internet Technologies

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Microsoft Expression Web

An overview of designing HTML s for Hotmail, Yahoo, Outlook, Lotus Notes and AOL

CIS 467/602-01: Data Visualization

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

IBRI College of Technology Department of Information Technology. Intercollegiate Web Programming Contest On 12 March, 2013 (Tuesday)

Programming exercises (Assignments)

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

CSC9B2 Spring 2015 Web Design Practical 1: Introduction to HTML 5

Software Requirements Specification For Real Estate Web Site

Web Design Specialist

Lesson Review Answers

Basic tutorial for Dreamweaver CS5

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

Microsoft Expression Web Quickstart Guide

WEB PROGRAMMING LAB (Common to CSE & IT)

Learning Web Design. Third Edition. A Beginner's Guide to (X)HTML, Style Sheets, and Web Graphics. Jennifer Niederst Robbins

Website Development (D4)

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

HTML Forms. Pat Morin COMP 2405

HTML5 and CSS3 The Future of the Web Programming. Current Web Development. Sergio Luján Mora

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

FETAC Certificate in Multimedia Production. IBaT College Swords. FETAC Certificate in Multimedia Production Web Authoring Dreamweaver 3

Web Development 1 A4 Project Description Web Architecture

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Web Authoring. Module Descriptor

... Asbru Web Content Management System. Getting Started. Easily & Inexpensively Create, Publish & Manage Your Websites

Course: CSC 224 Internet Technology I (2 credits Compulsory)

Using Adobe Dreamweaver CS4 (10.0)

IAS Web Development using Dreamweaver CS4

TIME SCHEDULE OBJECTIVES

JJY s Joomla 1.5 Template Design Tutorial:

How To Use Dreamweaver With Your Computer Or Your Computer (Or Your Computer) Or Your Phone Or Tablet (Or A Computer)

Web Development I & II*

Web Portal User Guide. Version 6.0

ANIMATED HEADER IMAGE WITH IMAGE HEADER SLIDESHOW (FL_HEADER_SLIDE)

Google Sites: Site Creation and Home Page Design

Coding HTML Tips, Tricks and Best Practices

Interactive Data Visualization for the Web Scott Murray

Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission

Web Authoring CSS. Module Descriptor

css href title software blog domain HTML div style address img h2 tag maintainingwebpages browser technology login network multimedia font-family

Creating Web Pages with HTML Simplified. 3rd Edition

Dreamweaver. Introduction to Editing Web Pages

PDG Shopping Cart 4.0. Quick Start Guide

Website Builder Documentation

Self-Service Portal Implementation Guide

Web forms in Hot Banana reside on their own pages and can contain any number of other content and containers like any other page on your Website.

Using The HomeVision Web Server

HTML and CSS 2 Class Meetings Instructor Contact Office Hours: Tuesdays 5:30-7:30 PM Online Class Message List Opt Out of Class

RemoteTM Web Server User Guide. Copyright Maxprograms

Web Design Competition College of Computing Science, Department of Information Systems. New Jersey Institute of Technology

STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.

The AFS:METHOD Web Design Contest

Lesson Overview. Getting Started. The Internet WWW

Outline. CIW Web Design Specialist. Course Content

Your Blueprint websites Content Management System (CMS).

IT3504: Web Development Techniques (Optional)

A DIAGRAM APPROACH TO AUTOMATIC GENERATION OF JSP/SERVLET WEB APPLICATIONS

RIT Message Center Compose and Send Messages

Unit 2: Webpage creation (LEVEL 2)

THE CLIENT SPEC SHEET

BreezingForms Guide. 18 Forms: BreezingForms

User Guide for Smart Former Gold (v. 1.0) by IToris Inc. team

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE

COURSE OUTLINE FACULTY OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITI TEKNIKAL MALAYSIA MELAKA

IT3503 Web Development Techniques (Optional)

Cut-to-the-Chase Series Web Foundations. HTML Assignment. By Eric Matthews Visit us at:

Manual for CKForms component Release 1.3.4

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Short notes on webpage programming languages

When you have selected where you would like the form on your web page, insert these lines of code to start:

Dreamweaver Tutorial - Dreamweaver Interface

APPLICATION NOTE SERIES Information Technology Group

Web Accessibility means that a website is accessible if everyone, regardless of ability, can access the website and retrieve all the information

By Glenn Fleishman. WebSpy. Form and function

CREATING WEB FORMS WEB and FORMS FRAMES AND

HTML and CSS. Elliot Davies. April 10th,

ShoreTel Enterprise Contact Center 8 Installing and Implementing Chat

Transcription:

using CSS using CSS 1 using CSS 2 3 4 Lecture #1 5 6 using CSS Material using CSS literature During this, we will cover server side web with JavaServer Pages. JSP is an exciting technology that lets developers dynamically generate, XML other types of documents in response to Web client requests. It also creates an easy way to provide users with interfaces services. This uses the following freely available resources as literature: Lecture slides, Core Servlets JavaServer Pages, 1st Ed. by Marty Hall, More Servlets JavaServer Pages, 1st Ed. by Marty Hall, Thinking in Java, 3rd Ed. by Bruce Eckel any extra links posted on the web site. You are encouraged to support the authors by buying the printed versions of the books. All the resources listed above are used with permission. using CSS Assignments using CSS Teachers 3 compulsory assignments, 1 voluntary (for those who want the possibility of passing with distinction). The assignments will cover the following topics: 1 Basic JSP, 2 data validation storage sessions, 3 tag libraries 4 as-of-yet undecided, but involving web services. Specification for the first assignment is already available on the web page, the others will be uploaded in time for you to complete them. This has three teachers, P-O Östberg, Dennis Olsson me,. We will be available in our rooms, as well as via e-mail for chat sessions. See the web page for office hours when we will be in the chat room. Send all e-mail questions to the following addresses (always send to all of them): p-o 5dv076@cs.umu.se, larsson+webserver@cs.umu.se denniso+webserver@cs.umu.se The chat room is #5DV076 at the IRC server irc.acc.umu.se. P-O is also available on MSN (using the address above).

using CSS Important email using CSS registration Questions that may be of interest to all students attending the will be sent to the mailing list. The mailing list will send the mail to your CS mail address (username@cs.umu.se). Make sure that you either get into the habit of checking this address daily or forward it to your main account! Support (http://support.cs.umu.se/) has on how to hle your mail. To register for the, send an email to the following address stating your name Swedish personnummer those with Villkor 10 also need to provide proof that they may attend the : p-o 5dv076@cs.umu.se Registering is very important, since we cannot grade your assignments unless you have registered. Do it as soon as possible! using CSS Development environment using CSS Distance education Your solutions to the assignments will be written in JSP. A easy-to-install package containing Tomcat, Axis Derby will be available on the web page. In addition, you will need to install Ant Java. All your CSS must pass W3C validation. The web browser that will be used for evaluating your solutions will be the latest version of Firefox. As stated on the web page, it is possible to complete this from other locations than Umeå. It is of recommended to attend the lectures if possible, but it is not a formal requirement. The lecture slides will be (or have been) written in such a manner that it should be possible to underst them without attending the lectures. using CSS CSS using CSS 1.0 versions All students attending this are required to have taken a in client side web (such as 5DV077), containing basic programming in JavaScript or equivalent. This lecture will attempt to bring all students up to speed on (extensible HTML) CSS (Cascading Style Sheets) the next will cover basic object-oriented in Java. We assume that most students have some basic previous knowledge of HTML, we will focus on differences between HTML the combination of CSS. There are three versions of 1.0: 1.0 Strict the most strict stard, allows no presentational 1.0 Transitional compatibility version, that allows some presentational to ease the transition from HTML to 1.0 Frameset used to divide an page in two or more frames During this, we will use 1.0 Strict combined with CSS.

using CSS All documents must, at the very least, contain the following: A document type declaration that identifies that the document is, in fact, should be interpreted as such the html tag as the one containing all other tags. These are placed in one of the following sections: the head section, containing such as the title of the page other that is not displayed in the main window of the web browser the body, containing the elements (tags their content) that shall be displayed on screen. using CSS DOCTYPEs We have three versions of (strict, transitional frameset) we need to tell the web browser which one should be used for the current page. The following line, placed on the first line in the file, identifies the document as 1.0 Strict: <!DOCTYPE html PUBLIC "-//W3C//DTD 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> The others are written in the same way, exchanging strict in both places for the version that should be used instead. using CSS tags using CSS tags continued 1.0 contains the same tags as HTML 4.01, but requires valid XML syntax. Chiefly, this means that requires all tags to be well-formed (opened closed properly nested). A single erroneous tag invalidates the entire page. The following is valid, specifies that we want to make some text in a paragraph (<p>) bold (<b>). In, even empty elements (also known as singular tags) such as img must be closed. Singular tags are closed immediately, like so: <img src="circle.gif" alt="a red circle" /> <p>normal text. <b>this part is bold</b>.</p> Note the slash at the end, immediately closing the tag. using CSS tags continued using CSS 1.0 Strict HTML attribute minimisation is not permitted in, so while this was valid HTML: <option selected>... it must be written this way in : Tags that were deemed entirely presentational, such as font center are not permitted for use in 1.0 Strict. Instead, we must use in combination with CSS to specify the look of our pages. <option selected="selected">...

using CSS tags using CSS CSS We will not present all tags here, since that takes too long is beyond the scope of this. You are recommended to visit the following site for a complete reference: http://www.w3schools.com/tags/ CSS (Cascading Style Sheets) may be new to students who have taken an HTML-based in web design. Thus, we devote some time to the very basics of CSS. You should study the topic on your own to accomplish what you need, this is just a primer. using CSS CSS basics using CSS CSS basic example CSS lets us apply rules that affect the way elements are presented on a web page. The basic format of CSS is: selector { propertya: valuea; propertyb: valueb;... } h1 { color: green; } The CSS above will change the color of all level one headers to green. The next slide contains a simple example. using CSS Basic CSS selectors using CSS Type selector There are many selectors in CSS that allows the developer to match elements based on their relationship to other nodes, but we will for time reasons look only at the most basic ones the others are left for independent study. Type selector, Ancestor selector, Class ID selector The example we just saw used the type selector: we specify a tag name, the rules are applied to all tags of the specified type. It s as simple as that! Type selectors are very common, since we usually want all headers of a given level to look the same, so on. combined selectors.

using CSS Ancestor selector using CSS Class selector The basic format of the ancestor selector is S1 S2, where both S1 S2 are selectors. This expression will match only such elements S2 that have S1 as an ancestor. For example, this will match only such <a> tags that are somewhere in a <li>: li a {...rules here... } We can for almost all elements in specify a class attribute, such as: <p class="important">important text</p> To match only such tags that are of the class important, we can write: The list of ancestors may be of any length..important {...rules here... } using CSS ID selector using CSS Combining selectors Tags in can be given an ID, that is, a unique identifier. Many elements can belong to the same class, but only one element can have a given ID: <h1 id="foo">header with ID</h1> To match the only object that has an ID of foo, we write the following CSS selector: Selectors can be combined for instance, the following will match only paragraphs of the class foo. Headers of the same class will not be matched. p.foo {...rules here... } #foo {...rules here... } using CSS Properties values using CSS Container layout We cannot possibly list all CSS properties their corresponding values here, as there are too many of them! Suffice to say that we can change everything about how a page its elements is displayed. See http://www.w3schools.com/css/css reference.asp for a complete reference. has support for two main types of containers: <div> <span>. The basic principle of CSS-powered web design is to put related content in a container, use CSS to place them on the page, giving them the desired look (background colour, fonts so forth). Use the following resource to learn the basics of CSS web design: http://www.w3schools.com/css/css positioning.asp

using CSS using CSS <form> In this, we will get user input using different controls: text input, selecting radio boxes or items from drop down menus so forth. All related controls must be placed in an enclosing <form> tag. The <form> tag requires an attribute called action, which specifies the name of the resource (server side program) to which the data in the form shall be sent. For instance, if we have a page called sendemail.jsp our form should be declared as such: <form action="sendemail.jsp">... </form> using CSS <form> continued using CSS <input> Form data is sent to the resource specified by action using either a method called GET or POST. During a coming lecture, the difference between these will be discussed in detail. The default is GET if we want to specify which method should be used, we can do so in the <form> declaration: <form action="sendemail.jsp" method="post">... </form> User data can be entered via the <input> tag. As the attribute type, we specify what kind of input control we want to display: button, checkbox, file, hidden, image, password, radio, reset, submit or text. The default is text, meaning a box where a single line of text can be entered. The submit type is special, since when clicked, it will make the web browser submit the data in the form to the form s action target. using CSS <input> continued using CSS <fieldset> One should always use the name attribute for controls, as it will be sent along with the data in the form. It will thus be easy to parse. An example: <form action="sendemail.jsp" id="email"> <input type="text" name="email_address" /> <input type="submit" value="send e-mail" /> </form> The code above will create a form with a single line input text field a button with the text Send e-mail. When clicked, it will send the what the user entered in the text field to sendemail.jsp it will be easy to see that it was in the address field, since we gave it a name. To group related controls in a graphical box, we use the <fieldset> tag. It does not effect the data in the form, it is merely a graphical hint to your users that the controls are related. Use the <legend> tag in the fieldset to show a title.

using CSS <select> using CSS A large example form The <select> tag creates a drop down menu, where the user can select a single choice. The choices are listed as <option> tags within the <select> tag: <select name="gender"> <option value="female">female</option> <option value="male">male</option> </select> See example-form.html for an example of many of the things that a form can do. using CSS using CSS An entire lecture will be devoted to best practises, but here are a few basic ones: include the name of the form in the names of the controls it makes it easier to keep track of multiple forms on a single page, pick a naming convention with variables, stick to it some platforms ignore case, others (such as JSP) are case sensitive, avoid Swedish other non-english characters in variable names. We have briefly looked at some differences between HTML combined with CSS. CSS-based web design is a huge topic, students unfamiliar with it are recommended to take a on it. In particular, we have studied seen an example of how we can build a form easily. Next lecture will cover basic Java programming.