<!DOCTYPE html>
<html>
<head></head>
<body>
<script>
document.write("<p>p tag 1</p>");
document.write("<p>p tag 2</p>");
document.write('<button onclick="Test()">Click Here</button>');
document.write("<p>p tag 3</p>");
document.write('<a href="#">a tag</a>');
document.write('<ul>');
document.write('<li>li tag</li>');
document.write('</ul>');
function Test()
{
alert('It Works!')
}
/*
run:
*/
</script>
</body>
</html>