This commit is contained in:
Philippe Torrel
2026-10-02 09:50:52 +02:00
parent 4dec8a5680
commit 5a688bc7ea
8 changed files with 66 additions and 9 deletions
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
@@ -17,10 +17,11 @@
</main>
<script>
'use strict';
// 1
// Ändern Sie mit Hilfe von JS die Überschrift (h1) der HTML-Seite in Almost Famous Quotes.
const headingEl = document.querySelector('h1');
headingEl.textContent = 'Almost Famous Quotes';
// 2
// Die Seite enthält ein leeres blockquote-Element. Öffnen Sie die HTML-Seite in Chrome. Geben Sie in der Konsole eine Zeile JS-Code ein, die das Element mit folgendem Inhalt befüllt:
@@ -30,6 +31,15 @@
// telephone.
// </p>
// <footer>— <cite>Bjarne Stroustrup</cite></footer>
const blockquoteEl = document.querySelector('blockquote');
blockquoteEl.innerHTML = `
<p>
I have always wished for my computer to be as easy to use as my telephone;
my wish has come true because I can no longer figure out how to use my
telephone.
</p><footer>— <cite>Bjarne Stroustrup</cite></footer>
`;
</script>
</body>
</html>