This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
@@ -20,10 +20,17 @@
|
||||
|
||||
// 1
|
||||
// Ändern Sie mit Hilfe von JS die Überschrift (h1) der HTML-Seite in Almost Famous Quotes.
|
||||
const h1El = document.querySelector('h1');
|
||||
h1El.innerHTML = '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:
|
||||
|
||||
// Code für die Browser-Konsole:
|
||||
|
||||
document.querySelector('blockquote').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 mytelephone.</p><footer>— <cite>Bjarne Stroustrup</cite></footer>';
|
||||
|
||||
// <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
|
||||
|
||||
Reference in New Issue
Block a user