-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (48 loc) · 1.4 KB
/
index.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="how to use html attribute as element selector in css" />
<title>Style with attribute</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<section class="first_section">
<div class="container">
<div class="first_sect_inn">
<h2>Add CSS using attribute inside form</h2>
<form action="#" method="post">
<label class="cmn_label">
<input type="text" name="name" placeholder="Enter Name">
</label>
<label class="cmn_label" check="active">
<input type="text" name="name" placeholder="Enter Name">
</label>
<button type="button">Button</button>
</form>
</div>
</div>
</section><!-- end of first_section -->
<section class="second_section">
<div class="container">
<h2>Add CSS using attribute inside 'div' element</h2>
<div class="second_sect_inn">
<div class="cmn_box">
<figure>
<img src="Images/Img1.jpg" alt="image1">
</figure>
<button>Active</button>
</div>
<div class="cmn_box" currelem="active">
<figure>
<img src="Images/Img2.jpg" alt="image2">
</figure>
<button>Active</button>
</div>
</div>
</div>
</section><!-- end of second_section -->
</body>
</html>