-
Notifications
You must be signed in to change notification settings - Fork 0
/
tut6.html
24 lines (19 loc) · 906 Bytes
/
tut6.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
<!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>Inline and Block Elements</title>
<!-- Inline elements are those elements which only occupy the space bounded by the tags defining
the element, instead of breaking the flow of element. On the other hand,
block-level elements take up the entire space of its parent element.-->
</head>
<body>
<strong style="border: 2px solid blue;">this is a paragragh</strong> <a style="border: 2px solid red;">this is also
paragragh</a>
<span style="border: 2px solid blue;">this is span</span>
<span style="border: 2px solid red">this is also span</span>
<!-- Anchor <a> tags also behaves like an inline element. -->
</body>
</html>