-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path8.html
More file actions
26 lines (24 loc) · 952 Bytes
/
8.html
File metadata and controls
26 lines (24 loc) · 952 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
<!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 here</h3>
<!-- here id "mainbox" can used only once means no repete for any id -->
<!-- but any class can be used many times, and multiple class can be used in same div or spanor etc -->
<div id="mainBox" class="redBg blackBorder">
this is mainbox
</div>
<!-- . is for class and # for id, like span.redBG press enter and span#mainSpan -->
<span class="redBg"></span>
<span id="mainSpan"></span>
<!-- creating multiple elements -->
<!-- span.myclass.myclass2.myclass3 and press enter-->
<span class="myclass myclass2 myclass3"></span>
<!-- for multiple, span.cl1.cl2.cl3*4-->
</body>
</html>