-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathid&class.html
More file actions
30 lines (30 loc) · 1.11 KB
/
id&class.html
File metadata and controls
30 lines (30 loc) · 1.11 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
<!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</title>
</head>
<body>
<h3>Ids and classes</h3>
<div id="mainbox" class="redBg">
this is mainbox
</div>
<span class="redBg"></span>
<!--Select and press ctrl+/ to comment-->
<!--Emmet-->
<!---- .is for class and # is for id-->
<span class="redBg"></span>
<span id="mainSpan"></span>
<div class="redBg blackBorder anotherClass"></div>
<!--Emmet takes div tag as default-->
<div class="blackBorder"></div>
<!--creating multiple elemets using Emmet-->
<!--span.myClass.myClass2.myClass3*4 + <Tab> 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>