By Sruthi!!!! HTML5 was designed to replace both HTML 4, XHTML, and the HTML DOM Level 2. It was specially designed to deliver rich content without the need for additional plugins. The current version delivers everything from animation to graphics, music to movies, and can also be used to build complicated web applications. HTML5 is also cross-platform. It is designed to work whether you are using a PC, or a Tablet, a Smartphone, or a Smart TV. HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).
! Better Accessibility.! Cleaner Code.! Smarter Storage.! Better Interactions.! Game Development.! Cross Browser Support.! HTML5 - device independent! It reduces the need for external plugins! Geolocation! Canvas element for drawing! Video/audio elements for media playback! Better support for local offline storage! New content specific elements, like article, footer, header, nav, section.! New form controls, like calendar, date, time, email, url, search.
No more breaking your head on which Doctype you need. No more of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML ****//EN" "http://www.w3.org/**/**"> All Html5 needs is <!DOCTYPE html>! So far, there hasn't been a standard for showing video on a web page.! Today, most videos are shown through a plugin (like Flash). However, not all browsers have the same plugins.! HTML5 specifies a standard way to include video with the video element.
<video width= 250" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4"/> </video> Other videos that support are: 1. video/ogg 2. video/webm Example: video.html! So far, there has never been a standard for playing audio on a web page.! Today, most audio is played through a plugin (like Flash). However, not all browsers have the same plugins.! HTML5 specifies a standard way to include audio, with the audio element. The audio element can play sound files, or an audio stream.
<audio controls="controls"> <source src="song.ogg" type="audio/ogg" /> <source src="song.mp3" type="audio/mpeg" /> </audio> HTML5 has several new input types for forms.! email! url! number! range! date pickers (date, month, week, time, ( datetime-local datetime,! search! color Example: html5/demo.html
Modernizr is an open source, MIT-licensed JavaScript library that detects support for many HTML5 & CSS3 features. If You want to use it, include the following <script> element at the top of your page... if (Modernizr.canvas) { // let's draw some shapes! } else { // no native canvas support available :( }
jquery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. jquery is ideal because it can create impressive animations and interactions. jquery is simple to understand and easy to use.! jquery hide/show: we can hide and show HTML elements with jqueryhide. html! jquery Fade: 1.Fade In: The jquery fadein() method is used to fade in a hidden element. FadeIn.html 2.Fade Out: The jquery fadeout() method is used to fade out a visible element. FadeOut.html! jquery Animate: 1. Here, multiple properties can be animated at the same time 2. Using Queue Functionality queueanimate.html
! jquery Slide: 1. Slide down: SlideDown.html 2. Slide Up: SlideUp.html 3. Slide Toggle: SlideToggle.html! jquery Chaining: It allows us to run multiple jquery commands, one after the other, on the same element(s). SlideToggle.html! jquery Set: 1.The example demonstrates how to set content with the jquery text(), html(), and val() methods jqueryset1.html 2. The example demonstrates how to change (set) the value of the href attribute in a link jqueryset2.html! jquery Add: jqueryadd1.html! jquery Remove: 1.The jquery remove() method removes the selected element(s) and its child elements. remove1.html
2. The jquery empty() method removes the child elements of the selected element(s). remove2.html! jquery CSS Classes: 1.addClass: This example shows how to add class attributes to different elements. css.html! jquery Ancestors: An ancestor is a parent, grandparent, great-grandparent, and so on. Three useful jquery methods for traversing up the DOM tree are:! parent()! parents()! parentsuntil() Ancestors.html
! jquery Descendants: Two useful jquery methods for traversing down the DOM tree are:! children():the children() method returns all direct children of the selected element.! find():the find() method returns descendant elements of the selected element, all the way down to the last descendant.! jquery Siblings:! There are many useful jquery methods for traversing sideways in the DOM tree:! siblings()! next()! nextall()! nextuntil()! prev()! prevall()! prevuntil()! jquery Filtering: The three most basic filtering methods are first(), last() and eq(), which allow you to select a specific element based on its position in a group of elements.
! jquery Load: The jquery load() method is a simple, but powerful AJAX method. It loads data from a server and puts the returned data into the selected element. load.html! jquery Get/Post: Two commonly used methods for a request-response between a client and server are: GET and POST.! GET - Requests data from a specified resource! POST - Submits data to be processed to a specified resource JavaScript Meaning: jquery Meaning: JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, Chrome, Opera, and Safari. JQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. Composed of: Composed of: JavaScript is a combination of ECMA Script and Document Object Model (DOM). jquery has Document Object Model (DOM).
JavaScript Web-based application creation: JavaScript has many processes in creating web based applications. Example: Two JavaScript function to change the background color with the onload function that would need to placed into the body tag function changebackground(color) { document.body.style.background = color; } onload="changebackground('red');" jquery Web-based application creation: Creating a web based application using jquery becomes easier. Example: One JQuery changing the background color of a body tag $('body').css('background', '#ccc'); This is the clean code JQuery provides. Animation Creation: Animations are not possible using JavaScript. Animation Creation: Animations can be easily created using jquery.