HTML 5.0 Technologies for Web Application Development Martin Nečaský Department of Software Engineering, Faculty of Mathematics and Physics, Charles University.

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

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?
23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
Neal Stublen Content Models  Metadata content Data not necessarily presented on the page ○ title, link, meta, style  Flow content.
NSWI142 – Web Applications Lecture 2 – HTML Martin Nečaský, Ph.D. Web Applications (NSWI142 ), Lecture 21.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Images, Tables, lists, blocks, layout, forms, iframes
Neal Stublen A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
USER INTERACTIONS: FORMS
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Table, Forms, Metatags and Frames.
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.
HTML B OOT C AMP Chapter 9 Forms Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
CIS 1310 – HTML & CSS 9 Forms. CIS 1310 – HTML & CSS Learning Outcomes  Describe Common Uses of Forms on Web Pages  Create Forms on Web Pages  Associate.
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
The New Elements © Main Menu Structure Media Canvas Form Click on one of the categories below to view information about the new HTML5 elements in.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Forms James Wang.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
HTML - Forms By Joaquin Vila, Ph.D.. Form Tag The FORM tag specifies a fill-out form within an HTML document. More than one fill-out form can be in a.
ITCS373: Internet Technology Lecture 5: More HTML.
1 Review of Form Elements. 2 The tag Used in between tags.  Form elements(text control, buttons, etc.. ) goes here. OR  Form elements(text control,
HTML Forms a form is a container for input elements on a web page input elements contain data that is sent to the web server for processing.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
Martin Kruliš, Martin Nečaský by Martin Kruliš (v1.1)1.
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
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Forms.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
HTML5 Introduction to Web Programming. Plan of the course HTML5 Structure of a document Main HTML Tags –Headings –Paragraphs –Links –Tables –Forms –Images.
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.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
Tutorial 6 Creating a Web Form
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.
TNPW1 Ing. Jiří Štěpánek.  ordered list  (list item)  unordered list  (list item)
Tutorial 6 Creating Reusable Assets and Forms. Objectives Session 6.1 – Explore the head content of a page – Add keywords to a page – Add a meta description.
HTML5 Semantic
Creating and Processing Web Forms
HTML CS 4640 Programming Languages for Web Applications
HTML 5.
HTML CS422 Dick Steflik.
Objectives Design a form Create a form Create text fields
PPT By:Gaurav Jaiswal Singsys Pte. Ltd.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 5 Introduction to XHTML: Part 2
Validation and Building Small Apps
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Objectives Explore web forms Work with form servers
HTML Forms Internet Technology.
HTML Forms Internet Technology.
The Internet 10/27/11 XHTML Forms
HTML5 - 2 Forms, Frames, Graphics.
Web Client Side Technologies Raneem Qaddoura
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

HTML 5.0 Technologies for Web Application Development Martin Nečaský Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic

History

Document Structure Document data … There is no need for mime type. The document will be transmitted with text/html Compare with HTML 4.1 or earlier.

Document Metadata data about document inside head title document’s title or name should identify document for users even used out of context base specifies document base URL for resolving relative URLs link links document to other resources style embeds style information inside document meta other metadata

Document Structure … Technologies for … <meta http-equiv="content-type" content="text/html; charset=utf-8“ /> …

More on Links link represents relationship of particular type between current document and other web resource elements link and a two kinds of links (according to HTML 5.0 specification) links to external resources links to resources which augment current document hyperlinks links to resources which are exposed to user of current document to navigate to those resources kind depends on element used and relationship type

More on Links href attribute URL of resource linked by relationship rel attribute type of relationship media attribute media linked resource applies to e.g. print, screen, all type attribute MIME type of linked resource text/html, application/xhtml+xml, text/css, application/pdf

More on Links Link type linka Description alternate HHAlternate representation of current document author HHAuthor of document icon ER-Icon representing current document stylesheet ER-Stylesheet for current document licence HHCopyright license covering current document first HHFirst document of a series current document is part of last HHLast document of a series current document is part of next HHNext document in a series current document is part of

More on Links NSWI117 – Materials <link rel="stylesheet" href="default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="default-print.css" type="text/css" media="print" /> <link rel="alternate" href="materials.pdf“ type="application/pdf" media="print" /> Author: <a href=" rel="author"> Martin Nečaský

Sectioning Content content of document is divided into sections sections are divided to subsections section element generic section article element self-contained section independently distributable and reusable e.g. blog post or newspaper article aside element denotes section related to content around and is considered separate around that content e.g. did-you-know aside box nav element denotes section with navigation links

Sectioning Content This article summarizes technologies... HTML CSS We will start with HTML. First, we will go to history. Then, we will deal with actual 5.0. Did you know that SGML is a predecessor of HTML? CSS is the second technology. Home Contact Another article

Sectioning Content there are so called sectioning roots which have own sectioning separate from the outside content: blockquote body details fieldset figure td

Section Headers and Footers header element distinguishes header of the nearest section (hierarchically) intended (but not required) to contain heading ( h1 – h6 ) footer element distinguishes footer of the nearest section (hierarchically)

Sectioning Content NSWI117 – Summary of technologies HTML We will start with HTML. Home Contact

Section Headings h1 – h6 element heading of nearest section number gives relative rank hM has higher rank than hN if one of the following is true M < N and hM and hN are in the same section hN is in subsection of section of hM hM has the same rank as hN iff they are both from the same section and M = N hgroup element heading of nearest section groups a set of h1 – h6 elements when heading has multiple levels (e.g. heading with subheadings or alternative titles)

Section Headings NSWI Summary... At this page,... HTML About HTML... HTML History HTML Today CSS About CSS... 1.NSWI117 - … 1.HTML 1.HTML History 2.HTML Today 2.CSS

Section Headings NSWI Summary... At this page,... HTML About HTML... HTML History HTML Today CSS About CSS... 1.NSWI117 - … 1.HTML 1.HTML History 2.HTML Today 2.CSS

Section Headings NSWI Summary... At this page,... HTML About HTML... HTML History HTML Today CSS About CSS... 1.NSWI117 - … 1.HTML 1.HTML History 2.HTML Today 2.CSS

Document Edits we can specify that given part of document was inserted or removed ins element represents addition to document del element represents removal from document datetime attribute time of the change

Document Edits TODO: Buy food... Wash car... Clean room... Author: My wife

Forms as you (do not) know them form is component of Web page composed of form controls user can interact with form controls by providing data which can be sent to server for further server-side processing form element form itself input, textarea and select elements various types of controls for providing data by user button element buttons

Forms as you (do not) know them Name: Phone: Preferred delivery time: Comments: Submit order

Forms as you (do not) know them form may be made better readable fieldset element Groups semantically related fields legend element field-set label label element field label title attribute may serve as hint for input field note: this is general attribute (may be used with any HTML element)

Forms as you (do not) know them Name: Contact information Phone: Timing Preferred delivery time: Comments: Submit order

Forms as you (do not) know them Submit order

Forms as you (do not) know them each field should have name specified by name attribute

Forms as you (do not) know them <input title="First name followed by family name.“ name="full_name" /> Submit order

Forms as you (do not) know them each field has type specified by type attribute default type is text prior to HTML 5 text (regular text field) password (password field) checkbox (checkbox field) radio (radio button field) button (regular button) submit (field submit button) reset (field reset button) file (file button and file path field) hidden (hidden field)

Forms as you (do not) know them Pizza Size Small Medium Large Pizza Toppings Bacon Extra Cheese Onion Mushroom

Forms as you (do not) know them each field has type specified by type attribute default type is text new types in HTML 5 search (search field) tel (phone field) url (absolute URL field) ( field) date, time, datetime (date/time field) number (number field) range (number field) color (color field)

Forms as you (do not) know them Search Phone URL Date Time Datetime Number Range Color Submit

Forms as you (do not) know them field might be further specified name attribute field name used when form is submitted maxlength attribute maximum number of characters allowed in field size attribute number of characters visible in field value attribute specifies default field value disabled attribute specifies that field is disabled when form loads

Forms as you (do not) know them <input name="full_name" maxlength="32" size="16" value="Martin Nečaský" disabled="true" title="First name followed by family name." /> Submit order

Forms as you (do not) know them field might be further specified (HTML 5) autocomplete attribute values on/off allows to disable field value autocomplete autofocus attribute gives field focus when page loads pattern attribute regular pattern for field value validation placeholder attribute hint for user to help with filling the field required attribute field value is required

Forms as you (do not) know them <input name="phone" autocomplete="off" autofocus="autofocus" pattern="[0-9]{9}" placeholder="Fill in your 9-digit phone number." required="required" /> Submit order

Forms as you (do not) know them … and even more (HTML 5) min attribute minimal value of numerical field max attribute maximal value of numerical field step attribute step for numerical field etc.

Forms as you (do not) know them select element enables to select from more options option element one of the options to select inside select element multiple attribute if present multiple options may be selected datalist element contains one or more predefined options for other field each option is specified with option element

Forms as you (do not) know them Select predefined pizza: Formaggi Prosciuto e mozzarella Pattatine fritte Pattatine fritte all'ischitana Or write your own:

Forms as you (do not) know them when form is submitted data is converted by encoding algorithm and send to selected destination using given method submission parameters are specified by attributes of form element enctype attribute specifies encoding algorithm application/x-www-form-urlencoded multipart/form-data text/plain action attribute specifies destination URL method attribute get or post

Forms as you (do not) know them <form enctype="application/x-www-form-urlencoded" action=" method="get">

Video video element allows for embedding video src, preload, autoplay, controls attributes their purpose is clear …

Video <source src="video.mp4" type="video/mp4; codecs='avc1.42E01E, mp4a.40.2'"> <source src="video.ogv" type="video/ogg; codecs='theora, vorbis'">

Canvas canvas element API for rendering graphics you can draw by JavaScript

Canvas var canvas=document.getElementById('myCanvas'); var context=canvas.getContext('2d'); for (var x = 0.5; x < 500; x += 10) { context.moveTo(x, 0); context.lineTo(x, 500); } context.strokeStyle = "#eee"; context.stroke(); context.fillStyle='#FF0000'; context.fillRect(250,250,10,20); context.fillRect(100,80,10,40);

Microformats