Welcome to Technology hub.

it's all about the new technogy, about the programming languages fundamentals and solutions. Here You can find Easy methods and solutions about Programming and coding...Enjoyyy...

Popular Posts

Get widget
Showing posts with label HTML 5. Show all posts
Showing posts with label HTML 5. Show all posts

Sunday, 10 March 2013

The doctype declaration in HTML5

Take a look at this page's "Source Code". The source code is the HTML that generates a page.
On a PC in Chrome or FireFox right click anywhere on the page (except the ads) and select "View page source", or even easier just click "Ctrl-U". In IE "Ctrl-U" doesn't work; you have to right click the page and select "View Source". Select it all, copy it and paste it into Notepad or some text editor. If you have any problems or are in a different browser search "source code" in help.
At the very top of the page you will see the doctype declaration:

<!DOCTYPE html> *

Like any language, HTML5 has a grammar and a vocabulary.
Grammar
<!DOCTYPE html> goes at the top of every HTML5 page.
Vocabulary
The HTML5 word <!DOCTYPE html> means "this page is written in HTML5" as opposed to, say HTML 4.01.
Why, you ask, don't they just write <HTML5> or even a zesty <!HTML5>? I have absolutely no idea. Still it's better than what they had before. Here's an example of one common type of XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Hopefully the doctype declaration in HTML5 won't turn into the crazy mess it did with XHTML and previous versions of HTML. Those in charge of such things say it won't, but time will tell.
So now you learned three things:
  1. How to view the source code of a page, an important tool.
  2. You know one word in HTML5<!DOCTYPE html> = "HTML5"
  3. and one grammar rule: <!DOCTYPE html> goes at the top of every page.

What is HTML5 ?

HTML5 is not just the future of web design, it's the present.

Everything that makes the web sing.

HMTL5 is not a single thing or a monolithic technology. It is a collection of features, technologies, and APIs that brings the power of the desktop and the vibrancy of multimedia experience to the web—while amplifying the web’s core strengths of interactivity and connectivity.
HTML5 includes the fifth revision of the HTML markup language, CSS3, and a series of JavaScript APIs. Together, these technologies enable you to create complex applications that previously could be created only for desktop platforms.

The first web browser, Mosaic, was introduced in 1993. A year later Netscape, based on Mosaic, was introduced and the net began to become popular. HTMLwas used in both browsers, but there was no "standard" HTML until the introduction of HTML 2.0.
HTML 2.0 was first published in 1995.* HTML 3.0 was published two years later and 4.01 two years after that. HTML 4.01 has been the work horse of the net ever since.
The first "working draft" of HTML5 came out in January of 2008 and it already has surprisingly broad browser support. However HTML5 is not yet fully implemented and won't be for some years yet. There are any number of planning committees that have plans to make it a "Recommendation", but such plans are still in the planning phase – and don't plan on that changing anytime soon. **

Fundamental changes are coming with the development of APIs that will run in HTML5 – exciting and powerful new tools that will take the internet places we can't begin to imagine. Also new elements such as the <header>,<nav> and <article> have been introduced which will help search engines analyze web pages better.

The internet will absorb television the way it has telephone technology. Now if you want to add video to your page you either have to add a complicated script to your page, embed a YouTube video or have to open it in a separate application such as Windows Media Player. The former is not easy and the latter two lack professional polish. HTML5's new <video> tag will solve that problem.

Reference: