A Pen by HARUN PEHLİVAN on CodePen.
Created
May 28, 2021 19:32
-
-
Save harunpehlivan/57f8db87d0a0b90c423c363d0c2478ae to your computer and use it in GitHub Desktop.
Gradebook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Quiz - Validate Numeric Values</title> | |
| </head> | |
| <body> | |
| <h1>Gradebook</h1> | |
| <p>All grade values are 0, 10, 20, 30, ... 100. Use the average as a guide for issuing a letter grade.</p> | |
| <form action="#" id="grading"> | |
| <table> | |
| <tr> | |
| <td><label for="email">Email:</label></td> | |
| <td colspan="2"><input id="email" type="email" placeholder="[email protected]" required></td> | |
| </tr> | |
| <tr> | |
| <td><label for="quiz1">Quiz 1:</label></td> | |
| <td><input type="number" id="quiz1" min="0" step="10" value="0" required></td> | |
| <td>(needs max)</td> | |
| </tr> | |
| <tr> | |
| <td><label for="quiz2">Quiz 2:</label></td> | |
| <td><input type="number" id="quiz2" max="100" step="10" value="0" required></td> | |
| <td>(needs min)</td> | |
| </tr> | |
| <tr> | |
| <td><label for="quiz3">Quiz 3:</label></td> | |
| <td><input type="number" id="quiz3" step="10" value="0" required></td> | |
| <td>(needs min and max)</td> | |
| </tr> | |
| <tr> | |
| <td><label for="quiz4">Quiz 4:</label></td> | |
| <td><input type="number" id="quiz4" value="0" required></td> | |
| <td>(needs min, max, and step)</td> | |
| </tr> | |
| <tr> | |
| <td></td> | |
| <td>Average: <output id="average">__</output></td> | |
| <td><button id="calculate" type="button">Calculate</button></td> | |
| </tr> | |
| <tr> | |
| <td><label for="grade">Grade:</label></td> | |
| <td><input type="text" id="grade" size="2" minlength="1" maxlength="2" required></td> | |
| <td>(Extra credit: use "pattern" to check for A, A-, B, B+, B-, down to F.)</td> | |
| </tr> | |
| <tr> | |
| <td></td> | |
| <td colspan=2><input type="submit"></td> | |
| </tr> | |
| </table> | |
| </form> | |
| <script src="app.js"></script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment