-
Notifications
You must be signed in to change notification settings - Fork 0
/
head.html
26 lines (22 loc) · 1001 Bytes
/
head.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>My first HTML page</title>
<base href="http://www.w3schools.com/images/" />
<base target="_blank" />
</head>
<body>
<p>
The content of the body element is displayed in thge broweser.
</p>
<p>
The content of the title element is displayed in the browser's title.
</p>
<h4>Specifying a base url</h4>
<img src="stickman.gif" width="24" height="9" />
- Notice that we have only specified a relative address for the image/ Since we have specified a base URL in the head section, the browser will look for the image at "http://www.w3schools.com/images/stickman.gif"<br /><br />
<a href="http://www.w3schools.com">W3schools</a>
- Notice that the link opens in a new window, even if it has no target="_blank" attribute. This is because the target attribute of the base element is set to "_blank".
</body>
</html>