HTML stands for Hyper Text Markup Language. HTML is an application of the Standard Generalized Markup Language (SGML) which is the International Standard (ISO 8879) for text markup. As you know HTML is not a programming language, it is a markup language and it is a set of markup tags. The latest version on HTML is know as HTML5. HTML5 has many new tags and attributes to make web site designing simple and attractive. You can create simple and nice animation with the help of HTML5 and CSS3.

What's new in HTML 5

Let's discuss what are the new tags and attributes introduced in HTML 5. For the very beginning it makes the document type very simple. Forget about the long document type used in the older version of HTML. 

HTML 5 Doctype and Charset

<!doctype html>
<meta charset="UTF-8"> 

Yes, very simple. To define document type just use doctype as html and for character encoding use charset ='UTF-8' or something like that.

HTML 5 Structure

HTML 5 can recognize the structure on a web page. The new tag introduced for structure are <header>, <nav>, <section>, <aside>, <article>, <figure>.

HTML5 design


<header>   It defines the header part of a webpage.
<nav>  It defines the navigation menu on a webpage.
<section> It used to define the sections of a webpage.
<aside>  It used to defines sidebar on a webpage.
<article>  It defines the content area on a webpage.
<figure>  It defines images that embedded in a webpage content.
<footer>  It defines the footer of a webpage.

You can assign a class or Id to the above tags as you do it for <div> tag.

Sample Code

<!DOCTYPE html>
<html lang="en">
<head>
<title>My First HTML 5 Page</title>
<meta name="title" content="My First HTML 5 Page"/>
<meta name="description" content="My First HTML 5 Page"/>
<meta name="keywords" content="My First HTML 5 Page"/>
<meta charset="utf-8">
</head>
<body>

<!-- header -->
<header class="header">
<div class="head_content"> <!-- Head section goes here --> </div>
</header>

<!-- menu -->
<nav>
<div class="menu"> <!-- Top menu goes here --></div>
</nav>

<!-- Sidebar -->
<aside class="left-side">
<!-- Left side bar goes here -->
</aside>

<!-- content -->
<section>
<div class="container">
<article><!-- First article goes here --> </article>
<article><!-- Second article goes here --> </article>
</div>
</section>

<!-- footer -->
<footer>
<!-- Footer content goes here -->
</footer>

</body>
</html>
Top