-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathid_classes.html
More file actions
30 lines (27 loc) · 993 Bytes
/
id_classes.html
File metadata and controls
30 lines (27 loc) · 993 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
<!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>Ids and classes in HTML</title>
</head>
<body>
<h3>Ids and classes in HTML</h3>
<div id="mainbox" class="redBg">
this is mainbox
</div>
<!-- Emmet -->
<span class="redBG"></span>
<div id="mainSpan"></div>
<!-- . is for class and # is for id -->
<div class="redBg blackborder greenoutline"></div>
<!-- emmet takes div tag as daefault -->
<div class="redbg"></div>
<!-- creating multiple elements using Emmet*4 to print 4 similar elements using Emmet -->
<span class="myclass myclass2 myclass3">first</span>
<span class="myclass myclass2 myclass3">second</span>
<span class="myclass myclass2 myclass3">third</span>
<span class="myclass myclass2 myclass3">fourth</span>
</body>
</html>