Lecture 15 ITIS 2300 Mid Term Review February 28, 2006 Dr. Anita Raja.

Slides:



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

HTML popo.
Web Development & Design Foundations with XHTML
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 2 HTML Basics Key Concepts
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Chapter 8 Creating Style Sheets.
Web-based Application Development Lecture 12 February 16, 2006 Anita Raja.
The Web Warrior Guide to Web Design Technologies
Web-based Application Development Lecture 4 January 19, 2005 Anita Raja.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Web-based Application Development Lecture 5 January 24, 2006 Anita Raja.
Web-based Application Development Lecture 13 February 21, 2006 Anita Raja.
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.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
© Ms. Masihi 1.  A web page is created using a language called, Hypertext Markup Language, better known as HTML Code.  HTML is a user friendly language.
Chapter 14 Introduction to HTML
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
Web-based Application Development Lecture 7 January 31, 2006 Anita Raja.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
Understanding HTML Code
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
CASCADING STYLE SHEETS. Chapter 3 Objectives Customize HTML elements Specify Font characteristics Classes Tag style Inline and block-level elements External.
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,
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
HTML: Hyptertext Markup Language Doman’s Sections.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
CSCE 102 – Chapter 8 (Objects and Variables ) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
INT222 – Internet Fundamentals
CSCE Chapter 3 (Cascading Style Sheets) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department of Computer.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Bare boned notes.
Programming the Web using XHTML and JavaScript
Presentation transcript:

Lecture 15 ITIS 2300 Mid Term Review February 28, 2006 Dr. Anita Raja

Mid Term Exam March 14, 2006 All material covered till Feb 28 th is included. WWG questions will be taken from the review sheet. PTW Coding questions from debugging exercises.

Programming the Web using XHTML and JavaScript

The HTML Source Document Page content goes here Page Title

Paragraphs and Line Breaks Break tag Generates a line break Without inserting a blank line like the tag. “Empty” tag – no needed instead (space optional) / required by XHTML to indicate an empty element Ch02-Ex-05

Adding More Tags Emphasizing text - italics HTML: This word is italicized Browser: This word is italicized - bold HTML: This word is bold Browser: This word is bold Ch02-Ex-06

Adding More Tags Structure vs. Presentation: so what? In early HTML, designers used tags for both: structure and presentation Problem: Those Web pages display well only on PCs Other devices required other versions of the HTML code. Presentation does not have to be visual!

Adding More Tags By defining structure and presentation separately this problem is eliminated Structure defined by HTML code Presentation defined elsewhere: Browser Style sheet definitions (Chapter 3) This is the point of XHTML

Adding More Tags Block-level elements Define a complete section of text Preceded and followed by a blank line Body, header, paragraph tags Inline elements Apply to a sequence of characters within a block Emphasis and strong tags

Adding More Tags Blocks may contain anything: Other blocks … … … Inline elements … … … Inline elements may contain Other inline elements … … … BUT NOT BLOCKS! … … …

Internal Style Sheets Redefines the presentation rule (style) for certain elements “Internal” because contained within the HTML source document itself Styles may be defined using different style sheet languages so … … the language used must be specified

Formatting Fonts Using Styles Can compress definition p {font-style:italic; font-weight:500; font-variant:small-caps; font-size:14pt; line-height:24pt; font-family:”Lucida”,”Arial”} p {font: italic 500 small-caps 14pt/24pt ”Lucida”,”Arial”}

Tags with Multiple Styles The same type of element can have multiple definitions called “classes” p {text-align:justify; font-weight:bold} p.intro {text-align:center; color:red}

Local Styles Local styles take precedence over other style definitions The text in this paragraph will The text in this paragraph won’t be red

External Style Sheets Text-only file Contains style definitions only h2 {color:red} h1 {font-size:24pt p {text-align:center} p.small {font-size:10pt} No tags needed

External Style Sheets Save in a file with a.css extension css = cascading style sheets Local, internal and external may be present in the same document Local overrides internal Internal overrides external

External Style Sheets How to specify external style sheets? Add tag in section

Displaying Lists Ordered lists: Item 1 Item 2 Block-level element Items indented relative to other text Ch04-Ex-02 Optional in HTML, Required in XHTML

Displaying Lists Unordered lists: Item 1 Item 2 Block-level element Items indented relative to other text Ch04-Ex-03 Optional in HTML, Required in XHTML

Tables Cells spanning multiple columns Ch04-Ex-11 Cells spanning multiple rows Ch04-Ex-12

Displaying Images General Form Example <img src = “ image_feature_73.html” />

Creating Links External Downloads and displays a new Web page Implemented by an anchor tag with a hypertext reference: some text the user sees

Creating Links Pathnames Absolute Relative highlights/index.html index.html Defaults to index.html

Creating Links Internal Location Link Click here Identifies an internal link

Creating Links Combined Form: url#id 0/assignments.htm#Lagerstrom-Ch-5

Layout with Style Ch06-Ex-03.html padding – number of pixels between border and text (padding n or padding x y) overflow – whether or not text outside the borders is visible hidden visible Ch06-Ex-03a.html

Tables Plain table Ch06-Ex-04.html Nested table Ch06-Ex-05.html

Frames Linking between frames: Click link in one frame See result in another frame Add target attribute to tag: Click here to … Otherwise content appears in current frame Ch06-Ex-08

Multiple Windows Just like specifying what frame in which to display a document: … Ch06-Ex-11

Interactivity Events An action associated with some object Types: Click Select Mouseover Ch07-Ex-03.htm

Interactivity Sequence of events: User clicks the button Browser automatically detects the click Browser generates a click event Event handler associated with the button is triggered JavaScript commands associated with that event are processed

Interactivity onclick attribute describes the action(s) to take when a click event is detected <input type=“button” … ¬ onclick=“alert(‘You clicked me’)” /> alert is JavaScript exception to rule Ch07-Ex-04.htm

Interactivity Multiple JavaScript commands are valid <input type=“button” … ¬ onclick=“alert(‘You clicked me’)”; onclick=“alert(‘Well done’)” />

Interactivity Mouse events onmouseover – when cursor is moved over an object onmouseout – when cursor over an object moves away from the object Ch07-Ex-05.htm

Variables In a variable: var grindSetting grindSetting = ultraJava.getGrind() prompt command … prompt(message, initial_value) Ch08-Ex-02

Variables confirm command … confirm(message) Ch08-Ex-03

Browser Object Structure Document Object Model (DOM) Window object (“window”) Includes various methods: alert() prompt() confirm() Technically window.alert(…), etc. although “window” usually omitted in practice

Browser Object Structure location object Stores information about the URL of the document currently being displayed in the window. Properties include: href (complete URL) hostname (only the host and domain name) Ch08-Ex-05

Using Functions … function someName() { … } … someName() …

Using Functions Ch09-Ex-01.htm

Using Functions some HTML a function call some more HTML some HTML function statement 1 function statement 2 … some more HTML

Parameters Parameter/argument: the means by which data is supplied to a method confirm(“Are you sure?”) ultraJava.changeGrind(“coarse”) Why parameters? General code is re-useable

Parameters Need a printGreeting function that uses a parameter function printGreeting(personName) { alert(“Hello,” + personName) } Call by personName=“Fred” printGreeting(personName)

Parameters Ch09-Ex-02.htm

More Parameters Can refer to a form element in a function Ch10-Ex-04 Can pass a value to a function as a parameter Ch10-Ex-05

More Parameters Can pass an object, not its value, as a parameter Ch10-Ex-06

More Parameters Can pass part of an object, as a parameter Ch10-Ex-07

More Parameters Pass both the input object (nameBox) and the output object (outputBox) as parameters Ch10-Ex-08

The Web Wizard’s Guide to Web Design

Identifying the Audience Who is more important? Designer Audience Successful design meets the needs of the audience, not the designer! Users. Who are they? Why are they here? What are they looking for? How do they think?

Identifying the Audience Possible design approaches: Organization-centered Organization’s point of view Public perception? Technology-centered If you’ve got it, flaunt it Does the technology serve the needs of the site? User-centered Target audience

Identifying the Audience Ways to define audience - demographics Age Gender Geography/Residence Income Education Race/Ethnicity Interest (Web) History

Identifying the Audience Steps to define audience: Picture them at the computer Who are they? Range of ages Gender Income Why are they here? How did they get here? Do they have a history with this organization? Are there common characteristics ?

Determining Site’s Purpose What What will visitors do at the site? Why Why do they want to do it? Why would they want to do it here and not somewhere else? Definition serves both customer and organization needs

Determining Site’s Purpose Goals (strategic view) Long-term Organization-centered (usually) Objectives (tactical view) Specific means by which goals will be accomplished User-centered (usually) Many Web sites serve a variety of purposes Understand them from the beginning

Planning the Structure “Form follows function” Design the functions first, the form will follow naturally Flow Chart How the subdivisions work or are organized Statement of functions The purpose each subdivision serves Each subdivision serves a unique purpose (What happens if this concept is violated?)

Planning the Structure Avoid meaningless generalities Be concrete Be detailed Use action verbs Consider user’s perspective

Planning the Structure Specifications Filename Text Images Links Menus