Lecture 9: Extra Features and Web Design Tarik Booker CS 120 California State University, Los Angeles.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Chapter 3 – Web Design Tables & Page Layout
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?
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Today CSS HTML A project.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
กระบวนวิชา 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.
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.
CIT 256 CSS Divs & Buttons Dr. Beryl Hoffman. CSS for Layout We now can make our own divs to divide up a web page : Header Header Navigation Navigation.
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
4.01 Cascading Style Sheets
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
7 Selecting Design and Color Section 7.1 Identify presentation design principles Use a custom template Add pages to a navigation structure Section 7.2.
Section 7.1 Identify presentation design principles Use a custom template Add pages to a navigation structure Section 7.2 Identify color scheme guidelines.
Chapter Objectives Discuss the relationship between page length, content placement, and usability Complete Step 4: Specify the website’s navigation system.
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
Web Design, 3 rd Edition 4 Planning a Successful Web Site: Part 2.
Web Design, 4 th Edition 4 Planning a Successful Web Site: Part 2.
UNIT 8 DRAWING WITH THE HTML5 CANVAS ELEMENTS AND FORMS.
The Characteristics of CSS
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
Developing Content and Layout Lesson 6. Creating Web Site Content Online users scan a page, read key words of text, and check out graphics Reading from.
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.
Style Sheets for Print and Mobile Media Types Supplemental Material.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
Log In to your User Start: Photoshop Elements. Start a new document 700x120 pixels with white background. Create a new layer by clicking Layer -> New.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
Principles of effective web design NOTES Flo Morris-Duffin.
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.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
The Good, the Bad & the Ugly: Style and design in Website creation Chris Webster: Information Officer and Website Manager at the EARL Consortium for Public.
Web Site Development - Process of planning and creating a website.
Usability Olaa Motwalli CIS764, DR Bill – KSU. Overview Usability factors. Usability guidelines.  Software application.  Website. Common mistakes. Good.
`. 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
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
Web Design (17) CSS Box Element (2). ‘Box’ Web Site (1) Insert a navigation bar into the index.html file and create links to ‘index.html’, ‘pageone.html’
The HTML5 logo was introduced by W3C in 2010
Web Development & Design Foundations with HTML5 8th Edition
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Section 7.1 Section 7.2 Identify presentation design principles
Advanced CSS BIS1523 – Lecture 20.
Cascading Style Sheets - Building a stylesheet
Putting Images on Your Web Page
Session I Chapter 18 - How to Design a Web Site
Putting An Image on Your Web Page
SEEM4570 Tutorial 3: CSS + CSS3.0
Start: Photoshop Elements
Cascading Style Sheets - Building a stylesheet
ITI 133: HTML5 Desktop and Mobile Level I
Presentation transcript:

Lecture 9: Extra Features and Web Design Tarik Booker CS 120 California State University, Los Angeles

Topics ◦ Extra Features ◦ Javascript Canvas ◦ Website Design

Extra Features Geolocation Embedding Fonts More CSS ◦ Background gradients ◦ Rounded corners ◦ Box shadow

Geolocation Allows you to get GPS information!  Google service using IP addresses, cell phone ids, and cell tower triangulation to get device coordinates ◦ Performed using a callback function  If the position is readable, then a (user defined) function is called with the position object  If the position is unable to be read, then a (user defined) error function is called (without an object)

Geolocation (2) Example:

Geolocation (3)

Geolocation (4) Properties of the Position Object  latitude(in degrees)  longitude(in degrees)  accuracy(in meters)  altitudeheight (in meters)  altitudeAccuracy(in meters)  headingdirection in degrees relative to True North  speed(in meters per second)

Geolocation (5) You can use the Google Map Services API to display coordinate results on a Google map! ◦ Get GPS coordinates ◦ Display on Google’s map  Through GET ◦ Display Map image URL as the source of an image  Change SRC attribute

Geolocation (6)

Geolocation (7)

Embedding Fonts Browsers only support a few fonts ◦ You may need a fancy font for your site  Can embed a font within the page  Have to use selector  { font-family:example; src: url(“Example.ttf”); }

More CSS Background Gradients Rounded Corners Box Shadows

Background Gradients You don’t have to have the background be a specific color. ◦ You can use a “background gradient” to liven it up  A gradient = a transition from one color to another ◦ Use background-image  background-image: linear-gradient(direction, color %, color %, …);

Rounded Corners Want to add rounded corners to your elements? ◦ Use the border-radius property  Use for each corner of the box  Ex:  Border-radius: 10px 20px 0 20px;

Box Shadows Want to add shadows to boxes? ◦ Box-shadow property  First two values – shadow offset  Third value – blur radius  Fourth value – how far the blur spreads  Fifth value – specify a different shadow color  Ex:  Box-shadow: 3px 3px 4px 4px red;

Javascript Canvas Allows you to draw 2D drawings and animations (in Javascript)

Javascript Canvas (2) Procedure ◦ Create a Canvas element in the HTML  Include id, width, and height attributes ◦ Add an onLoad event in the body tag  Include in the event the function to draw in the canvas ◦ Use getElementById() to get the Canvas object ◦ Use getContext() to the context object  Use functions of the context object to draw

Javascript Canvas (3) Example:

Javascript Canvas (4) There are many functions contained within the Canvas ◦ Many things you can do  Book: p ◦ Draw rectangles, arcs, colors, lines, etc.

Web Site Design Design Methodologies Conventions Design Principles

Design Methodologies What do users want? ◦ To find what they want quickly (and easily) ◦ Don’t read in an orderly way  Typically click on a link quickly (to get information)  If wrong info, click back button  Users click the back button over 30% of the time at a new site.  Leave if they can’t find what they want (quickly) ◦ You should want to create a page with high usability!

Usability Usability? ◦ Ease of use of a web site. Many ways to make using a website easier. ◦ Present essential information “above the fold”  Put important info on top of page  So user doesn’t have to scroll for important info ◦ Group related items into separate components  Limit total number of components on each page  Make things look more manageable

Usability (2) Clickable links should “look clickable” ◦ We will discuss this later Non-clickable text shouldn’t look clickable.

Conventions for Usability Header conventions ◦ Consists of a logo, tag line, utilities, and a navigation bar ◦ Tag line = what’s unique about the site ◦ Navigation bar – links that divide site into sections ◦ Utilities – links to (not primary) information

Conventions for Usability (2) Navigation Conventions ◦ Underlined text is always a link ◦ Images that are close to short text are clickable ◦ A symbol in front of a text phrase is clickable ◦ Short text phrases in columns are clickable

Conventions Let users know where they are ◦ Some users may find your page through a search engine  Find a way to let the user know where they are on the page  Breadcrumbs – Mark a path with > in between links

Conventions (2) Make the best use of web page space ◦ Keep important information “above the fold” ◦ Keep the header relatively small

Conventions (3) Write for the web ◦ Users skim and scan pages Chunk long pages into shorter ones ◦ Limit the amount of scrolling on the page

Principles of Graphic Design Some universal principles of graphic design ◦ ding_lessons/principles_design.pdf ding_lessons/principles_design.pdf ◦ and_principles and_principles

Principles of Graphic Design Limit line length of paragraphs to 65 characters Use a sans serif font Use dark text on a light background

Principles of Modern Website Design Design changes from trend to trend ◦ Current trends: ◦ of-modern-web-design-list of-modern-web-design-list ◦ Modern design  Single Page (all in one)  website-designs/ website-designs/

Color Theory It’s a good idea to choose a pallete ◦ A range of colors to use for a work of art  Typically 4-5 total for the whole site  Useful to keep unified