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

38 lines
790 B
HTML
Raw Permalink Normal View History

2024-08-06 15:59:31 +00:00
<!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>