<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script>
onload = function () {
var dv = document.getElementById('dv');
dv.style.width = 100;
dv.style.height = 30;
dv.innerHTML = '<h1>hahha</h1>';
dv.style.color = 'white';
dv.style.backgroundColor = 'blue';
dv.style.cssFloat = 'right';
}
</script>
</head>
<body>
<div id="dv" >
</div>
</body>
</html>