This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user