-
-
Notifications
You must be signed in to change notification settings - Fork 155
London | 25-ITP-May | Fatma_Degirmenci| Sprint 3 | Quote-Generator #734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -3,13 +3,19 @@ | |||
<head> | |||
<meta charset="UTF-8" /> | |||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |||
<title>Title here</title> | |||
<title>Quote generator app</title> | |||
<script defer src="quotes.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tell me what defer
attribute does in script tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I used defer to make sure the script can access all the HTML elements without causing any errors.
- defer makes the browser load the HTML first, and then run the script afterwards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you added a background photo to look nicer!
Sprint-3/quote-generator/style.css
Outdated
|
||
.container { | ||
width: 600px; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the space here.
Hi, Fatma. It works as intended and looks good! Well done. I left a few comments. Please have a look :) |
Self checklist
Changelist
Added a function to display a random quote on page load and on button click.
Added CSS to style the quote and author text.
Updated the HTML title.