-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML_seventh.html
More file actions
21 lines (18 loc) · 990 Bytes
/
HTML_seventh.html
File metadata and controls
21 lines (18 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!--Id is used to unikely identify any element. No two element can have same Id. No element can have more than one Id-->
<!--class is used to identify a group of elements. Two or more elements can have same class. Also one element can have more than one class-->
<!--We use Id and class to access an element when we write CSS and JavaScript.-->
<!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>Id and Class</title>
</head>
<body>
<div id="mainBox" class="general">
Hello World!
<p id="mainPara" class="general general2"> Lorem ipsum dolor, sit amet consectetur adipisicing elit. Officiis illum quam veniam culpa nisi animi dolore! Eligendi, sapiente saepe? Labore expedita dolores illo alias reprehenderit veniam exercitationem adipisci, mollitia maxime.</p>
</div>
</body>
</html>