© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Slides:



Advertisements
Similar presentations
Chapter 15 HTML 5 Video and Audio Intro to HTML5 “Computers and Creativity” Richard D. Webster, COSC 109 Instructor Office: 7800 York Road, Room 422 |
Advertisements

MASTERY OBJECTIVE: Learn parts of an html document Learn basic html tags HTML-An Introduction.
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.
Tim Berners-Lee authors HTML in 1991, assisted by his colleagues at CERN,
Neal Stublen A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”
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.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
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.
Lesson 4.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Week 1: Introduction to HTML and Web Design
HTML Structure & syntax
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 9 HTML 5 Video and Audio
Chapter 17 The Need for HTML 5.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
HTML CS 4640 Programming Languages for Web Applications
Web Systems & Technologies
Web Architecture & HTML
HTML 5.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Web Development & Design Foundations with HTML5 8th Edition
Chapter 8 Introduction to HTML
Introduction to HTML5.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Coding, Testing and Valdating a Web Page
Introduction to HTML5.
INTRODUCTION TO HTML AND CSS
PPT By:Gaurav Jaiswal Singsys Pte. Ltd.
XHTML Basics.
HTML 5 Tutorial Chapter 1 Introduction.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Web Development & Design Foundations with HTML5 8th Edition
Intro to Web Development Class A Review
Introduction to HTML 5.
Introduction to HTML5.
XHTML Basics.
XHTML Basics.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Intro to Web Development HTML Structure
INTRODUCTION TO HTML AND CSS
HTML 5 Training HTML 5 SYMANTICS [Notes to trainer:
Ground to Roof HTML/HTML5
XHTML Basics.
Introduction to HTML5.
XHTML Basics.
Creating a Basic Web Page using HTML
Lesson 2: HTML5 Coding.
Introduction to HTML5.
محمد احمدی نیا XHTML محمد احمدی نیا
HTML CS 4640 Programming Languages for Web Applications
Creating Web Documents
Presentation transcript:

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. "Digital Media Primer" Yue-Ling Wong, Copyright (c)2016 by Pearson Education, Inc. All rights reserved. © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Chapter 8 Introduction to HTML Part 3 HTML5 © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

In this lecture, you will learn: A list of new features in HTML5 Key differences between HTML5 and XHTML Basic structure of an HTML5 document © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. HTML 5 Latest revision of HTML Backward compatible New key features: video and audio tags content-specific tags tags for form elements canvas element storage of user data © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Video and Audio Tags Allow simple code for adding video and audio on Web pages Video and audio are played back by the Web browser's built-in player, not plug-ins © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Content-Specific Tags Examples: <footer>, <header>, <nav>, <article>, <section>, <figure>, <summary>, <aside> Allow mark up content by semantics Provide a standardized system to classify the information on Web pages © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Form Elements Examples: date picker, color picker, numeric stepper, new input types (email, url, and search) To enhance user experience of filling out forms © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Canvas Allows drawing graphics and placing images dynamically inside it using JavaScript Visual content inside it can be scripted to change over time (hence animation) and in response to the user interaction (mouse clicks and key presses) Used for animation and game development © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Storage of User Data Approx. 5 MB depending on browsers Larger data limit than cookies (4 KB limit) Storage and retrieval of data on the user's device; i.e., no need for databases or user accounts set up on the server © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. XHTML vs. HTML 5 DOCTYPE declaration Character encoding Cases for tag and attribute names Values of attributes Boolean attribute End tag © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. DOCTYPE Declaration XHTML HTML 5 Three doctypes: Strict, Transitional, and Frameset For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> Only one simplified doctype declared like this: <!DOCTYPE HTML> © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Character Encoding XHTML HTML 5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> Simplified as follows: <meta charset"UTF-8"/> © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Cases for Tag and Attribute Names XHTML HTML 5 All lowercase No restriction © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Value of an Attribute XHTML HTML 5 Enclosed in quotation marks Does not have to be in quotation marks © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Boolean Attribute XHTML HTML 5 The value "true" or "false" has to be written out and enclosed in quotation mark; for example: <div hidden="true" /> No need to write out the value—just the presence of the attribute means it is true; for example: <div hidden /> © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. End Tag XHTML HTML 5 Required for each start tag Not required; thus, self-closing is not required for those tags without content, such as br and img © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. HTML 5 Basic Structure <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>This is a title of the page</title> </head> <body> <p>This is the content of the Web page </body> </html> © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. An HTML 5 Document Arbitrary: cases for tags, pairing tags, uses of quotation marks. Still a valid HTML 5 document. OK to still follow the rules of XHTML <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>This is a title of the page</title> </head> <body> <p>This is the content of the Web page.<br> <img src="images/demo.png" alt="demo"> </p> </body> </html> <!doctype html> <HtML lang=en> <hEAd> <meta charset=utf-8> <TITLe>This is a title of the page</tiTLE> <boDY> <P>This is the content of the Web page.<br> <IMg src=images/demo.png alt=demo> Easy to read Hard to read © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Markup Validator http://validator.w3.org/ to validate Web documents © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Questions Note to instructor: Depending on your preference, you may want to go over the review questions at the end of this lecture as an instant review or at the beginning of next lecture to refresh students' memory of this lecture. © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question What are the 5 new features of HTML5 that are overviewed in this chapter? video and audio tags content-specific tags tags for form elements canvas element storage of user data © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Which of the following is correct about HTML5? Three doctypes: Strict, Transitional, and Frameset Only one simplified doctype declared like this: <!DOCTYPE HTML> B © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Which of the following is correct about cases for the tag and attribute names in HTML5? No restriction on cases All lowercase All uppercase Capitalized A © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Which of the following is correct about the use of quotation marks for the attribute value in HTML5? No quotation marks are required. The value has to be enclosed in quotation marks. A © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Which of the following is correct about the use of end tags in HTML5? Not required. Required. A © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. Review Question Which of the following is correct character encoding declaration in HTML5? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="UTF-8" /> B © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.