lavina_bridge/webpages/tutorials/js-book/example2.html

38 lines
790 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JsBook</title>
<style>
* {
background-color: gray;
}
h1 {
text-decoration:wavy;
}
</style>
</head>
<body>
<h1>Список</h1>
<h2>fsdfss</h2>
<script type="text/javascript">
function listValues() {
window.document.write('<ul>');
for (i=0; i<arguments.length; i++){
window.document.write('<li>', arguments[i], '</li>');
console.log(arguments[i])};
window.document.write('</ul>');
}
listValues('Html', 'Css', 'Js', 'keke', 'sdew');
</script>
</body>
</html>