HTML5 doctype declaration

Hello Friends, Hope you are fine. Now, we are going to learn about the basic concept of HTML5. It is a series of tutorial. You can learn the basic of HTML5 from these tutorial InsAllah. Today, we are learning about the HTML5 doctype declaration.  Let’s go-

We know, every language has some grammar and vocabulary. HTML5 has also these.

The grammar  of HTML5 is that, you have to write <!DOCTYPE html> on the top of the page. Its the Grammar of HTML5.


The vocabulary of HMTL5 is ,  <!DOCTYPE html>   on top of your page. It’s indicate that, what kind of page it is. When a user browse this site, the information will be sent to the browser. It’s the Vocabulary of HTML5.

Its enough for today’s lesson. Wait for next lesson.



Hello Friends

Every browser does not support the all tag and blocks of HTML5, like IE. So, if you add simple code before body tag, then your code will be support all the browser.


Public repo for the latest HTML5 JavaScript shiv for IE to recognise and style the HTML5 elements.
Full original, uncompressed source available here:
Source code adds new HTML5 elements (which is simple code), but also supports printing HTML5 elements and includes the default styles for HTML5 elements, like block on article and section.
Getting it to work in the browser was easy, @jon_neal and afarkas made IE actually print HTML5 elements - these guys are to take all the credit. Please take a moment to thank them!
To use this script, it must be included before the <body> element (i.e. in the <head>) but doesn't matter if it appears before or after the CSS - but for the sake of performance, it would make better sense to include the CSS first then this script.
<!--[if lt IE 9]>
<script src="//"></script>
Note that the protocol has been removed so you don't have to when including on an http or https page


This article is borrowed from this link –


Thanks for reading.

Determine User Location by using HTML5

Hello Friends,

You can determine user location by using HTML5 and Google Map easily. For that, you have to crate a HTML5 file by using your favorite compiler. I am using dreamweaver CS5.

The basic code of HTML5 are-

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>

After than, you have to write down the below code into body tag.

<input type="button" value="get location" onclick="getUserLocation()"/>
<div id="locationData">
 Location data here

Now, in the head tag, you have to write down the functions below- Continue reading

HTML5 new elements for Newbe

Hello Learners.

Hope you are very well in health. Now I am ready to inform you the elements of HTML5. Lest see the elements of that.

New elements for better structure:

Tag Description
<article> Specifies independent, self-contained content, could be a news-article, blog post, forum post, or other articles which can be distributed independently from the rest of the site.
<aside> For content aside from the content it is placed in. The aside content should be related to the surrounding content
<bdi> For text that should not be bound to the text-direction of its parent elements
<command> A button, or a radiobutton, or a checkbox
<details> For describing details about a document, or parts of a document
<summary> A caption, or summary, inside the details element
<figure> For grouping a section of stand-alone content, could be a video
<figcaption> The caption of the figure section
<footer> For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
<header> For an introduction of a document or section, could include navigation
<hgroup> For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
<mark> For text that should be highlighted
<meter> For a measurement, used only if the maximum and minimum values are known
<nav> For a section of navigation
<progress> The state of a work in progress
<ruby> For ruby annotation (Chinese notes or characters)
<rt> For explanation of the ruby annotation
<rp> What to show browsers that do not support the ruby element
<section> For a section in a document. Such as chapters, headers, footers, or any other sections of the document
<time> For defining a time or a date, or both
<wbr> Word break. For defining a line-break opportunity.

New Media Elements

HTML5 provides a new standard for media content:

Tag Description
<audio> For multimedia content, sounds, music or other audio streams
<video> For video content, such as a movie clip or other video streams
<source> For media resources for media elements, defined inside video or audio elements
For embedded content, such as a plug-in
<track> For text tracks used in mediaplayers

The Canvas Element

The canvas element uses JavaScript to make drawings on a web page.

Tag Description
<canvas> For making graphics with a script

New Form Elements

HTML5 offers more form elements, with more functionality:

Tag Description
<datalist> A list of options for input values
<keygen> Generate keys to authenticate users
<output> For different types of output, such as output written by a script

New Input Type Attribute Values

Also, the input element’s type attribute has many new values, for better input control before sending it to the server:

Type Description
tel The input value is of type telephone number
search The input field is a search field
url The input value is a URL
email The input value is one or more email addresses
datetime The input value is a date and/or time
date The input value is a date
month The input value is a month
week The input value is a week
time The input value is of type time
datetime-local The input value is a local date/time
number The input value is a number
range The input value is a number in a given range
color The input value is a hexadecimal color, like #FF8800
placeholder Specifies a short hint that describes the expected value of an input field
That's enough for today now. Be safe until next tutorial.