21
Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins, published by O’Reilly 2012 and w3schools.com

Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

Embed Size (px)

Citation preview

Page 1: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

Chapter 10History of HTML & HTML introduction

Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins, published by O’Reilly 2012 and w3schools.com

Page 2: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

In this chapterHistory of HTMLHTML 5

Page 3: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

The birth of HTML

Page 4: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

HTML Blows and standardization

Page 5: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

HTML 4.0 and 4.01and XHTMLHTML in 1998HTML in 1999

◦separation of structure and presentation and improving accessibility

XML◦Why is needed?

XHTML 1.0◦Strict HTML 4.01

Page 6: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

More works on XHTMLXHTML 2.0

◦Not Backward-compatible◦Hard for Browser Implementation

XHTML 2.0 -> stuck for 10 yearsXHTML -> HTML 5

Page 7: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

Hello HTML 5.0In, 2004

◦WHATWG: Web Hypertext Application Technology Working Group

◦real-world authoring practices and browser behavior

W3C HTML5 Working Group◦Based on WHATWG◦Merge XHTML 2.0 to HTML5

Page 8: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

HTML 4.01 legacy

Page 9: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

Meet the DTDDTD: Document Type DefinitionDTDs in HTML 4.01

◦Transitional DTD◦Strict DTD◦Frameset DTD◦E.g. www.w3.org/TR/html4/strict.dtd

DTDs in XHTML 1.0

Page 10: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

DOCTYPE declaration

Page 11: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

What do the pros do before HTML 5.0Follow the XHTML 1.0 strict DTD

◦No deprecated and presentational elements

◦Use style sheets Validate the pages

◦https://validator.w3.org

Page 12: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

What’s new in HTML 5A new DOCTYPENew elements and attributesObsolete 4.01 elementsAPIs

Page 13: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

New DOCTYPERead fun facts on page 185.HTML 4.01 -> HTML 5

◦No DTD needed◦Easy declaration

Compared with the one in HTML 4.01

◦What should we use for now? HTML 4.01 DTD, XHTML 1.0 DTD and HTML 5

Page 14: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

New Elements and Attributes

New Elements◦On Page 197.◦W3Schools.com

Semantic/ Structural, why not presentational?

Semantic elements

Page 15: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

Semantic ElementsWhen a layout becomes popular

Page 16: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

New AttributesNew Form Input Attributes

◦Meet the new attributes W3Schools

New Global Attributes◦W3Schools

What is the trend?◦More logical◦More functional◦High encapsulation

Page 17: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

Obsolete 4.01 elementsFrom textbook page 189

Page 18: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

APIsMultimedia APISession History APIDrag and Drop APIWeb workers APIWeb socket APIOthers

Page 19: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

Add video and audioAdd video:

◦<video src=“” poster=“” controls>◦Controls:

Autoplay Loop Muted Preload: auto, none, metadata Examples in

http://www.cs.gsu.edu/~gliu6/2014fall/csc2320/Schedule.htm#videos

Page 20: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

What is the future browserThe trend

◦High isolation (Semantic, presentational, logical)

◦High encapsulation Common use combinations like input

“date”

What is the future browser?◦A platform?◦An operation system?◦All-in-One software?

Page 21: Chapter 10 History of HTML & HTML introduction Disclaimer: All words, pictures are adopted from “Learning Web Design (4th.)” by Jennifer NiederstRobbins,

HomeworkRead Chapter 10Try new input types in chapter 9