-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3 elements.html
More file actions
46 lines (29 loc) · 791 Bytes
/
3 elements.html
File metadata and controls
46 lines (29 loc) · 791 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ELEMENTS</title>
</head>
<body>
<h1>Inline Elements & Block Elements</h1>
</body>
</html>
<h2>Block Elements:</h2>
Have only one tag used is called block elements.<br><br>
Eg: <h1>romanreignsjhoncenatheundertaker</h1>
<h1>h1 tag</h1>
<div>div tag</div>
<p>paragraph tag</p>
<a>anchor tag</a>
<br>
<br>
<br>
<h2>Inline Elements:</h2>
Inside the block scope another one or more tag used is called inline elements. <br><br>
Eg:
<br><br>
<b>bold tag</b><br><br>
<strong>strong tag</strong><br><br>
<span>span tag</span><br>
<h1>romanreigns<span style="background-color: crimson;">therock</span>jhoncenatheundertaker</h1>