Getting Started with HTML5

Total Page:16

File Type:pdf, Size:1020Kb

Getting Started with HTML5 Lesson 1 Getting Started with HTML5 ✓ The W3C and WHATWG work together to keep the development of the HTML5 specification moving forward. ✓ HTML5 offers new features for editable content, inserting audio and video, and more. ✓ HTML documents include a DOCTYPE, root element, head, and body. ✓ The HTML document tree sees each element in an HTML document kind of like a node on a family tree. ✓ Different web browsers support and display HTML5 features differently. COPYRIGHTED MATERIAL 004_9781118074756-ch01.indd4_9781118074756-ch01.indd 7 66/21/12/21/12 111:531:53 AAMM 1. What’s the difference between the W3C and WHATWG? Find out on page ...................................................................................... 10 2. What new options does HTML5 offer for fonts and text editing? Get the lowdown on new text features on page ...................................14 3. What appears at the top of every HTML document? Flip to page ............................................................................................... 18 4. How do you insert a web page title in the browser’s title bar? The details are on page ...........................................................................20 5. What’s the difference between block elements and inline elements? If you’re intrigued, check out page ........................................................ 22 004_9781118074756-ch01.indd4_9781118074756-ch01.indd 8 66/21/12/21/12 111:531:53 AAMM n this lesson, you start writing your own web code right away. Well, Ialmost. I walk you through a little history of where HTML5 comes from and why it’s still evolving — essential points to understand before you start creating your own web pages. After that though, you jump right into creating a framework for a web page, using a simple example page called Hello HTML as a reference point. You learn basic concepts about HTML elements, too. After you get started, you discover how easy writing your own HTML can be. Introducing HTML5 HTML5 is stepping up to the many challenges that the modern web user presents. At the time of this writing, HTML5 is not yet standard — the W3C is working on the specification. However, many web browsers are already being updated to conform to the HTML5 specification. Although HTML5 has many new additions and features, it still includes fea- tures from previous versions of HTML. (Otherwise you’d have to rebuild all your existing sites!) The following sections introduce you to what still works and what exciting new features HTML5 has to offer. Understanding the evolution of HTML With HTML5, HTML has come of age. Tim Berners-Lee invented HTML ostensibly for the exchange of scientific and technical documents. Although 1993 is credited as the official invention date, he had, in fact, been tinkering with it since the 1980s. His inspired stroke of genius was to envision an interconnected web of self-descriptive documents connected by hyperlinks, and his energy and dedication made this idea a reality. Because HTML grew rapidly, going through three versions in a short period of time, it became quite unruly and littered with styling tags and attri- butes. Browsers didn’t help, tolerating all kinds of markup and doing their best to interpret illegal documents (that is, documents that didn’t conform to the rules of HTML). To help curb this unruliness, HTML was passed off to the sterner tutelage of XML, producing XHTML. 004_9781118074756-ch01.indd4_9781118074756-ch01.indd 9 66/21/12/21/12 111:531:53 AAMM 10 Lesson 1 In XHMTL, all style tags were deprecated (or phased out), and the newly created Cascading Styling Sheets (CSS) was used instead for styling. This certainly got things under control, and authors gradually moved over to the new paradigm and started creating legal documents. However, the XML definitions were somewhat constricting and, to a certain extent, curtailed development. For this reason, the Web Hypertext Application Technology Working Group (WHATWG) group was founded; it freed HTML from the con- straints of the XML Document Type Definition (DTD) and allowed continuous development of HTML. The World Wide Web Consortium (W3C) soon fell into line with HTML5, and the two groups have worked almost in lockstep, as you discover later in this lesson. Not to push an analogy too far, but HTML is now officially free of its parents and faces a bright and almost limitless future. In HTML5, you find the following changes and innovations: ✓ Style attributes and style tags are obsolete. ✓ Numerous new semantic tags enable designers and developers to fine- tune how web page content is marked up. ✓ Closer integration with scripting lan- guages provides several new events and LINGO has eased the integration of scripts with markup. A semantic tag is a tag whose name describes the type of con- ✓ Improper markup is handled in an tent it contains. So, for example, improved, and standardized, way. heading tags contain headings. ✓ Better control over multimedia helps website visitors viewing media on mobile devices. Introducing W3C and WHATWG W3C and WHATWG have the most influence on what’s happening with web languages. Although these organizations work together, they approach the changes in HTML a bit differently. Throughout this book, I refer to W3C and WHATWG documentation, which — according to the Ian Hickson, the editor of HTML5 — originate from the same source documents. They’re the Rosetta Stone, if you will, for all things web and are the places you go if you want to read the actual working recommen- dations for HTML5 and follow their progress. Interpreting them, however, may be another matter altogether. 004_9781118074756-ch01.indd4_9781118074756-ch01.indd 1010 66/21/12/21/12 111:531:53 AAMM 11 Introducing HTML5 W3C The W3C is the international body that develops the standards driving the web. Tim Berners-Lee, GO ONLINE the guy who invented the original web, is the The W3C’s home on the web is director of the W3C — a pretty logical relation- www.w3c.org. Here you find ship! This group — which comprises designers, all the working drafts and current web browser developers, and executives — specifications for HTML5, CSS3, publishes the recommendations and speci- and their predecessors, as well fications that become the basis for how web as countless discussions around browser developers support standards. changes and new ideas. The W3C’s work on web standards The W3C works on a number of different things is done in years-long cycles of and — most importantly to anyone interested in development, analysis, and ulti- designing a site based on HTML5 — helps drive mately consensus (though often the development of the HTML5 and CSS3 stan- controversial) among its members. dards, along with all the (many!) components that go into them. The W3C is not just about the web as you typically know it through the major browsers, either. Every year, the W3C focuses on different aspects of web technology to address current and future needs. As this book goes to press, the W3C has five major areas of focus: ✓ Web applications: Combining video, graphics, style, fonts, geolocation, 3D, and other technologies (both locally and across networks) to create new forms of entertainment, games, education, governance, social net- working, and so on. ✓ Data and service integrations: As the web grows in size and scope, more and more data is available to use and analyze for countless pur- poses. The W3C explores ways to integrate and share data across applications. ✓ Web of trust: Trust and data security is an ongoing issue across the web. The W3C explores better ways to secure data even (and especially) while finding ways to share it. ✓ Television, mobile, and the web of devices: The web is no longer lim- ited to a browser on a computer. Televisions, game devices, mobile phones, medical equipment, and more all access the web. The W3C tries to make the specification so open that it’s completely device-independent, with a particular focus on bringing the web and TV closer together. ✓ One web for all: Web accessibility is an important goal for the W3C, and it’s working to ensure that the specification permits equal access to the web independent of device, network, bandwidth, language, or disability. 004_9781118074756-ch01.indd4_9781118074756-ch01.indd 1111 66/21/12/21/12 111:531:53 AAMM 12 Lesson 1 WHATWG WHATWG (Web Hypertext Application Technology Working Group) is, as its name GO ONLINE suggests, the group of folks who focus on the WHATWG (www.whatwg.org) specification process. WHATWG is respon- has major categories of effort: sible for the HTML5 specification’s progress HTML, for people who want to along the W3C recommendation track, which read the full spec, usually for is a long and arduous process. developers of browsers, readers, and so on; the Web Dev Edition, WHATWG is founded on open-source com- for humble web developers; Web munity principles: Unlike the W3C, anyone Apps 1.0, for developers who build with an interest in the process can con- apps and APIs; as well as the tribute at no cost. The contributions are various conversation platforms moderated by a core group who research available to people interested in the various ideas, suggestions, and designs following or contributing. and then incorporate the good and work- As a web designer and devel- able ones into the development effort. The oper, Web Dev Edition can tell other major difference from W3C is that you things you want and need to the WHATWG group does not version and know about the most current ele- instead looks at development as a continu- ments, attributes, and properties ous process. At some point, the W3C will in HTML, including changes from stop the ongoing development of HTML5 previous versions, while leaving and version an HTML5 specification as a out the really technical language recommendation, which means that devel- that applies only to actual web opment is done.
Recommended publications
  • Building Native Apps for BB10/Playbook for Ios Developers
    Building native apps for BB10/PlayBook for iOS developers Ranbijay Kumar & Prakash Sainani Developer Relations – Research In Motion BlackBerry 10 SDKs Java ActionScript C/C++ C++/Qt HTML5 BlackBerry ® Android ™ ™ Adobe ® AIR ® Native SDK Cascades WebWorks Runtime Architecture Native & HTML5 Apps Android Apps Adobe AIR Apps HTML/CSS Open GL Java Action Script Cascades QML JavaScript Open AL .apk .swf WebKit JavaScript C++ C/C++ Android Runtime AIR Runtime Platform APIs Qt C++ C/C++ Network Storage Audio/Video Graphics Push i18n … QNX Kernel BlackBerry 10 Foundations Platform APIs & Core PackagesApplications Android Native Web AIR Player Runtime Runtime Runtime Application BBM™ Application Payment Advertising Push Data Notification Phone Calendar Infrastructure Service Platform Invocation Share Analytics Contacts Messages Tasks … Configuration Cascades Search Config Balance Backup / Lifecycle Utilities i18n Instrument n … Restore System Service Authenticatio Navigator Installer Launcher Multimedia SQLite NFC n Window WebKit Protocols Network DRM Crypto … Manager OSOS Memory Process Power Device IPC File System … Management Management Management Drivers The Platforms iOS BB10 UIKit Cascades / QML Application Frameworks Webkit Application Frameworks [Maps, Message …] [Qt, Maps, PIM, Share …] Graphics and Audio Graphics and Audio Core Services Core Services (/BPS) iOS (Kernel) & Drivers Posix BB10 (QNX micro-kernel) & Drivers Types of Apps iOS BB10 Native Native (Objective C and Cocoa Touch (C/C++, QML, Cascades, UIKit , OpenGL) OpenGL) Web Apps Web Apps Native with Webview Native with Webview PhoneGap… WebWorks, PhoneGap… Native and Web Apps in BB10 C/C++ is used widely due to it’s portability. It’s a true cross-platform language (combined with POSIX) Enables Lots of BB10 Open Source Frameworks iOS can also run C/C++ apps (Objective-C++).
    [Show full text]
  • Next Media Deliverable Template
    WP 1 AND EREADING AND D 1.1.4.1 STATE-OF-THE-ART-STANDARDS Deliverable number 1.1.4.1 State-of-the art, html5-standard Author(s): Olli Nurmi Confidentiality: Public Date and status: 7.9.2011 - Status: Version 1.0 This work was supported by TEKES as part of the next Media programme of TIVIT (Finnish Strategic Centre for Science, Technology and Innovation in the field of ICT) Next Media - a Tivit Programme Phase 2 (1.1-31.12.2011) Version history: Version Date State Author(s) OR Remarks (draft/ /update/ final) Editor/Contributors 0.9 30.6.2011 draft Olli Nurmi 1.0 1.9.2011 update Olli Nurmi 1.1 28.9.2011 final Olli Nurmi 1.2 4.10.2011 final Olli Nurmi Issues about Onix is removed to separate deliverable next Media www.nextmedia.fi www.tivit.fi WP 1 AND EREADING AND D 1.1.4.1 1 (12) STATE-OF-THE-ART-STANDARDS Next Media - a Tivit Programme Phase 2 (1.1-31.12.2011) Table of Contents 1 Introduction ............................................................................................................. 3 1.1 Web browsers ................................................................................................. 3 1.2 HTML5 – an open standard ............................................................................ 4 1.3 CSS - Cascading Style Sheets ....................................................................... 6 1.4 HTML5 vs native applications ......................................................................... 6 2 HTML5/CSS3 standards ........................................................................................
    [Show full text]
  • Will HTML 5 Restandardize the Web?
    TECHNOLOGY NEWS Will HTML 5 Restandardize the Web? Steven J. Vaughan-Nichols The World Wide Web Consortium is developing HTML 5 as a stan- dard that provides Web users and developers with enhanced func- tionality without using the proprietary technologies that have become popular in recent years. n theory, the Web is a resource enhanced functionality without using “Microsoft is investing heavily in that is widely and uniformly proprietary technologies. the W3C HTML 5 effort, working with usable across platforms. As Indeed, pointed out Google our competitors and the Web commu- such, many of the Web’s researcher Ian Hickson, one of the nity at large. We want to implement key technologies and archi- W3C’s HTML 5 editors, “One of our ratified, thoroughly tested, and stable Itectural elements are open and goals is to move the Web away from standards that can help Web interop- platform-independent. proprietary technologies.” erability,” said Paul Cotton, cochair of However, some vendors have The as-yet-unapproved standard the W3C HTML Working Group and developed their own technologies takes HTML from simply describing Microsoft’s group manager for Web that provide more functionality than the basics of a text-based Web to creat- services standards and partners in Web standards—such as the ability to ing and presenting animations, audio, the company’s Interoperability Strat- build rich Internet applications. mathematical equations, typefaces, egy Team. Adobe System’s Flash, Apple’s and video, as well as providing offline At the same time though, Web QuickTime, and Microsoft’s Silverlight functionality. It also enables geoloca- companies say their proprietary tech- are examples of such proprietary tion, a rich text-editing model, and nologies are already up and running, formats.
    [Show full text]
  • Innovating Through Standardization
    Association for Information Systems AIS Electronic Library (AISeL) Pacific Asia Conference on Information Systems PACIS 2018 Proceedings (PACIS) 6-26-2018 Innovating through standardization: How Google Leverages the Value of Open Digital Platforms Yoshiaki Fukami Rikkyo Business School, Keio Research Institute at SFC, [email protected] Takumi Shimizu McGill University, [email protected] Follow this and additional works at: https://aisel.aisnet.org/pacis2018 Recommended Citation Fukami, Yoshiaki and Shimizu, Takumi, "Innovating through standardization: How Google Leverages the Value of Open Digital Platforms" (2018). PACIS 2018 Proceedings. 208. https://aisel.aisnet.org/pacis2018/208 This material is brought to you by the Pacific Asia Conference on Information Systems (PACIS) at AIS Electronic Library (AISeL). It has been accepted for inclusion in PACIS 2018 Proceedings by an authorized administrator of AIS Electronic Library (AISeL). For more information, please contact [email protected]. Innovating through standardization Innovating through standardization: How Google Leverages the Value of Open Digital Platforms Completed Research Paper Yoshiaki Fukami Takumi Shimizu Rikkyo Business School, Desautels Faculty of Management, Keio Research Institute at SFC McGill University [email protected] [email protected] Abstract The purpose of this paper is to examine how an actor strategically develops and diffuses technology standards that align with innovation trajectories while maintaining a consensus with competitors.
    [Show full text]
  • Get Started with HTML5 ● Your Best Bet to Experiment with HTML5 – Safari – Chrome As of – Beta: Firefox 4 and IE 9
    BibhasBibhas BhattacharyaBhattacharya CTO,CTO, WebWeb AgeAge SolutionsSolutions [email protected]@webagesolutions.com www.webagesolutions.com/trainingwww.webagesolutions.com/training Get Started With HTML5 ● Your best bet to experiment with HTML5 – Safari – Chrome As of – Beta: FireFox 4 and IE 9. October 2010 ● Test your browser: – html5test.com – html5demos.com – www.findmebyip.com/litmus ● JavaScript library to test for HTML5 features – www.modernizr.com Browser Support ● Dreamweaver CS5 11.0.3 update will install HTML5 compatibility pack. ● CS4 and CS3 users should download the pack from Dreamweaver Exchange. ● See a demo: – www.youtube.com/watch?v=soNIxy2sj0A DreamWeaver Story - The canvas element - Custom audio & video player - New semantic elements - Geolocation (header, section, footer etc.) - Local data storage - New form input elements - Web SQL & IndexedDB (e-mail, date, time etc.) - Offline apps - Audio and video - Messaging - CSS3 - Web worker - Push using WebSocket For web page designers For developers What's New in HTML5? SimplifiedSimplified <!DOCTYPE html> DOCTYPEDOCTYPE <html> <head> <title>Page Title</title> Simplified <meta charset="UTF-8"> Simplified charsetcharset settingsetting </head> <body> <p>Hello World</p> </body> </html> Basic HTML 5 Document ● Elements that have no special visual styling but are used to provide structure and meaning to the content. ● HTML4 semantic elements – div (block) – span (in line) ● HTML5 semantic elements – header, footer, section, article, aside, time and others..
    [Show full text]
  • University of Camerino Computer Science (LM 18) Browser Evolution
    University of Camerino Computer Science (LM 18) Browser Evolution Project of Web 2.0 Autor: Luciani Alex Prof: Vaccari Carlo License This material is distributed under the Creative Commons "Attribution - NonCommercial - Share Alike - 3.0", available at http://creativecommons.org/licenses/by-nc-sa/3.0/ . What is a Browser? A browser is a software application, it retrieves and shows elements of the web. Story Prehistory 1963: Ted Nelson: Hypertext. 1987: John Bottoms: Silversmith, SGML. 1989: Tim Berners-Lee: WWW, HTML, HTTP, W3C. 1994: Mosaic → Netscape. Story Mosaic screenshot Story First Browser War (1996 - 2004) Story Second Browser War (2004 - ...) Story January 2010, Firefox passed IE Story The Actual Situation (2011) Data from statcounter.com Browser Market Share % Browser Version Market Share % Apr 11 Apr 11 IE 44.52 IE 8.0 30.24 Firefox 29.67 Firefox 3.6 18.91 Chrome 18.29 Chrome 10.0 16.03 Safari 5.04 IE 7.0 7.82 Opera 1.91 Firefox 4.0 7.59 IE 6.0 4.14 Safari 5.0 3.83 IE 9.0 2.32 Firefox 3.5 1.99 Tech Evolution Web Browser Engines They paint the web pages interpreting the client-side scripts. Layout Engine License Main Browser Gecko Free and OpenSource Firefox Presto Proprietary Opera Trident Proprietary Internet Explorer WebKit Free (GNU LGPL) Safari, Chrome Tech Evolution Protocols Connection: HTTP. Security: SSL, HTTPS Languages and Client Side HTML, HTML5 Javascript, Ajax CSS XML, SVG WebGL Tech Evolution Ajax Example Tech Evolution Google Body Browser uses WebGL Tech Evolution GUI Evolution Google 10 Firefox 3.6 Firefox 4 Tech Evolution GUI Evolution Explorer 8 Explorer 9 Tech Evolution Browser Testing Acid Test: testing client side script languages.
    [Show full text]
  • Document Object Model
    Document Object Model Copyright © 1999 - 2020 Ellis Horowitz DOM 1 What is DOM • The Document Object Model (DOM) is a programming interface for XML documents. – It defines the way an XML document can be accessed and manipulated – this includes HTML documents • The XML DOM is designed to be used with any programming language and any operating system. • The DOM represents an XML file as a tree – The documentElement is the top-level of the tree. This element has one or many childNodes that represent the branches of the tree. Copyright © 1999 - 2020 Ellis Horowitz DOM 2 Version History • DOM Level 1 concentrates on HTML and XML document models. It contains functionality for document navigation and manipulation. See: – http://www.w3.org/DOM/ • DOM Level 2 adds a stylesheet object model to DOM Level 1, defines functionality for manipulating the style information attached to a document, and defines an event model and provides support for XML namespaces. The DOM Level 2 specification is a set of 6 released W3C Recommendations, see: – https://www.w3.org/DOM/DOMTR#dom2 • DOM Level 3 consists of 3 different specifications (Recommendations) – DOM Level 3 Core, Load and Save, Validation, http://www.w3.org/TR/DOM-Level-3/ • DOM Level 4 (aka DOM4) consists of 1 specification (Recommendation) – W3C DOM4, http://www.w3.org/TR/domcore/ • Consolidates previous specifications, and moves some to HTML5 • See All DOM Technical Reports at: – https://www.w3.org/DOM/DOMTR • Now DOM specification is DOM Living Standard (WHATWG), see: – https://dom.spec.whatwg.org
    [Show full text]
  • HTML5 Microdata and Schema.Org
    HTML5 Microdata and Schema.org journal.code4lib.org/articles/6400 On June 2, 2011, Bing, Google, and Yahoo! announced the joint effort Schema.org. When the big search engines talk, Web site authors listen. This article is an introduction to Microdata and Schema.org. The first section describes what HTML5, Microdata and Schema.org are, and the problems they have been designed to solve. With this foundation in place section 2 provides a practical tutorial of how to use Microdata and Schema.org using a real life example from the cultural heritage sector. Along the way some tools for implementers will also be introduced. Issues with applying these technologies to cultural heritage materials will crop up along with opportunities to improve the situation. By Jason Ronallo Foundation HTML5 The HTML5 standard or (depending on who you ask) the HTML Living Standard has brought a lot of changes to Web authoring. Amongst all the buzz about HTML5 is a new semantic markup syntax called Microdata. HTML elements have semantics. For example, an ol element is an ordered list, and by default gets rendered with numbers for the list items. HTML5 provides new semantic elements like header , nav , article , aside , section and footer that allow more expressiveness for page authors. A bunch of div elements with various class names is no longer the only way to markup this content. These new HTML5 elements enable new tools and better services for the Web ecosystem. Browser plugins can more easily pull out the text of the article for a cleaner reading experience. Search engines can give more weight to the article content rather than the advertising in the sidebar.
    [Show full text]
  • Analysing and Testing HTML5 Parsers
    Analysing and testing HTML5 parsers A dissertation submitted to The University of Manchester for the degree of Master of Science in the Faculty of Engineering and Physical Sciences 2015 Jose Carlos Anaya Bolaños School of Computer Science Contents Contents ............................................................................................................................ 2 List of figures ..................................................................................................................... 4 List of tables ...................................................................................................................... 5 Abstract ............................................................................................................................. 6 Declaration ........................................................................................................................ 7 Intellectual property statement ........................................................................................ 8 Acknowledgements ........................................................................................................... 9 The author ....................................................................................................................... 10 1. Introduction ............................................................................................................ 11 1.1 Goal and objectives .......................................................................................... 12 2.
    [Show full text]
  • HTML5 Web Security
    HTML5 Web Security Thomas Röthlisberger – IT Security Analyst [email protected] Compass Security AG Tel +41 55 214 41 60 Werkstrasse 20 Fax +41 55 214 41 61 Postfach 2038 [email protected] CH-8645 Jona www.csnc.ch What is this talk about? Compass Security AG Tel +41 55 214 41 60 Werkstrasse 20 Fax +41 55 214 41 61 Postfach 2038 [email protected] CH-8645 Jona www.csnc.ch Agenda What is HTML5? Vulnerabilities, Threats & Countermeasures Conclusion Demo CORS Demo Web Workers Quiz and Q&A © Compass Security AG www.csnc.ch Slide 3 The Voting Device Compass Security AG Tel +41 55 214 41 60 Werkstrasse 20 Fax +41 55 214 41 61 Postfach 2038 [email protected] CH-8645 Jona www.csnc.ch The Voting Device It enables you to participate on votings The device has no batteries, so it works autarkic You power it by shaking it until green light flashes © Compass Security AG www.csnc.ch Slide 5 The Voting Let’s give it a try... © Compass Security AG www.csnc.ch Slide 6 What is HTML5? Compass Security AG Tel +41 55 214 41 60 Werkstrasse 20 Fax +41 55 214 41 61 Postfach 2038 [email protected] CH-8645 Jona www.csnc.ch History HTML 4.01 WHATWG XHTML 1.0 XHTML 1.1 XHTML 2.0 Web Applications 1.0 HTML5 © Compass Security AG www.csnc.ch Slide 8 History HTML5 is not finished! The specification achieved CANDIDATE RECOMMENDATION status on 17 December 2012. However, it is still a draft version and may be updated.
    [Show full text]
  • HTML5 Standard and Features
    HTML5 Standard and features INF5750/9750 - Lecture 6 (Part I) Problem Area • The core language of the World Wide Web is HTML • The WWW is accessed through a number of devices • Current HTML standard was designed for creating web pages that are accessed through browsers in computers with links to other web pages • Today HTML is used to create Touch-screen websites, Games, 3D graphics, Audio-video conferencing, etc… • Still we have to think whether our applications will work across devices How to solve Standardization • HTML is different from XHTML (WHATWG, 2004) • WHATWG, a living HTML standard • W3C uses version releases (HTML5, 2014. HTML5.1 – 2016) • Testing browser compatibility part of the standard to check adherence • Remember Acid2 and Acid3? HTML-syntax & XML-syntax <!doctype html> <?xml version="1.0" encoding="UTF-8"?> <html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <head> <meta charset="UTF-8“> <title>Example document</title> <title>Example document</title> </head> </head> <body> <body> <p>Example paragraph</p> <p>Example paragraph</p> </body> </body> </html> </html> Character Encoding & Doctype <meta charset="UTF-8"> Instead of <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> No more DTDs. (earlier used for HTML quirks mode) and since HTML was SGML-based <!DOCTYPE html> Instead of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> STRICT OR TRANSITIONAL <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> What’s different in HTML5 • 28+ new elements • Many new attributes • Many changed attributes • Obsolete elements • Obsolete attributes • HTML5 does not use the terms "block- level" or "inline“ • New APIs • Extensions Content Model - Categories • Metadata content, e.g.
    [Show full text]
  • HTML 5.0 Specification Released As a Stable W3C Recommendation
    INTERNET SYSTEMS H T M L 5 TOMASZ PAWLAK, PHD MARCIN SZUBERT, PHD POZNAN UNIVERSITY OF TECHNOLOGY, INSTITUTE OF COMPUTING SCIENCE PRESENTATION OUTLINE • History and Motivation • HTML5 basics • HTML5 features • Semantics • Connectivity • Offline & Storage • Multimedia • 2D/3D Graphics & Effects • Performance & Integration • Device Access • Styling MODERN WEB APPLICATION DATABASE SERVER HISTORICAL PERSPECTIVE • 1991 — HTML Tags, an informal CERN document • 1993 — HTML Internet Draft published by the IETF • 1995 — HTML 2.0 (RFC 1866) published by the IETF • 1997 — HTML 3.2 published as a W3C Recommendation • 1997 — HTML 4.0 published as a W3C Recommendation: • Transitional, which allowed for deprecated elements • Strict, which forbids deprecated elements • Frameset, which allowed embedding multiple documents using frames • 1998 — W3C decided to stop evolving HTML and instead begin work on an XML-based equivalent, called XHTML HISTORICAL PERSPECTIVE — XHTML • 2000 — XHTML 1.0 published as W3C Recommendation: • reformulation of HTML 4 as an application of XML 1.0, offering stricter rules for writing and parsing markup: lower case tags, end tags for all elements, quoting attributes, escaping ampersands • new MIME type application/xhtml+xml enforces draconian error handling in web browsers. • combatibility guidelines: allowed serving pages as HTML (text/html) to continue using forgiving error handling in HTML parsers. • 2002-2006 — W3C released working drafts of XHTML 2.0 which break backward compatibility. • 2009 — W3C abandoned the work on
    [Show full text]