-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlec10.html
24 lines (23 loc) · 924 Bytes
/
lec10.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>Ids and Classes</title>
</head>
<body>
<h3>Ids and Classes tutorial</h3>
<div id="mainBox" class="redBg"></div>
<span id="mainSpan" class=redBg></span>
<!-- use . to create new class and # to create new id -->
<span id="newId"></span>
<span class="newClass"></span>
<!-- Emmet takes div as default while using . to create new Class -->
<div class="firstClass"> This is div tag</div>
<!-- to create multiple elementslike span write element*4. this will create 4 such elemnts -->
<span class="xclass yclass zclass">First Span</span>
<span class="xclass yclass zclass">Second Span</span>
<span class="xclass yclass zclass">Third Span</span>
</body>
</html>