-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (43 loc) · 1.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="asap.css" rel="stylesheet">
<link rel="stylesheet" href = "style.css">
<title>Game of Rock Paper and Scissors</title>
</head>
<body>
<header>
<h1>Rock Paper Scissors</h1>
</header>
<div class="score-board">
<div id="player-label" class="badge">Player</div>
<div id="computer-label" class="badge">Computer</div>
<span id="player-score">0 </span>:
<span id="computer-score">0</span>
<!--span is an inline element while div are block elements-->
</div>
<div class="result">
<p>Paper covers Rock.You win!!</p>
</div>
<div class="options">
<!--this stands for "choices" in main"-->
<div class="option" id ="r">
<!--this stands for "choice" in main"-->
<img src="imgs/rock.png" alt="">
</div>
<div class="option" id = "p">
<!--this stands for "choice" in main"-->
<img src="imgs/paper.png" alt="">
</div>
<div class="option" id = "s">
<!--this stands for "choice" in main"-->
<img src="imgs/scissors.png" alt="">
</div>
</div>
<p id = "game-alert">Make your move.</p>
<script src = "action.js" charset="utf-8"></script>
</body>
</html>