Introduction to HTML5

Similar documents
New Media Production HTML5

What is XHTML? XHTML is the language used to create and organize a web page:

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

HTML Overview. With an emphasis on XHTML

Markup Language. Made up of elements Elements create a document tree

Vebra Search Integration Guide

An Introduction To HTML5

Create a cool image gallery using CSS visibility and positioning property

HTML5 and CSS3: New Markup & Styles for the Emerging Web. Jason Clark Head of Digital Access & Web Services Montana State University Library

History of the Internet. The Internet - A Huge Virtual Network. Global Information Infrastructure. Client Server Network Connectivity

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

Web Design and Development ACS Chapter 3. Document Setup

Implementing a chat button on TECHNICAL PAPER

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

introduction to XHTML

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

Introduction to HTML5

Everything you need to know to get you started. By Kevin DeRudder

I Can t Believe It s Not

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Wireframe :: tistory wireframe tistory.

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

CS134 Web Site Design & Development. Quiz1

HTML CS 4640 Programming Languages for Web Applications

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

CS144 Notes: Web Standards

XHTML & CSS CASCADING STYLE SHEETS

A designers guide to creating & editing templates in EzPz

CPET 499/ITC 250 Web Systems. Topics

HTML5. Language of the Modern Web. By: Mayur Agrawal. Copyright TIBCO Software Inc.

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

HTML5 are we there yet? Design for web content

TRAINING GUIDE. Rebranding Lucity Web

Title: Dec 11 3:40 PM (1 of 11)

Bookmarks to the headings on this page:

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

HTML: The Basics & Block Elements

HTML. HTML is now very well standardized, but sites are still not getting it right. HTML tags adaptation

Techno Expert Solutions An institute for specialized studies!

Why HTML5? Why not XHTML2? Learning from history how to drive the future of the Web

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

HTML+ CSS PRINCIPLES. Getting started with web design the right way

Title: Sep 12 10:58 AM (1 of 38)

Module 2 (III): XHTML

Programmazione Web a.a. 2017/2018 HTML5

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Inline Elements Karl Kasischke WCC INP 150 Winter

Micronet International College

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

HTML5 MOCK TEST HTML5 MOCK TEST I

HTML. HTML Evolution

Web development using PHP & MySQL with HTML5, CSS, JavaScript

HTML Introduction to the Code

Lab 4 CSS CISC1600, Spring 2012

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

Index LICENSED PRODUCT NOT FOR RESALE

Building Your Blog Audience. Elise Bauer & Vanessa Fox BlogHer Conference Chicago July 27, 2007

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

Markup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University

How the Internet Works

How browsers talk to servers. What does this do?

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

MPT Web Design. Week 1: Introduction to HTML and Web Design

Header. Report Section. Footer

Web Publishing Basics I

django-sekizai Documentation

Introduction to ARIA and HTML5. Jared Smith & Jonathan Whiting webaim.org

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

Dreamweaver CS3 Lab 2

HTML Overview formerly a Quick Review

HTML5 and Mobile: New Markup & Styles for the Mobile Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries

Static Webpage Development

INTRODUCTION TO HTML5! HTML5 Page Structure!

Fundamentals of Website Development

Chapter 10: Understanding the Standards

Creating A Web Page. Computer Concepts I and II. Sue Norris

XML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

Web Design and Application Development

MP3 (W7,8,&9): HTML Validation (Debugging) Instruction

Udacity Frontend Nanodegree Style Guide

HyperText Markup Language (HTML)

MI1004 Script programming and internet applications

Exporting a Confluence space as a Website

Advanced HTML Scripting WebGUI Users Conference

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

HTML5 - INTERVIEW QUESTIONS

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

CMT111-01/-M1: HTML & Dreamweaver. Creating an HTML Document (Continued)

HTML5. for Masterminds. (1st Edition) J.D Gauchat

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

INTRODUCTION TO WEB USING HTML What is HTML?

First, create a web page with a submit button on it (remember from creating forms in html?):

QUICK REFERENCE GUIDE

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Transcription:

Introduction to HTML5

History of HTML 1991 HTML first published 1995 1997 1999 2000 HTML 2.0 HTML 3.2 HTML 4.01 XHTML 1.0 After HTML 4.01 was released, focus shifted to XHTML and its stricter standards. XHTML 2.0 By combining the strengths of HTML and XML, XHTML was developed. XHTML is HTML redesigned as XML. 2002-2009 XHTML 2.0 HTML5 is much more tolerant and can handle markup from all the prior versions. 2012 HTML5 Though HTML5 was published officially in 2012, it has been in development since 2004.

What is HTML5? HTML5 is the newest version of HTML, only recently gaining partial support by the makers of web browsers. It incorporates all features from earlier versions of HTML, including the stricter XHTML. It adds a diverse set of new tools for the web developer to use. It is still a work in progress. No browsers have full HTML5 support. It will be many years perhaps not until 2018 or later - before being fully defined and supported.

Goals of HTML5 Support all existing web pages. With HTML5, there is no requirement to go back and revise older websites. Reduce the need for external plugins and scripts to show website content. Improve the semantic definition (i.e. meaning and purpose) of page elements. Make the rendering of web content universal and independent of the device being used. Handle web documents errors in a better and more consistent fashion.

New Elements in HTML5 <article> <aside> <audio> <canvas> <datalist> <figure> <figcaption> <footer> <header> <hgroup> <mark> <nav> <progress> <section> <source> <svg> <time> <video> These are just some of the new elements introduced in HTML5. We will be exploring each of these during this course.

Other New Features in HTML5 Built-in audio and video support (without plugins) Enhanced form controls and attributes The Canvas (a way to draw directly on a web page) Drag and Drop functionality Support for CSS3 (the newer and more powerful version of CSS) More advanced features for web developers, such as data storage and offline applications.

First Look at HTML5 Remember the DOCTYPE declaration from XHTML? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> In HTML5, there is just one possible DOCTYPE declaration and it is simpler: <!DOCTYPE html> Just 15 characters! The DOCTYPE tells the browser which type and version of document to expect. This should be the last time the DOCTYPE is ever changed. From now on, all future versions of HTML will use this same simplified declaration.

The <html> Element This is what the <html> element looked like in XHTML: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> Again, HTML5 simplifies this line: <html lang="en"> The lang attribute in the <html> element declares which language the page content is in. Though not strictly required, it should always be specified, as it can assist search engines and screen readers. Each of the world s major languages has a two-character code, e.g. Spanish = "es", French = "fr", German = "de", Chinese = "zh", Arabic = "ar".

The <head> Section Here is a typical XHTML <head> section: <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>my First XHTML Page</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> And the HTML5 version: <head> <meta charset="utf-8"> <title>my First HTML5 Page</title> <link rel="stylesheet" href="style.css"> </head> Notice the simplified character set declaration, the shorter CSS stylesheet link text, and the removal of the trailing slashes for these two lines.

Basic HTML5 Web Page Putting the prior sections together, and now adding the <body> section and closing tags, we have our first complete web page in HTML5: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>my First HTML5 Page</title> <link rel="stylesheet" href="style.css"> </head> <body> <p>html5 is fun!</p> </body> </html> Let's open this page in a web browser to see how it looks

Viewing the HTML5 Web Page Even though we used HTML5, the page looks exactly the same in a web browser as it would in XHTML. Without looking at the source code, web visitors will not know which version of HTML the page was created with.

HTML 5 Latest revision of HTML Backward compatible New key features: 12 video and audio tags content-specific tags tags for form elements canvas element storage of user data

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 13

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 14

Form Elements Examples: date picker, color picker, numeric stepper, new input types (email, url, and search) To enhance user experience of filling out forms 15

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 16

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 17

XHTML vs. HTML 5 DOCTYPE declaration Character encoding Cases for tag and attribute names Values of attributes Boolean attribute End tag 18

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/xhtm l1/dtd/xhtml1- transitional.dtd "> Only one simplified doctype declared like this: <!DOCTYPE HTML> 19

Character Encoding XHTML HTML 5 <meta http- equiv="content- Type" content="text/html; charset=utf-8" /> Simplified as follows: <meta charset"utf- 8"/> 20

Cases for Tag and Attribute Names All lowercase XHTML HTML 5 No restriction 21

Value of an Attribute XHTML HTML 5 Enclosed in quotation marks Does not have to be in quotation marks 22

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 /> 23

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 24

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> 25

An 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> Arbitrary: cases for tags, pairing tags, uses of quotation marks. Still a valid HTML 5 document. <!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> 26 Easy to read Hard to read

Markup Validator http://validator.w3.org/ to validate Web documents 27