-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwo.html
More file actions
47 lines (43 loc) · 1.1 KB
/
two.html
File metadata and controls
47 lines (43 loc) · 1.1 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<title>document 2</title>
<style>
body
#mayank
{
background-color: lightgreen;
}
.box
{
width:500px;
height: 500px;
border:2px solid red;
background-image: url("https://my.alfred.edu/zoom/_images/foster-lake.jpg");
background-repeat:no-repeat;
background-color: blue;
}
.jay
{
background-color: red;
width: 200px;
height: 200px;
}
</style>
<body>
<h1> The<Div>tag</h1>
<div id="mayank">
We use the <div> tag to group two paragraphs for applying
background to the text, and to add color to this word welcome
place it within <span> tag.<br><br>
Pay attention, that the <div>tag is a block-level element,
so a line break is placed before and after it.
</div>
<div class="box">
</div>
<div class="jay">
welcome to the Delhi University
</div>
</body>
</head>
</html>