Computer Science Can someone add to this website Im creating alot more color and with background code is below: Senior Citizen Parking First name: Last name: Are you a senior citizen: Yes No Your parking ticket number is:
Computer Science
Can someone add to this website Im creating alot more color and with background
code is below:
<!DOCTYPE html>
<html>
<body>
<h1>Senior Citizen Parking</h1>
<form>
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<p>Are you a senior citizen:</p>
<input type="radio" id="yes" name="age">
<label>Yes</label><br>
<input type="radio" id="no" name="age">
<label>No</label><br><br>
<input type="submit" value="Submit" onclick="document.getElementById('park').style.display = 'block' ;"><br>
<p>Your parking ticket number is:</p>
<p style="display: none" id="park"></p>
<script>
document.getElementById("park").innerHTML = Math.floor(Math.random() * 1000);
</script>
</form>
</body>
</html>
Step by step
Solved in 3 steps with 2 images