Differences between HTML and HTML 5



Similar documents
Unlocking the Java EE Platform with HTML 5

Research on HTML5 in Web Development

HTML5 & CSS3. ( What about SharePoint? ) presented

Web Browser. Fetches/displays documents from web servers. Mosaic 1993

Step into the Future: HTML5 and its Impact on SSL VPNs

CLASSROOM WEB DESIGNING COURSE

Outline. CIW Web Design Specialist. Course Content

Internet Technologies_1. Doc. Ing. František Huňka, CSc.

Web Design Specialist

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Fast track to HTML & CSS 101 (Web Design)

Web Development I & II*

HTML5 technologies. Ework Stockholm

TIME SCHEDULE OBJECTIVES

Short notes on webpage programming languages

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE

Software Requirements Specification For Real Estate Web Site

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Mobile Publishing. Academy of Journalism and Media, Faculty of Economic Sciences, University of Neuchâtel Switzerland

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

HTML5 and CSS3. new semantic elements advanced form support CSS3 features other HTML5 features

Programming exercises (Assignments)

Developer Tutorial Version 1. 0 February 2015

WEB DEVELOPMENT IA & IB (893 & 894)

Lesson Overview. Getting Started. The Internet WWW

HTML5 - Key Feature of Responsive Web Design

Dreamweaver CS5. Module 1: Website Development

Creating Web Pages with HTML Simplified. 3rd Edition

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

Web Authoring CSS. Module Descriptor

Interactive Data Visualization for the Web Scott Murray

Introduction to web development and JavaScript

^/ CS> KRIS. JAMSA, PhD, MBA. y» A- JONES & BARTLETT LEARNING

WEB DESIGN COURSE CONTENT

Enduring Understandings: Web Page Design is a skill that grows and develops throughout the careful planning and study of software and design.

HTML5 An Introduction

Programming in HTML5 with JavaScript and CSS3

Introduction to Dreamweaver

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

10CS73:Web Programming

HTML5 the new. standard for Interactive Web

Web Designing with UI Designing

Web. Programming. Hans- Pe0er Halvorsen, M.Sc. h0p://home.hit.no/~hansha/?page=sojware_development

JISIS and Web Technologies

HTML5 & CSS3. Jens Jäger Freiberuflicher Softwareentwickler JavaEE, Ruby on Rails, Webstuff Blog: Mail: mail@jensjaeger.

Web Design Technology

THE SAS OUTPUT DELIVERY SYSTEM: BOLDLY TAKE YOUR WEB PAGES WHERE THEY HAVE NEVER GONE BEFORE! CHEVELL PARKER, SAS INSTITUTE INC.

Part I! Web Technologies for Interactive Multimedia

Lesson 1 Quiz. 3. The Internet is which type of medium? a. Passive b. Broadcast c. One-to-one d. Electronic print

Search Engine Optimization Glossary

Chapter 10: Multimedia and the Web

Study on Parallax Scrolling Web Page Conversion Module

Mobile Web Design with HTML5, CSS3, JavaScript and JQuery Mobile Training BSP-2256 Length: 5 days Price: $ 2,895.00

HTML5 & Friends. And How They Change A Developer s Life

How To Create A Website In Drupal 2.3.3

Foundations. Web Development and Design. with HTML5. [Terry Ann Felke-Morris, Ed.D.J. 6th Edition. Harper College. Piyali Sengupta.

Web Design and Development ACS-1809

Web Authoring. Module Descriptor

IAS Web Development using Dreamweaver CS4

RIA Technologies Comparison

Simply type the id# in the search mechanism of ACS Skills Online to access the learning assets outlined below.

WEB DEVELOPMENT COURSE (PHP/ MYSQL)

Magento 1.4 Themes Design

A set-up guide and general information to help you get the most out of your new theme.

The Internet, the Web, and Electronic Commerce

HTML5 Features on Tizen. Wonsuk Lee, Samsung Electronics

Responsive Web Design Creative License

This document is for informational purposes only. PowerMapper Software makes no warranties, express or implied in this document.

Developing Your School Website

How To Customize A Forum On Vanilla Forum On A Pcode (Forum) On A Windows (For Forum) On An Html5 (Forums) On Pcode Or Windows 7 (Forforums) On Your Pc

Trends in HTML5. Matt Spencer UI & Browser Marketing Manager

Virtual Exhibit 5.0 requires that you have PastPerfect version 5.0 or higher with the MultiMedia and Virtual Exhibit Upgrades.

4.2 Understand Microsoft ASP.NET Web Application Development

This manual cannot be redistributed without permission from joomla-monster.com

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Course: CSC 224 Internet Technology I (2 credits Compulsory)

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

CIS 467/602-01: Data Visualization

Essentials of HTML5 11/11/ Simply, the new version of HTML. 2. HTML = Hypertext Markup Language. 3. BUT it really isn t just HTML.

How To Understand The History Of The Web (Web)

ICT 6012: Web Programming

Overview. History HTML What is HTML5? New Features Features Removed Resources 10/8/2014

UH CMS Basics. Cascade CMS Basics Class. UH CMS Basics Updated: June,2011! Page 1

Vector Web Mapping Past, Present and Future. Jing Wang MRF Geosystems Corporation

Introduction to Web Technologies

Adobe Dreamweaver Exam Objectives

01/42. Lecture notes. html and css

Website Planning Checklist

Transcription:

Differences between HTML and HTML 5 1 T.N.Sharma, 2 Priyanka Bhardwaj, 3 Manish Bhardwaj Abstract: Web technology is a standard that allow developing web applications with the help of predefined sets of classes, objects, methods and properties available in a markup language, style sheet language, or programming language. It also provides an interface that allows the sharing of information between a Web server and its clients. HyperText Markup Language (HTML) is the main markup language for web pages. HTML elements are the basic building-blocks of webpages. HTML standard were and are created by World Wide Web consortium (W3C). HTML5 is markup language for structuring and presenting content for the World Wide Web, and is a core technology of the Internet originally proposed by Opera Software.It is the fifth revision of the HTML standard. There are lots of differences which are given in HTML 5. This paper presents some of the main differences with the help of a few examples Keywords : HTML, HTML5, WWW, Web Pages, Web Application Introduction to Web Technologies: Web technology is a standard that allows to develop Web applications with the help of predefined sets of classes, objects, methods and properties available in a markup language,style sheet language, or programming language. It also provides an interface that allows the sharing of information between a Web server and its clients. Web server is a computer that stores and hosts a website to make it available to its clients with the help of a specific URL link. Using different Web Technologies, create professional looking websites can be created. Dynamic Web pages can also be developed, which allow users to update, edit, and format the text and upload or replace images, photos, or videos without the help of a Web Designer. Some common Web technologies to develop websites are HTML, Javascript, CSS, XML, XHTML, AJAX, ASP.NET, PHP. HTML was originally developed by Tim Berners-Lee while at CERN. While working at CERN, he became frustrated at having to log on to different computers to find different information and thought that there must be a better way. He figured that there must be a way to hop from one set of information to another that s on different computers. This concept of a hypertext system (connected with the networking technology and protocols needed to pass information between computers) would go on to form the basis for the fundamental language of the world wide web HTML. HTML is a markup language used to create Web pages. A markup language provides a way to describe the structure of text and graphics on a web page. HTML standard were and are created by World Wide Web consortium (W3C). It is derived from a more general markup language called Standard Generalized Markup Language (SGML), which is an International Organization for Standardization (ISO) technology that defines markup languages. HTML5 is markup language for structuring and presenting content for the World Wide Web, and is a core technology of the Internet originally proposed by Opera Software.It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML4 as of 1997) and, as of August 2012, is still under development. Its core aims have been to improve the language with support for the latest multimedia while keeping it easily readable by humans and consistently understood by computers and devices (web browsers, parsers, etc.). HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML. Some rules for HTML5 were established: New features should be based on HTML, CSS, DOM, and JavaScript. Reduce the need for external plugins (like Flash). Better error handling. More markup to replace scripting. HTML5 should be device independent. The development process should be visible to the public. Issn 2250-3005(online) September 2012 Page 1430

HTML5 - New Features Some of the most interesting new features in HTML5: The <canvas> element for 2D drawing The <video> and <audio> elements for media playback Support for local storage New content-specific elements, like <article>, <footer>, <header>, <nav>, <section> New form controls, like calendar, date, time, email, url, search Difference between HTML and HTML5: HTML DOCTYPE is much longer as HTML4 is based on SGML-based. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd > Audio and Video are not part of HTML4 specification. Vector Graphics is possible with the help of technologies such as VML, Silverlight, Flash etc HTML5 DOCTYPE is required to enable standards mode for HTML documents. Audio and Videos are integral part of HTML5 specifications e.g. <audio> and<video> tags. Vector graphics is integral part of HTML5 e.g. SVG and canvas It is almost impossible to get true GeoLocation of user browsing any website especially if it comes to mobile devices. JS GeoLocation API in HTML5 helps identify location of user browsing any website (provided user allows it) Browser cache can be used as temporary storage. Web Sockets are not available. Generally used mechanisms are long polling and streaming. Application Cache, Web SQL database and Web storage is available as client side storage. Accessible using JavaScript interface in HTML5 compliant browsers. Full duplex communication channels can be established with Server using Web Sockets. Accessible using JavaScript interface in HTML5 compliant browsers. Does not allow JavaScript to run in browser. JS runs in same thread as browser interface. Allows JavaScript to run in background. This is possible due to JS Web worker API in HTML5 Works with all old browsers Most of modern browser have started supporting HTML5 specification e.g. Firefox, Mozilla, Opera, Chrome, Safari etc. Difference in Tags: : In HTML 4.01, there are three different <!DOCTYPE> declarations but In HTML 5 there is only one Issn 2250-3005(online) September 2012 Page 1431

<! DOCTYPE html> <a >: In HTML 4.01, the <a> tag could be either a hyperlink or an anchor. In HTML5, the <a> tag is always a hyperlink, but if it has no href attribute, it is only a placeholder for a hyperlink. <acronym> : The <acronym> tag is not supported in HTML5. Use the <abbr> tag instead. The <acronym> tag was used to define acronyms in HTML 4.01. <applet>: The <applet> tag is not supported in HTML5. Use the <object> tag instead. <strong>: In HTML 4.01, the <strong> tag defines strong emphasized text, but in HTML5 it defines important text. <body> : In HTML5, all <body> specific attributes are removed, while in HTML 4.01 they were deprecated. <hr>: In HTML 4.01, the <hr> tag represented a horizontal rule. In HTML5, the <hr> tag defines a thematic break. The <hr> element is used to separate content (or define a change) in an HTML page. <map> : In HTML5, if the id attribute of the <map> tag is also specified, it must have the same value as the name attribute. <meta> : The scheme attribute is not supported in HTML5. HTML5 has a new attribute, charset, which makes it easier to define charset: HTML 4.01: <Meta http-equiv="content-type" content="text/html; charset=utf-8"> HTML5 : <meta charset="utf-8 > <script> : The "type" attribute is required in HTML 4, but optional in HTML5. <small > : In HTML 4.01 the small element is displayed as smaller text. In HTML5 the small element defines small text and other side comments, and is displayed as smaller text. <table>: Only the "border" attribute is supported in HTML5, and it only allows the values " " or "1". New Semantic/Structural Elements HTML5 offers new elements for better structure: Tag <article> <aside> <bdi> <command> <details> <summary> <figure> <figcaption> <footer> <header> <hgroup> <mark> <meter> <nav> <progress> <ruby> <rt> Description Defines an article Defines content aside from the page content Isolates a part of text that might be formatted in a different direction from other text outside it Defines a command button that a user can invoke Defines additional details that the user can view or hide Defines a visible heading for a <details> element Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. Defines a caption for a <figure> element Defines a footer for a document or section Defines a header for a document or section Groups a set of <h1> to <h6> elements when a heading has multiple levels Defines marked/highlighted text Defines a scalar measurement within a known range (a gauge) Defines navigation links Represents the progress of a task Defines a ruby annotation (for East Asian typography) Defines an explanation/pronunciation of characters (for East Asian typography) Issn 2250-3005(online) September 2012 Page 1432

<rp> <section> <time> <wbr> Defines what to show in browsers that do not support ruby annotations Defines a section in a document Defines a date/time Defines a possible line-break New Media Elements HTML5 offers new elements for media content: Tag <audio> <video> <source> <embed> <track> Description Defines sound content Defines a video or movie Defines multiple media resources for <video> and <audio> Defines a container for an external application or interactive content (a plug-in) Defines text tracks for <video> and <audio> Examples : <video> : <html> <body> <DIV id='abc' style="z-index:2; position:relative; right:0px; top:10px; background-color:#cccc33; width:400px; height:80px; padding:10px; border:#ffffcc 1px dashed; font-size:xx-large;"> LogicPace Technologies Pvt.Ltd,Jaipur</DIV><br> <VIDEO src="atheora.ogv" width="320" height="240" controls autoplay> </VIDEO> </body> </html> Issn 2250-3005(online) September 2012 Page 1433

<audio>: <html> <body> <DIV id='abc' style="z-index:2; position:relative; right:0px; top:10px; background-color:#cccc33; width:400px; height:80px; padding:10px; border:#ffffcc 1px dashed; font-size:xx-large;"> LogicPace Technologies Pvt.Ltd,Jaipur</DIV><br> <audio controls="controls"> <source src="horse.ogg" type="audio/ogg" /> <source src="horse.mp3" type="audio/mpeg" /> Your browser does not support the audio element. </audio> </body> </html> Issn 2250-3005(online) September 2012 Page 1434

The new <canvas> Element Tag <canvas> Description Used to draw graphics, on the fly, via scripting (usually JavaScript) Example: <html> <body> <DIV id='abc' style="z-index:2; position:relative; right:0px; top:10px; background-color:#cccc33; width:400px; height:80px; padding:10px; border:#ffffcc 1px dashed; font-size:xx-large;"> LogicPace Technologies Pvt.Ltd,Jaipur</DIV><br> <div style=" font-size:x-large; background-color:maroon; border:#ffffcc 1px solid; width:200px; height:40px;"> Canvas Example:</div><br> <canvas id="mycanvas" width="200" height="100" style="border:1px solid #c3c3c3;"> Your browser does not support the HTML5 canvas tag. </canvas> <script type="text/javascript"> var c=document.getelementbyid("mycanvas"); var ctx=c.getcontext("2d"); ctx.fillstyle="#ff0000"; ctx.fillrect(0,0,150,75); </script> </body> </html> Issn 2250-3005(online) September 2012 Page 1435

SVG: (Scalable Vector Graphics) <html> <body> <DIV id='abc' style="z-index:2; position:relative; right:0px; top:10px; background-color:#cccc33; width:400px; height:80px; padding:10px; border:#ffffcc 1px dashed; font-size:xx-large;"> LogicPace Technologies Pvt.Ltd,Jaipur</DIV><br> <div style=" font-size:x-large; background-color:maroon; border:#ffffcc 1px solid; width:200px; height:40px;"> SVG Example:</div><br> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"> <polygon points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" /> </svg> </body> </html> New Form Elements HTML5 offers new form elements, for more functionality: Issn 2250-3005(online) September 2012 Page 1436

Tag <datalist> <keygen> <output> Description Specifies a list of pre-defined options for input controls Defines a key-pair generator field (for forms) Defines the result of a calculation Removed Elements The following HTML elements are removed from HTML5: <acronym> <applet> <basefont> <big> <center> <dir> <font> <frame> <frameset> <noframes> <strike> <tt> Conclusion: HTML5 is being proved as one of the powerful tool for webpage design. With HTML5, streaming of audio and video without need of third party plug-in such as flash is possible. Player controls can be created that are fully programmable with JavaScript. In HTML5 we have new structural elements instead of traditional div tags to create page template, the final result will be a cleaner and more organized code. HTML5 allows storing data locally from client side. The data can be accessed to support the web application and it can even be accessed when the client is disconnected for a short period of time. There are methodologies for storing data: session storage, local storage and database storage. HTML5 introduces new elements and features that allow developers to improve interoperability, handling elements in a precise way saving time and costs. Reference: http://www.html5arena.com http://www.oshyn.com http://www.w3schools.com http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/reports/rpt_html5-attack-scenarios.pdf http://systemsintegration.searchsoa.com/soa/kw;html+5/html+5/soa.htm Kogent Learning Solutions(2012). HTML 5 Black Book. DreamTech Press. Issn 2250-3005(online) September 2012 Page 1437