Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
list_pets/index.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (39 sloc)
1002 Bytes
This file contains 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.0"> | |
<title>Pet Information</title> | |
<script src="animals2.js"></script> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
max-width: 600px; | |
margin: 0 auto; | |
padding: 20px; | |
} | |
.selectedPetInfo { | |
margin-top: 20px; | |
padding: 10px; | |
background-color: #f0f0f0; | |
border-radius: 5px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Pet Information</h1> | |
<ol> | |
<li>Stella</li> | |
<li>Cody</li> | |
<li>Mango</li> | |
<li>Lucy</li> | |
<li>Buhmie</li> | |
</ol> | |
<p> | |
<label for="petNum">Pet Number:</label> | |
<input type="text" id="petNum" name="petNum" maxlength="4" size="4"> | |
<button onclick="showInfo()">Click for information!</button> | |
</p> | |
<p class="selectedPetInfo"></p> | |
</body> | |
</html> |