What is New In HTML5?

html5

HTML stands for Hyper Text Markup Language. It is most basic building block of webPage use for creating and representing webPage. It is also called backbone of webPage because it provides structure. In HTML, ‘Hypertext’ refers to text that link to other web page and ‘Markup’ refers to tags.

In addition, it allows creating forms; paragraph, list and for making webPage interactive images can be embedded into it. JavaScript used as scripting language for adding some special functionality like showing alert. Features like audio or video do not supported by older browsers. But now, HTML 5 provides video, audio and more advance facility to create website having interactive functionality and look.

HTML 5 is an increment evolution of HTML. There are 28 additional tags were introduce in it. Some examples are Doctype, Figure, SVG, Audio, Video, Geolocation and many more tags were introduced. SVG stands for Scalable Vector Graph and it is a language for describing 2D graphics and graphical application in XML. It provides media support like Audio or Video, represented using src attribute. Geolocation API allows the user to provide their location to web application through calling ‘getCurrentPosition ()’ method. Canvas is use for draw graphics using scripting like javascript or other scripting language.

Simple program of HTML5:

//specify version and language of document

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Title of the document</title>

</head>

<body> // it contain heading and subheading

<header> DEMO PROGRAM </header>

//specify video in HTML document

<video controls preloaded>

//specify multiple media resource

<source src=”video.mp4” type=”video/mp4” />

</video>

//specify audio in HTML document

<audio><source src=”audio1.mp3” type=”audio/mp3” /> </audio>

//used to represent article

<article>

<p> HTML tags can contain one or more attributes. Attributes are added to a tag to provide the browser with more information about how the tag should appear or behave. </p>

//represent a section within article

<section> <h4>Section 1</h4>

<p>this is a part of section</p></section> </article>

//used in form to declare input element as email

<input id=”email” name=”email” type=”email”/>

//used in form to declare input element as date

<input id=”date” name=”Date” type=”datetime”/>

//used in form to declare input element as time

<input id=”time” name=”Time” type=”time” />

//define footer in HTML document

<footer> introduction of HTML </footer>

</body>

</html>

For more info : cpd-india

Batches: Regular & Weekends for Working Profession

For FREE DEMO CLASS CALL – 011-65164822 / 91- 8860352748

CPD Technologies Block C 9/8, Sector – 7, Rohini, Delhi – 110085, India Landmark: Near Rohini East Metro Station, Opposite Metro Pillar No-397

Website :- www.cpd-india.com

Email :- support@cpd-india.com

Your email address will not be published. Required fields are marked *

Contact CPD Technologies






    [recaptcha]