View Code? Open in Web Editor
NEW
This project is built using Html | Css | JavaScript | Webpack+ API, it saves the scores of users to a backend and displays it on the browser.
Home Page: https://duanedave.github.io/LeaderBoard/
License: MIT License
HTML 19.53%
JavaScript 31.84%
CSS 48.63%
leaderboard's Introduction
leaderboard's People
Contributors
Watchers
leaderboard's Issues
Your project is looking good and you added the really good GUI. But still, I noticed some issues which I think you need to improve.
-
Please use HTML semantics properly. Use either label
tag OR aria-label
.
|
<form> |
|
<h2 class="score-header border-radius">Add Your Score</h2> |
|
<input type="text" placeholder="Enter Your Name" id="name" /> |
|
<input type="number" placeholder="Enter Your Score" id="score" /> |
|
<button type="submit" id="submit">Submit</button> |
|
</form> |
-
Please Follow CSS Best Practices, Check below you will see that you are using tag-name
directly in your CSS. Please use class name
or id
.
|
form h2 { |
|
margin-bottom: 1rem; |
|
align-self: flex-start; |
|
} |
|
|
|
form input { |
|
width: 100%; |
|
border: 1px solid rgba(94, 49, 158, 0.795); |
|
max-width: 400px; |
|
padding: 0.7em 1em; |
|
border-radius: 20px; |
|
margin-bottom: 1rem; |
|
} |
|
|
|
form input:focus { |
|
outline: none; |
|
transform: scale(1.05); |
|
} |
-
Please prevent to use innerHTML instead of it please insertAdjacentHTML
. (Optional)
.
Happy Coding ๐ฅ