I am trying this code but it's not working.please help. in this I just want to create a div block and change its properties?

```
<html>
<head>
<script >
function create()
{
l=document.createElement('div');
l.id='10';
l.style.position='absolute';
l.style.top='100px';
l.style.left='200px';
l.style.height='100px';
l.style.width='100px';
l.style.backgroundColor='yellow';
l.style.zIndex='100';
}
</script>
</head>
<body>
<input type="submit" name="cssandcreate" id="cssandcreate" value="css"  onclick="create()"/>
</body>
</html>

```