-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (23 loc) · 982 Bytes
/
Copy pathindex.html
File metadata and controls
26 lines (23 loc) · 982 Bytes
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
<!--
Objective
In this challenge, we practice creating buttons in JavaScript. Check out the attached tutorial for learning materials.
Task
Complete the code in the editor so that it creates a clickable button satisfying the following properties:
- The button's id is btn.
- The button's initial text label is . After each click, the button must increment by . Recall that the button's text label is the JS object's innerHTML property.
- The button has the following style properties:
- A width of 96px.
- A height of 48px.
- The font-size attribute is 24px.
The .js and .css files are in different directories, so use the link tag to provide the CSS file path and the script tag to provide the JS file path:
-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/button.css" type="text/css">
</head>
<body>
<button id="btn">0</button>
<script src="js/button.js" type="text/javascript"></script>
</body>
</html>