CHAPTER 2 HTML & HTML5 II อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.

Slides:



Advertisements
Similar presentations
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Advertisements

Lecture # 11 JavaScript Graphics. Scalable Vector Graphics (SVG) Scalable Vector Graphics (SVG), as the name implies, are - scalable (without pixelation):
1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
Philly.NET Hands-On MVC Razor, HTML5, CSS3 Rob Keiser, Bill Wolff.
HTML5 Fundamentals By RaedRASHEED 2015.
Video, audio, embed, iframe, HTML Form
CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
HTML 5 The next generation of web programming. WHERE IT ALL BEGAN.
CANVAS Fundamentals. What is Canvas? Canvas is a medium for oil painting. One of the earliest oils on canvas is a French Madonna from Canvas is.
Forms. Form An HTML form is a section of a document containing normal content, special elements called controls (checkboxes, radio buttons, buttons, etc.),
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML 5 Tutorial Chapter 9 Form Attributes. New Form Attributes HTML5 has several new elements and attributes for forms. New form attributes : autocomplete.
Mark Branom, Continuing Studies.  HTML5 overview – what’s new?  New HTML5 elements  New HTML5 features  Guided Demonstrations  Forms  Video  Geolocation.
IS1500: Introduction to Web Development
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Director of Computer Center, DaYeh University Ku-Yaw Chang.
HTML Forms What is a form.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
Building the User Interface by Using HTML5: Text, Graphics, and Media Lesson 2.
HTML and CSS- Layout. HTML Layout Frame Table – Block HTML5 layout elements.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
Suzanne J. Sultan Javascript Lecture 2. Suzanne J. Sultan function What is a function> Types of functions:  Function with no parameters  Function with.
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
表單 (Form)
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
IDK0040 Võrgurakendused I harjutus 05: Forms Deniss Kumlander.
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements  Always name.
HTML : Forms, Frames Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
HTML and FORMS.  A form is an area that can contain form elements.  Form elements are elements that allow the user to enter information (like text fields,
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
DISEÑO DE PÁGINAS WEB HTML Y CSS Tema 5: Formularios Jose Miguel Vidagany Igual.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
HTML Forms Forms, Controls, Fields, Inputs, Submission, Validation SoftUni Team Technical Trainers Software University
HTML Forms Chapter 9 pp Basic Form Join our list Name:
1. History, Vision & Future of HTML5 1.1 What Is HTML5? Successor of HTML 4.01 and XHTML 1.1 It comes with new tags, features and APIs Below is a non exhaustive.
HTML5 Forms Forms are used to capture user input …
HTML Forms.
HTML Form. HTML forms are used to collect user input. The element defines an HTML form: Form elements are different types of input elements, checkboxes,
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
1 Web Engineering Forms Lecture 05. FORMS Its how HTML does interactivity. There are quite new feature in HTML5. But the fundamental idea does not change.
(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.
2.4. Choose and configure HTML5 tags to organize content and forms Choose and configure HTML5 tags for input and validation. Building the User Interface.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Web Forms. Web Forms: A form allows our web visitors to submit information to us. Some examples uses for forms are to let the web user contact us, fill.
TNPW1 Ing. Jiří Štěpánek.  In current version (XHTML 1.0 strict)  No multimedia elements  No semantics elements  Only few input types  Only few document.
HTML for web designing short course. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
Session I How to Work with Forms Chapter 11 - How to Work with Formswww.profburnett.com.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
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.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
HTML 5.
HTML CS422 Dick Steflik.
Canvas Notes
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Web Systems Development (CSC-215)
HTML Forms Internet Technology.
HTML Forms Internet Technology.
HTML5 - 2 Forms, Frames, Graphics.
Presentation transcript:

CHAPTER 2 HTML & HTML5 II อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1

Content HTML Forms HTML Form Elements HTML Input Types HTML5 Input Types HTML Input Attributes HTML5 Attributes HTML5 Introduction 2

Content HTML5 Semantic Elements HTML5 Migration HTML5 Canvas HTML5 SVG HTML5 Video HTML5 Audio 3

HTML Forms The Element HTML forms are used to collect user input.. form elements. 4 The Element The element is the most important form element. TypeDescription textDefines normal text input radioDefines radio button input (for selecting one of many choices) submitDefines a submit button (for submitting the form)

HTML Forms (cont.) Text Input First name: Last name: 5

HTML Forms (cont.) Radio Button Input Male Female 6

HTML Forms (cont.) The Submit Button First name: Last name: 7

HTML Forms (cont.) The Action Attribute The action attribute defines the action to be performed when the form is submitted. 8 The Method Attribute The method attribute specifies the HTTP method (GET or POST) to be used when submitting the forms: or

HTML Form Elements The Element The most important form element is the element. The element can vary in many ways, depending on the type attribute. 9 The Element (Drop-Down List) The element defines a drop-down list: Volvo Saab Fiat Audi

HTML Form Elements The Element The cat was playing in the garden. 10 The Element Click Me!

HTML Form Elements HTML5 Element 11

HTML Form Elements HTML5 Element Username: Encryption: 12

HTML Form Elements HTML5 Element = 13

HTML Input Types Input Type: text First name: Last name: 14 Input Type: password User name: User password:

HTML Input Types (cont.) Input Type: submit First name: 15 Input Type: radio Male Female

HTML Input Types (cont.) Input Type: checkbox I have a bike I have a car 16 Input Type: button

HTML5 Input Types HTML5 added several new input types: – color – date – datetime – datetime-local – – month – number – range – search – tel – time – url – week *Input types, not supported by old web browsers, will behave as input type text. 17

HTML5 Input Types (cont.) Input Type: date Birthday: 18 Input Type: color Select your favorite color:

HTML5 Input Types (cont.) Input Type: range 19 Input Type:

HTML Input Attributes The value Attribute First name: Last name: 20 The readonly Attribute First name: Last name:

HTML Input Attributes (cont.) The disabled Attribute First name: Last name: 21 The size Attribute First name: Last name:

HTML5 Attributes HTML5 added the following attributes for : – autocomplete – autofocus – form – formaction – formenctype – formmethod – formnovalidate – formtarget – height and width – list 22 – min and max – multiple – pattern (regexp) – placeholder – required – step and the following attributes for : – autocomplete – novalidate

HTML5 Introduction What is New in HTML5? The DOCTYPE declaration for HTML5 is very simple: The character encoding (charset) declaration is also very simple: HTML5 Example: Title of the document Content of the document

HTML5 Introduction (cont.) New HTML5 Elements The most interesting new elements are: New semantic elements like,,, and. New form control attributes like number, date, time, calendar, and range. New graphic elements: and. New multimedia elements: and. 24

HTML5 Semantic Elements What are Semantic Elements? A semantic element clearly describes its meaning to both the browser and the developer. Examples of non-semantic elements: and - Tells nothing about its content. Examples of semantic elements:,, and - Clearly defines its content. 25 New Semantic Elements in HTML5

HTML5 Semantic Elements (cont.) HTML5 Element WWF The World Wide Fund for Nature (WWF) is HTML5 Element What Does WWF Do? WWF's mission is to stop the degradation of our planet's natural environment, and build a future in which humans live in harmony with nature.

HTML5 Semantic Elements (cont.) HTML5 Element What Does WWF Do? WWF's mission: WWF's mission is to stop the degradation of our planet's natural environment, and build a future in which humans live in harmony with nature. 27 HTML5 Element Posted by: Hege Refsnes Contact information:

HTML5 Semantic Elements (cont.) HTML5 Element HTML | CSS | JavaScript | jQuery 28 HTML5 Element My family and I visited The Epcot center this summer. Epcot Center The Epcot Center is a theme park in Disney World, Florida.

HTML5 Migration Migration from HTML4 to HTML5 29 Typical HTML4Typical HTML5

HTML5 Canvas The HTML element is used to draw graphics on a web page. The graphic to the left is created with. It shows four elements: a red rectangle, a gradient rectangle, a multicolor rectangle, and a multicolor text. 30 Basic Canvas Example Drawing with JavaScript var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); ctx.fillStyle = "#FF0000"; ctx.fillRect(0,0,150,75);

HTML5 Canvas (cont.) 31 Draw a Line var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); ctx.moveTo(0,0); ctx.lineTo(200,100); ctx.stroke(); Draw a Circle var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); ctx.beginPath(); ctx.arc(95,50,40,0,2*Math.PI); ctx.stroke();

HTML5 SVG 32 What is SVG? SVG stands for Scalable Vector Graphics SVG is used to define graphics for the Web SVG is a W3C recommendation SVG Circle

HTML5 SVG (cont.) 33 SVG Rectangle SVG Rounded Rectangle

HTML5 Video 34 The HTML Element Your browser does not support the video tag. HTML Autoplay Your browser does not support the video tag.

HTML5 Audio 35 The HTML Element Your browser does not support the audio element.

36 THE END