-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart of JS.html
31 lines (29 loc) · 928 Bytes
/
Start of JS.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to JavaScript</title>
<style type="text/css">
*{
background-color: lightgreen;
padding: 15px;
}
h1{
background-color: lightskyblue;
color: black;
}
</style>
</head>
<body>
<h2>What Can JavaScript Do?</h2>
<p id="check">JavaScript can change HTML content.</p>
<button type="button" onclick="document.getElementById('check').innerHTML = 'Hello JavaScript!'">Click Me!</button>
<br><br>
<center>
<h1>About Akhtar Ali</h1>
<p id="iltaf"> Click on the button to see about akhtar ali khan.</p>
<button type="button" onclick="document.getElementById('iltaf').innerHTML='Akhtar ali khan is the student of computer science Study at GIK university pakistan and the owner of akhtar Private Limited '">Click ka</button>
</center>
</body>
</html>