-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmadlibs.html
More file actions
19 lines (19 loc) · 807 Bytes
/
madlibs.html
File metadata and controls
19 lines (19 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Madlibs</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
var name = prompt("Hey, how's it going? While your here, why don't we make a madlib? Name a person:")
var item = prompt("Name an item:")
var adj = prompt("Name an adjective:")
var place = prompt("Lastly, name a place:")
document.write('<p id="beginandend">' + "Beginning of Story<br>" + "<br>Ok! let's start. " + name + " went to the store to buy a " + adj + " " + item + " at " + place + ", and they made it out of the store alive (Even though it was on a Saturday).<br>" + "<br>End of Story" + '</p>')
</script>
<script src="script.js"></script>
</body>
</html>