-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (52 loc) · 1.6 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
<!DOCTYPE html>
<head>
<script src="script.js"></script>
<script>yourName()</script>
<script>guessNumber()</script>
<script id= "lob">rating()</script>
<style #lob>
img {
width: 20px;
}
</style>
<style>
img {
width: 100px;
}
</style>
</head>
<body>
<!-- First name: <input id="first_name">
Last name: <input id="last_name">
<button id="say">Say hi!</button> -->
<header>
<h1 style="color:blue;text-align:center;">My top foods</h1>
<a href="#">Link to Allens Page</a>
</header>
<hr>
<div id="result"></div>
<script>
function say_hi() {
var fname = document.getElementById('first_name').value;
var lname = document.getElementById('last_name').value;
var html = 'Hello <b>' + fname + '</b> ' + lname;
document.getElementById('result').innerHTML = html;
}
document.getElementById('say').addEventListener('click', say_hi);
</script>
<main>
<img src="https://media.istockphoto.com/photos/food-backgrounds-table-filled-with-large-variety-of-food-picture-id1155240408?s=612x612"/>
<ul>
<button>Click me to see a gallery of lasagna</button><li>Lasagna</li>
<button>Click me to order food</button><li> Lamb Biryani</li>
<button>Click me for lobster recipes</button> <li>Lobster/any seafood</li>
</ul>
<p>You can never go wrong with a Lasagna!</p>
<p>Biryani is the best!!</p>
<p>Maine Lobster rolls!!!</p>
</main>
<footer>
<p>©Denis Felix Rendon</p>
</footer>
</body>
</html>