Web Development Basics Lecture 4 – HTML 5. Introduction  HTML 5 is the next major revision of the HTML standard  Currently under development  Started.

Slides:



Advertisements
Similar presentations
HTML5, OVERVIEW AND NEW FEATURES PowerPoint by Mason O’Mara.
Advertisements

LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 17: Video, Audio, and Other MultiMedia.
More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54
HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio.
Neal Stublen Pre-HTML5 Solutions  Audio and video were embedded in pages using plug-ins Apple Quicktime Microsoft Silverlight Adobe.
UNIT K: INCORPORATING VIDEO AND AUDIO 1 Encoding: the process of transforming moving image and/or sound into a digital file. Each encoding method known.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
HTML 5 Tutorial Chapter 1 Introduction. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML.
XML To this point, we’ve pretty much ignored or brushed over the use of xml What is xml? – xml is eXtensible Markup Language – it is a metalanguage for.
Transitioning to HTML5 and CSS3 Patrick Carey, Cengage Learning Author.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 4: Tables and Frames.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
Chapter 14 Introduction to HTML
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
HTML 5 Tutorial Chapter 9 Form Attributes. New Form Attributes HTML5 has several new elements and attributes for forms. New form attributes : autocomplete.
Session: 11. © Aptech Ltd. 2HTML5 Audio and Video / Session 11  Describe the need for multimedia in HTML5  List the supported media types in HTML5 
CS105 Introduction to Computer Concepts HTML
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
IT Engineering I Instructor: Rezvan Shiravi
Multimedia and Web Technology Prepared by: Asst. Prof. Maryam Eskandari.
SIG WEB January 31, 3PM. What is HTML5? What it is: Allows for better intergration of media consumption. A new open standard Provides new APIs.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
HTML 5.0 By: Grant Henke Nov To Be Covered What is HTML? A Brief History of HTML HTML 5.0 – Page Structure – Other New Elements – Changed Elements.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Forms.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
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.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi.
Introduction to Web Site Development John Hurley Department of Computer Science California State University, Los Angeles Lecture 4: Favicons Tables and.
2 If aliens came to this solar system and observed humans over the last several years, what would they think is the most significant benefits of the.
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
HTML5 Introduction to Web Programming. Plan of the course HTML5 Structure of a document Main HTML Tags –Headings –Paragraphs –Links –Tables –Forms –Images.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
Tables creating a table within a web page. What makes up a table? Columns Rows.
INT222 – Internet Fundamentals Week 8: Using New HTML features 1.
CHAPTER 8 Multimedia 1. Using Multimedia ❖ Multimedia: the combination of text, sound, and video to express an idea or convey a message. ❖ Podcasts: a.
XHTML Introductory1 Frames Chapter 5. XHTML Introductory2 Objectives In this chapter, you will: Work with the Frameset Document Type Definition (DTD)
Chapter 2 Markup Language By : Madam Hazwani binti Rahmat
Advanced HTML Tags:.
HTML CS 4640 Programming Languages for Web Applications
Working with Tables: Module A: Table Basics
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
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
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Essentials of Web Pages
Introduction to HTML.
In this session, you will learn to:
Creating a Basic Web Page using HTML
HTML5 - 2 Forms, Frames, Graphics.
Web Client Side Technologies Raneem Qaddoura
Web Programming and Design
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

Web Development Basics Lecture 4 – HTML 5

Introduction  HTML 5 is the next major revision of the HTML standard  Currently under development  Started by the WHATWG in June 2004  Accepted by W3C in 2007  Current status:  Living Standard state at the WHATWG  Candidate Recommendation at W3C (2013)  W3C Recommendation would occur in the year 2022 or later (Ian Hickson (Google, Inc) editor of HTML5)

Browser Support  The latest versions of Safari, Chrome, Firefox, Internet Explorer and Opera support some HTML5 features.  Internet Explorer <= 8; DON’T support HTML5!  Script to make IE <= 8 building a proper HTML5 DOM

HTML4.1 Cleaning  The following tags are not in HTML 5  because their are presentational: ,,,,,,. Use CSS. ,. Use CSS 3. . Use or. . Marking keyboard input ; for variables ; for computer code ; and for computer output.  (still valid but discouraged). Indicate emphasis ; marking up keywords ; and for reference purposes.

HTML4.1 Cleaning  because using them damages usability and accessibility: ,,. Either use or and CSS or use server-side includes.  not been used often, created confusion, or their function can be handled by other elements: . Created confusion. use for abbreviations.  use or.  usage can be replaced by usage of controls.  has been obsoleted in favor of.

HTML4.1 Cleaning  The following attributes are obsolete and must not be used:  presentational attributes are better handled by CSS:  alink, link, text, vlink, background attributes on body.  bgcolor attribute on table, tr, td, th and body.  align attribute on caption, iframe, img, input, object, legend, table, hr, div, h1 – h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr.  frameborder, scrolling, marginheight and marginwidth attributes on iframe.  hspace and vspace attributes on img and object.

HTML4.1 Cleaning  noshade, size attributes on hr.  compact, type attributes on li, ol and ul.  border, frame, rules, cellpadding and cellspacing attributes on table.  nowrap attribute on td and th.  valign attribute on col, colgroup, tbody, td, tfoot, th, thead and tr.  height, width attributes on hr, table, td, th, col, colgroup and pre.  nohref attribute on area.  Etc. n-conforming-features n-conforming-features

Simplify  In HTML4.1 document's title your document's content goes here

Simplify  And now in HTML5 Example document your document's content goes here

Simplify  And with optional tags in HTML5 Example document your document's content goes here  Omitting a tag does not mean it is not present; it is implied, but it is still there.  Be careful, you must follow strict rules  onal-tags onal-tags

Better structure  represents a group of introductory or navigational aids.  represents a footer for a section and can contain information about the author, copyright information, etc.  represents a generic document or application section. It can be used together with the h1, h2, h3, h4, h5 and h6 elements to indicate the document structure.

Better structure  represents an independent piece of content of a document, such as a blog entry or newspaper article.  represents a section of the document intended for navigation.  represents a piece of self-contained flow content, typically referenced as a single unit from the main flow of the document. Optionally can contain as caption.  represents a piece of content that is only slightly related to the rest of the page.

Multimedia  tag defines sound, such as music or other audio streams. tag defines video, such as a movie clip or other video streams.  Attributes:  src The URL of the audio/video to be play.  autoplay start playing as soon as it is loaded.  controls shows the controls (e.g. play/pause button).  loop start over again every time it is finished.  preload (none, auto, metadata) when/what to load.  muted mute the sound.  height, width set size only for video.  mediagroup to link multiple media elements together.  poster show an image only for video.

Multimedia – The WAR  Ogg (.ogg,.ogv,.oga)  Free and open container format  Theora video and Vorbis and Opus audio codecs  MP4 (.mp4,.mp3)  Proprietary (MPEG LA) standard  Cisco makes a licensed H.264 binary module available for free  H.264 video and AAC and MP3 audio codecs  H.265 under standardization  WebM (.webm)  royalty-free patent license  VP8 and VP9 video and Vorbis and Opus audio codecs

Multimedia  To provide alternative for audio and video, you can nest the tag.  With attributes: src and optional media and type.  E.g. Sorry, your browser don't support audio!  Like for text and images, respect the copyright!

Multimedia  The tag allows to specify explicit external timed text tracks for media elements.  Attributes:  kind (subtitles (default), captions, chapters, descriptions, metadata) specifies the kind of text track.  src gives the address of the text track data.  srclang gives the language of the text track data.  label gives a user-readable title for the track.  default specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate.

Multimedia  is currently supported by Chrome, Opera and IE only.

MathML and SVG  tag is use to insert mathML elements.   tag to insert SVG graphics.  some math: x = y 3 And svg:

More formatting  represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context.  represents a measurement, such as disk usage.  represents a date and/or time.  represents a line break opportunity. , and allow for marking up ruby annotations. (Used in East Asia, to show the pronunciation of East Asian characters (furigana).)

Other new tags  is used for plugin content.  represents a completion of a task, such as downloading or when performing a series of expensive operations.  is used for rendering dynamic bitmap graphics on the fly, such as graphs or games.  represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window.

Other new tags  represents some type of output, such as from a calculation done through scripting.  represents additional information or controls which the user can obtain on demand. The provides its summary, legend, or caption.

Form  New tags for html form:  together with the list attribute for can be used to make comboboxes.  represents control for key pair generation.  Attributes: keytype (e.g. rsa), challenge  New attributes for :  type: tel, search, url, , datetime, date, month, week, time, datetime-local, number, range, color.  autocomplete, min, max, multiple, pattern and step.

Form  New attributes  autofocus provides a declarative way to focus a form control during page load.  placeholder represents a hint intended to aid the user with data entry.  form for controls to be associated with a form. I.e. elements can now be placed anywhere on a page.  required indicates that the user has to fill in a value in order to submit the form.

Form  The element has a novalidate attribute that can be used to disable form validation submission (i.e. the form can always be submitted).  The and elements have formaction, formenctype, formmethod, formnovalidate and formtarget as new attributes.

Other new attributes  reversed for indicates that the list order is descending.  The value attribute for the element is no longer deprecated as it is not presentational. The same goes for the start attribute of the element.  The has a new attribute called async that influences script loading and execution.  The has a new attribute called sizes. It can be used in conjunction with the icon relationship.

Other new attributes  The has three new attributes called sandbox, seamless, and srcdoc which allow for sandboxing content, e.g. blog comments.  The has a new scoped attribute which can be used to enable scoped style sheets.  The contenteditable attribute indicates that the element is an editable area.  The draggable attribute can be used together with the new drag & drop API.  more… attributeshttp:// attributes

Events  New mouse events  ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop  onmousewheel, onscroll  Multimedia events  onplay, onplaying, onpause, onseeked, onseeking, onwaiting, onvolumechange, oncanplay, oncanplaythrough, onloadstart, onloadeddata, onloadedmetadata, etc.

Events  Window events  onoffline, ononline  onpagehide, onpageshow  onbeforeprint, onafterprint  Etc.  Form events  onformchange, onforminput, oninput, oninvalid, oncontextmenu

New API  API for playing of video and audio which can be used with the new and elements.  An API that allows a Web application to register itself for certain protocols or media types.  Editing API in combination with a new global contenteditable attribute.  API that exposes the history and allows pages to add to it to prevent breaking the back button.  Drag & drop API in combination with a draggable attribute. 

New API  Geolocation API provides scripted access to geographical location information associated with the hosting device.  javascript/ javascript/  An API that enables offline Web applications.  Good example:

Sources   apps/current-work/multipage apps/current-work/multipage     -conforming-features -conforming-features  