UNIT 8 DRAWING WITH THE HTML5 CANVAS ELEMENTS AND FORMS.

Slides:



Advertisements
Similar presentations
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?
Advertisements

HTML5 Overview HOANGPT2. 1. General 2. New Elements List 3.
Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Web Page Behavior IS 373—Web Standards Todd Will.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Explaining the principles of web animation Gladys Nzita-Mak.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Project 8 Mastering Digital Media: Picture Files.
Web Design Basic Concepts.
HTML 5 Tutorial Chapter 9 Form Attributes. New Form Attributes HTML5 has several new elements and attributes for forms. New form attributes : autocomplete.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Media and Interactivity with Flash and Spry.
CPSC 594B: Software Engineering Project Lecture 1: Introduction to HTML5 Lecturer: Ayman Issa Office: ICT 555.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
Dynamic Web Pages (Flash, JavaScript)
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Chapter 19: Adding JavaScript
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 8: Image Techniques.
Adobe FLASH What & Why? Where & When? Is Flash dead? What about HTML5?
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation Technical.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
HTML5 for Mobile Andrew Kinai. HTML vs HTML5 HTML:A language that describes documents' formatting and content, which is basically composed of static text.
Processing.js.
1 Additional Topics: Splash, Flash and Web Usability INFO 654 – Spring 2007.
Presented by Nassib Awad
Tutorial 7 Planning and Creating a Flash Web Site.
Class 02 – 03 Feb 2014 Setup Where do we begin? Know your content Discovering your target user.
HTML Forms.
Lecture 6 Title: Web Planning, Designing, Developing for E-Marketing By: Mr Hashem Alaidaros MKT 445.
IT: Web Technologies: Web Animation 1 Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Designing Web Site Layout Using.
Start Dreamweaver program From file menu click new Blank page appears.
SVG & INKSCAPE Student Talk: Erica Weiss DIG 4104c Spring 2014.
Software. A web site is a collection of web pages on a particular topic. A web page is a document written in HTML code. Web pages are linked together.
Copyright © 2003 Pearson Education, Inc. Chapter 6 – Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Excel 2007 Lab 2 Charting Worksheet Data.
Dynamic Web Pages Jin Wu INF 385E Information Architecture School of Information 11/2/2006 Jin Wu INF 385E Information Architecture School of Information.
Computer Graphics Unit 23 Computer Graphics. Computer Graphics Computer generated imagery can be categorized into several different types: Vector or Bitmap.
Reading Flash. Training target: Read the following reading materials and use the reading skills mentioned in the passages above. You may also choose some.
TOPIC II Dynamic HTML Prepared by: Nimcan Cabd Cali.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
HTML 5 The Future of Web Development. What is HTML5? “HTML5 is a specification of how the web’s core language, HTML, should be formatted and utilized.
Dawn Pedersen. What is JavaScript? JavaScript is the basis for both jQuery and Spry applications JavaScript is referred to as a client-side scripting.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
(1) HTML5, CSS, Twitter Bootstrap. (2) HTML5 Will be the new standard New features Drag and Drop and Support for local storage,,,, New input types Removed.
Learning Aim B.  In this section, you will consider the resources necessary for designing your website.  You will also think about any constraints that.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
SVG technology SVG technology is what we want? is what we want? Jaehoon Woo KNU Real-Time Systems Lab. KNU Real-Time Systems Lab.
Project: Web Designer. Phase 1: The World Wide Web.
Lecture 9: Extra Features and Web Design Tarik Booker CS 120 California State University, Los Angeles.
Scalable Vector Graphics Dietz Ellis 04/17/06. SVG SVG is a language for describing two- dimensional graphics in XML. SVG is a language for describing.
Part – 3 : HTML 5 SVG Tag. † SVG stands for Scalable Vector Graphics. † SVG is used to define vector-based graphics for the Web. † SVG defines the graphics.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
Creating a Flash Web Site
Objective % Select and utilize tools to design and develop websites.
Chapter 4: Scalable Vector Graphics (SVG)
HTML5 – The Saga Continues
Process of Converting “PSD to HTML”
Objective % Select and utilize tools to design and develop websites.
Dynamic Web Pages (Flash, JavaScript)
.NET and .NET Core 7. XAML Pan Wuming 2017.
Dynamic Web Pages Jin Wu INF 385E Information Architecture
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Teaching slides Chapter 6.
HTML5 - 2 Forms, Frames, Graphics.
Presentation transcript:

UNIT 8 DRAWING WITH THE HTML5 CANVAS ELEMENTS AND FORMS

OBJECTIVES  CO1 Describe various components of the Open Web Platform.  CO2 Create a website using HTML5. 2

LEARNING OUTCOMES LO43 Draw on a Web page using the element. LO44 Display images on a Web page using the element. LO45 Explain the similarities and differences among the element, SVG, and Flash. LO46 Describe the new functionality supported in HTML5 forms. LO47 Create a form that uses HTML5 features. LO48 Create a form that performs input validation. 3

USING THE CANVAS ELEMENT The HTML5 element can be used to draw, add images, create slideshows, display animations, and even build games. It can also be used for other things, such as:  Dynamic graphs such as stock tickers  Photo galleries  Fancy fonts  Online visual tools such as mind maps and image editors For example: 4

USING THE CANVAS ELEMENT For any browsers that don’t support HTML5, you should include the following text inside the tag: This page requires an HTML5 compliant browser to render correctly. Other browsers may not see anything. 5

USING THE CANVAS ELEMENT 6

DRAWING SQUARES ON A CANVAS 7

HIDE AND SHOW A SQUARE ON A CANVAS 8

DRAWING RECTANGLES WITH GRADIENTS ON A CANVAS 9

DRAWING LINES AND POLYGONS 10

DRAWING AN OCTAGON ON A CANVAS 11

DRAWING A LINE WITH THE 3 JOIN TYPES 12

DRAWING CIRCLES ON A CANVAS 13

WRITING FONTS AND TEXT ON A CANVAS 14

SCALING AND CLIPPING IMAGES 15

ADDING PATTERNS OF AN IMAGE ON A CANVAS 16

DIFFERENT FEATURES OF CANVAS, SVG, AND FLASH (From TABLE 10.1) 17 CanvasSVGFlash Vector graphicsCanvas is bitmap, but can draw vectors. SVG is vector based, but you can load bitmaps. Flash is vector based. Inline HTMLCanvas is a native HTML element. SVG is XML and must be embedded. Flash is SWF and must be embedded with a plug-in. Scripts requiredCanvas won’t display anything with JavaScript turned off. SVG can be written completely offline and loaded. Flash requires a plug-in, but can be written completely offline. Program support Few if any commercial programs exist for building canvas graphics. Many vector graphics programs can write SVG. Commercial applications are available to write Flash.

DIFFERENT FEATURES OF CANVAS, SVG, AND FLASH (From TABLE 10.1 – continued) 18 CanvasSVGFlash Speed of rendering Canvas renders images very quickly. SVG renders images slower than canvas. Flash renders images slower than canvas. Event handlingUsers can only click on the entire canvas. Users can click on individual elements in SVG. Users can click on any element in Flash. User adoptionCanvas is HTML5 and so requires modern browsers. SVG requires modern browsers. Flash has been around a long time and has wide-spread support. Search engine optimization (SEO) Canvas is text based and so is SEO friendly. SVG is text based so is SEO friendly. Flash is an embedded SWF file and is harder for search engines to read.

NEW FEATURES IN HTML5 FORMS  Most of the features of HTML5 forms are things that can already be done with scripts, but now they are built into the HTML5, which reduces the page load time and makes building forms easier.  Placeholder text and autofocus make the forms easier for end users.  Autocomplete combined with datalists helps the data the forms deliver to be more consistent and accurate. 19

PLACEHOLDER TEXT AND AUTOFOCUS 20

AUTOCOMPLETE AND DATALISTS 21

HTML5 INPUT TYPES 22

HTML5 INPUT TYPES 23

HTML5 FORM VALIDATION One of the most useful features of HTML5 forms is the validation. For example:  Set up rules for required fields  Check for valid formats Number range, max, min, decimal places, +/- signs in number fields addresses Phone numbers Credit card numbers SSN Birthday 24

HTML5 FORM VALIDATION 25

HTML5 FORM VALIDATION 26

HTML5 FORM VALIDATION 27