HCI 201 Week 6 Client Side Image Maps Introduction to CSS.

Slides:



Advertisements
Similar presentations
Intro to HTML. HTML HTML = HyperText Markup Language Used to define the content of a webpage HTML is made up of tags and attributes Content.
Advertisements

Intro To Cascading Style Sheets By Mario Yannakakis.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
Introduction to CSS.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 8 Creating Style Sheets.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
4.01 Cascading Style Sheets
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Cascading Style Sheet. What is CSS? CSS stands for Cascading Style Sheets. CSS are a series of instruction that specify how markup elements should appear.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
Robert Vitolo CS430.  CSS (Cascading Style Sheets)  Purpose: To provide a consistent look and feel for a set of web pages To make it easy to update.
Cascading style sheets (CSS)
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
The Characteristics of CSS
Using Styles and Style Sheets for Design
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
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.
Today’s objectives  Presentational | Inline | Block | Validate  CSS | Rules | Declarations.
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Lesson 2 Adding more content to your web page. Thanks to Richard Hudnutt, Luella HS.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Internet Web Publishing III. Intro to Cascading Style Sheets Patricia Roberts.
© 2011 Delmar, Cengage Learning Chapter 8 Using Styles and Design Style Sheets for Design.
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 GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Cascading Style Sheets CSS. Source W3Schools
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
Introduction to CSS. What is CSS? CSS ("Cascading Style Sheets") determines how the elements in our XHTML documents are displayed and formatted. By using.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
>> Introduction to CSS
Introduction to CSS.
Cascading Style Sheets
Madam Hazwani binti Rahmat
Using Cascading Style Sheets Module B: CSS Structure
Introduction to CSS.
Styles and the Box Model
Web Programming– UFCFB Lecture 11
Cascading Style Sheets™ (CSS)
Tutorial 3 Working with Cascading Style Sheets
CSS Styles Introduction.
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Introduction to CSS.
Presentation transcript:

HCI 201 Week 6 Client Side Image Maps Introduction to CSS

Agenda

Image Maps Image maps are used extensively on the World Wide Web. Each hot spot in a Web image map takes you to a different Web page. An image map is a visually oriented navigation table. For instance you have a picture of a bowl of fruit. When you click on each fruit type the embedded link takes you to a page that gives you all of the nutritional info on that fruit as well as swerving suggestions and places to buy that kind of fruit. Each picture/piece of fruit has its own page.

Image Maps Image maps can be server or client side Server side means that all of the info is kept on the server- requires a CGI program (common gateway interface) and is not the method we will be using. Client side image maps rely on html, and the x and y info of geometry. The x axis is the horizontal axis and the y axis is the vertical axis. The client side map is much more efficient than the server side. This is the type we will be working with

Image Maps To make an image map you need All of the URLs you want to link to Do they need to be relative or absolute? An image large enough to house all the links A image mapping program this one is $10 OR an image editing program that can assist you with determining x and y coordinates This one has a free trial period

Image Map The map is a series or grid of points You determine what kind of shape you want placed on the image to create the boundaries of the link- do you want a circular area? Rectangular? Polygon? You use the map program to assist you with setting up the points for the links

Taken from this example ndex.html

Coordinates Map name denotes that the coordinates belong to the map AREA denotes that this is a new section of the map. SHAPE denoted the shape you used. The map program will tell you all this. HREF denotes the URL this section points to. /MAP closes the image map

Image Map Resources maps.shtml maps.shtml _imap.html _imap.html

CSS From Webopedia.com Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how pages are displayed. With CSS, designers can create style sheets that define how different elements, such as headers and links, appear. These style sheets can then be applied to any Web page. The term cascading derives from the fact that multiple style sheets can be applied to the same Web page. CSS was developed by the W3C.

Cascading Style Sheets Why? More precise than html Able to create one coded document and effect countless other WebPages with it Compatibility across browsers and platforms (sometimes) Less code Smaller pages Faster download times

Cascading Style Sheets They separate form and structure Precise control of layout example Smaller faster pages Update pages much faster Ideally is browser friendly

CSS vs. HTML HTML defines structure and function of elements- it allows the browsers to determine the appearance This is a lack of control that many designers do not like CSS defines the form and appearance You can control things like exact font size in terms of measured heights You use less code than in HTML You don’t need crazy tables to position exactly as you would like Less code means smaller pages and faster download times

CSS Benefits You can control the layout of an entire website, be it a five page site or 500 page site with one CSS document Instead of updating each page individually- update the single CSS page and all the subsidiary html pages “point” to the CSS page

CSS Consists Of Rules- these are statements that control layout. They consist of Selectors and declarations Selectors = the htl that the styles are attached to Declarations defines wha the style actually consists of. Declarations consist of Properties(for instance “color” and values (for instance “green”)

Ways to Apply CSS Embed a style sheet in the head of the HTML document (what you will do for hw 5) All the stylesheets information lives at the top of the HTML document, separated from the of the HTML code. Using the embedded format means that browsers honor them for the length of the HTML page. You embed when you want to control the look of one page at a time

Ways to Apply CSS Link to an external style sheet from the HTML- This is the most powerful type of stylesheet This is the type that lets you control an entire site of unlimited size with one document You can change the font size in the stylesheets file and all of your pages will instantly reflect that change. If you maintain a large site, this feature for you. If you use the linking method you cannot use the other methods

Ways to Apply CSS Import an external style sheet into the html Importing an external stylesheet works similarly to linking. The difference is you can combine importing with other methods.

Ways to Apply CSS Add styles inline in the html You can also add styles inline, This means inserting stylesheets rules right in the middle of all your HTML. You don’t put stylesheets code in the head section. This application requires that you input the CSS code every time you want to affect a change- not very efficient in terms of workload.

The Code My First Stylesheet Stylesheets: You need to learn this You can do it!

What It Means This is a rule H1 { color: blue; font-size: 37px; font-family: impact } H1 is the selector -It's the HTML tag that the style is being attached to. Any HTML tag can be used as a selector. The declaration defines what the style actually is, and it also consists of two parts: the property - color and the value –blue Since HTML tag can be used as a selector you can attach stylesheet information to any kind of element, from normal text to and content.

What It Means Inheritance- this means that if you have one thing bundled within another, both sets of elements will be treated the same unless you specify otherwise. What happens to the parent happens to the child Ex: you have specified that all italic code must be red, and then within an italicized section you have underlined text, the underlined text will also be red. I { color: red } Don’t cut yourself on that copy of Catcher in the Rye. Don’t cut yourself on that copy of Catcher in the Rye. Is how the line would appear

Classes You can create separate categories- or ways of presenting the same type of information- for instance instead of all things with the tag looking one way you can have several different styles P.first { color: green } P.second { color: purple } P.third { color: gray } The first paragraph, with a class name of "first." The second paragraph, with a class name of "second." The third paragraph, with a class name of "third." The first paragraph, with a class name of "first.“ The second paragraph, with a class name of "second.“ The third paragraph, with a class name of "third."

CSS Resources rence/stylesheet_guide/ rence/stylesheet_guide/ les.asp les.asp