-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (79 loc) · 2.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cat Photo App</title>
<link rel="icon" type="image/jpeg" href="images/icon.jfif">
<style>
.horizontal_space
{
margin-left: 40px;
}
</style>
</head>
<body>
<div class="main">
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<p>See more <a href="#">cat photos</a> in our gallery</p>
<img src="images/relaxing-cat.jpg" alt="cat-image">
<h2>Cat Lists</h2>
<h3>Things cats love:</h3>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<div class="horizontal_space">
<img src="images/lasagna.jpg" alt="cat_favourite_food_image">
<br>
<i>Cats love lasagna.</i>
</div>
<h3>Top 3 things cats hate:</h3>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<div class="horizontal_space">
<img src="images/cats.jpg" alt="cats_hates_other_cats_image">
<br>
<i>Cats <b>hate</b> other cats.</i>
</div>
<h2>Cat Form</h2>
<form>
<fieldset>
<legend>Is your cat an indoor or outdoor cat?</legend>
<label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
<label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
</fieldset>
<br>
<fieldset>
<legend>What's your cat's personality?</legend>
<input id="loving" type="checkbox" name="personality"> <label for="loving">Loving</label>
<input id="lazy" type="checkbox" name="personality"> <label for="lazy">Lazy</label>
<input id="energetic" type="checkbox" name="personality"> <label for="energetic"> Energetic</label>
</fieldset>
<br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit" id="myButton">Submit</button>
</form>
<p>No Copyright - <a href="#">freeCodeCamp.org</a></p>
</div>
<footer>
<h3 style="border: 1px solid black; text-align: center;">Developed by Rudraksh Jhaveri</h3>
</footer>
<script>
const button = document.getElementById("myButton");
button.addEventListener("click", () =>
{
alert("Cat Form Submitted")
});
// Reload the page after 2 seconds
// setTimeout(function() {
// location.reload();
// }, 2000);
</script>
</body>
</html>