This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@@ -96,8 +96,17 @@
|
||||
(() => {
|
||||
// Tippen Sie eine Abfrage in die Konsole, die:
|
||||
// 1. das h1-Element findet.
|
||||
const h1El = document.querySelector('h1');
|
||||
|
||||
// 2.das Element mit der id buy_form findet.
|
||||
const buyForm = document.querySelector('#buy_form');
|
||||
|
||||
// 3. das Element mit der id product_img findet.
|
||||
const productImg = document.querySelector('#product_img');
|
||||
|
||||
console.log(h1El);
|
||||
console.log(buyForm);
|
||||
console.log(productImg);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user