Skip to content

Commit a854ec3

Browse files
committed
changed html title using js queryselector
1 parent 4c08293 commit a854ec3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sprint-3/quote-generator/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Quote generator app</title>
6+
<title>Title here</title>
77
<link rel="stylesheet" href="style.css">
88
<script defer src="quotes.js"></script>
99
</head>

Sprint-3/quote-generator/quotes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ const quotes = [
489489
author: "Zig Ziglar",
490490
},
491491
];
492-
492+
const title = document.querySelector("title")
493+
title.textContent = "Quote generator app";
493494
// call pickFromArray with the quotes array to check you get a random quote
494495
const quoteEl = document.querySelector("#quote");
495496
const authorEl = document.querySelector("#author");

0 commit comments

Comments
 (0)