-
Notifications
You must be signed in to change notification settings - Fork 0
/
3. Images_backgrounds_Anchors.html
88 lines (61 loc) · 2.11 KB
/
3. Images_backgrounds_Anchors.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Images, Backgrounds & Anchors</title>
<style>
.image{
/* Top img properties */
/* image-rendering: ;
object-fit: ;
object-position: ;
vertical-align: ;
filter: ; */
}
.firstbackground{
box-sizing: border-box;
padding: 20px;
border: 5px solid rgb(63, 165, 160);
margin-top: 20px;
width: 500px;
background-color: rgb(192, 243, 240);
}
.secondbackground{
box-sizing: border-box;
padding: 20px;
border: 5px solid rgb(165, 63, 134);
margin-top: 30px;
width: 500px;
height: 600px;
/* Notice how we have to add URL for the background image property */
background-image: url("https://source.unsplash.com/400x300/?birds,water,green");
background-repeat: no-repeat;
background-position: center;
/* background-size: ; */
/* background-attachment: ; */
}
</style>
</head>
<body>
<h2>Anchors</h2>
<!-- We have target property to open the links in new browser tab -->
<a href="www.google.in" target="_blank">This is google</a> <br>
<a href="www.facebook.com" target="_blank">This is facebook</a><br>
<a href="www.youtube.com" target="_blank">This is youtube</a><br>
<a href="www.google.com" target="_blank">This is google</a><br>
<a href="2.Box Model.html" target="_blank"><h4>This is the internal Box Model page</h4></a>
<div class="image">
<h2>Images</h2>
<img src="https://source.unsplash.com/500x300/?birds,water,green" alt="unsplash random images">
</div>
<h2>Backgrounds</h2>
<div class="firstbackground">
This is the First paragraph without an image.
</div>
<div class="secondbackground">
This is the Second paragraph with an image.
</div>
</body>
</html>