Get a Free Quote

We respect your privacy

Ultimate Features of HTML5

10:49 am

Ultimate Features of HTML5

With the introduction of HTML5 many things have changed. The way we used to do things in HTML5 has changed as well as many new features have been introduced. Below is a list of some of the top features.

Features of HTML5

New Doctype:

What better place to start of this article about the list of features and changes in HTML5 other that our very own doctype. The doctype now no longer needs to be a long extended one but simply the following will suffice:   <!Doctype html>

Image Captions:

So far we used to write the name or caption of the image manually beside ‘img’ tags of the image. Things have changed now. The above can be achieved in simples steps like below:
<figure>
<img src=”/image/imagename.jpg” alt=”my image” />
<figcaption>
<p>This is my image</p>
</figcaption>
</figure>

<small> tag:

The tag <small> is now different. It stands for small print like one would use for a copyright statement in the footer of a website.

Type-less: 

It is no longer necessary to include the attribute type in the tags Script and Link. For example in both the statements below, the attribute type is not required as far as HTML5 is concerned.

<link type=”text/css” href=”stylesheet.css”  />
<script type=”text/javascript” src=”javascript.js” > </script>

Closing the tag behind you:  

HTML5 is not XHTML hence it is not necessary to wrap the attributes in quotation marks neither is it necessary to close a tag hence the below is perfectly ok

<p id=myID> This is great

Editable content:

This is something new and handy with the new browsers. They have the ability to edit elements by using a new tag contenteditable.

For example in the code below it is possible to add to the ul li list.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8”>
<title>untitled</title>
</head>
<body>
<h2>To Do List</h2>
<ul contenteditable=”true”>
<li>  Buy Milk </li>
<li>  Buy bread </li>
</ul>
</body>
</html>

Alakmalak is a website design company in india that can help you out with small and big tasks about web design services.

If you like this blog Please Plus it, Like It ,Tweet It and best yet link to It.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...

Comments are closed.