Exercise 10.4
This commit is contained in:
parent
f03cd34710
commit
7ff087aa46
15
Chapter 10/Exercise 10.4
Normal file
15
Chapter 10/Exercise 10.4
Normal file
@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Canvas HTML5</title>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
<h1 class="ele">Hello World</h1>
|
||||
<div class="ele">Hello World 1</div>
|
||||
<div class="ele">Hello World 3</div>
|
||||
<script>
|
||||
const myEles = document.getElementsByClassName("ele");
|
||||
console.log(myEles[0]);
|
||||
</script>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user