-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexp31OutputandBasetag.html
More file actions
33 lines (26 loc) · 1.01 KB
/
exp31OutputandBasetag.html
File metadata and controls
33 lines (26 loc) · 1.01 KB
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
<!-- example on output and base tag-->
<DOCTYPE html>
<html lang="en">
<head>
<title> my 29th web page</title>
<link rel="icon" href="id.png"/>
<base href="https://th.bing.com/th/id/">
</head>
<body>
<h3>demo on output , base tag</h3>
<output>hello world</output>
<br>
<button onclick="document.write('button clicked')">Click here</button>
<br>
<button onclick="op.value='button pressed' ">Press here</button><br>
<output id="op"></output>
<br>
<button onclick="d.value=new Date()">Show date</button><br>
<output id="d">Date & time</output>
<br>
<img src="OIP.a4nWKkodWyCR8G02DwNtNQHaE7?w=269&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
<img src="OIP.vfI3Fty5NJTLxe_dEXHMoQHaE7?w=270&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
</body>
</html>
<!--output tag is used to displaying the output with javascript on same page
base tag is used to provide the shortcuts for url-->