Thursday, June 26, 2014

A responsive login form using HTML5 and CSS3

Hii,This is a login form designed using HTML5 and CSS3.You can go to below link and check out the sample code and you can work on that by applying different styles. 



click here for the code

have fun..

Monday, June 23, 2014

Hii
Like our official facebook page




Go to our facebook page 

How to create a simple navigation bar using css and html


Hi,You can go to below link and check out the sample code and you can work 
on that by applying different styles. 

click here

enjoy...

Wednesday, June 11, 2014

How to use drag and drop in a webpage using HTML and JS

HTML5 is the latest  version of HTML it has capability to deliver rich internet applications without using any additional plugins.So we can make hi-end web applications using HTML5.HTML5 is cross-platform so that work with different devices.

This tutorial will teach you how to use drag and drop feature of HTML5 to drag an object (say image) from one place to other in a web page.


Step 1:#createfile

Create the html file.

Open notepad and type the codes as given below:


<!DOCTYPE HTML>
<html>
<head>
<style>
p {font-family: "Times New Roman";font-size: 20px;}
#divbox {width:350px;height:70px;padding:10px;border:5px solid #aaaaaa;}
</style>
<script>
function DropPermission(ev) {
    ev.preventDefault();
}

function drag(ev) {
    ev.dataTransfer.setData("Text", ev.target.id);
}

function drop(ev) {
    ev.preventDefault();
    var data = ev.dataTransfer.getData("Text");
    ev.target.appendChild(document.getElementById(data));
}
</script>
</head>
<body>

<p>Drag the helloworld image into the rectangle:</p>

<div id="divbox" ondrop="drop(event)" ondragover="DropPermission(event)"></div>
<br>
<img id="drag1" src="hello.jpg" draggable="true" ondragstart="drag(event)" width="336" height="69">

</body>
</html>

Step 2:#save

Save your notepad file in .html format

Step  3:#execution

Note:HTML5 doesn’t support older browsers.Execute this file in any latest browsers.I here use Google Chrome.

You can see the output as given below