html
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Top HTML Questions 2</title>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="heading">
<h1>TOP HTML QUESTIONS</h1>
<h3>PART 1</h3>
</div>
<div class="wrapper">
<div class="container"></div>
<a href="https://youtu.be/OWxDxf5WXAc" target="_blank"
>Explain In Detail</a
>
<div class="buttons">
<button id="prev">Prev</button>
<button id="next">Next</button>
</div>
</div>
<script>
const nextBtn = document.getElementById("next");
const prevBtn = document.getElementById("prev");
const container = document.querySelector(".container");
css
css
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
:root {
--primary-color: #4470f4;
--secondary-color: #00042a;
--tertiary-color: #ffffff;
--bg-color: #f1f1f1;
--example-bg-color: #eaeaea;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: var(--bg-color);
}
.heading {
background-color: var(--secondary-color);
text-align: center;
padding: 1.5em 0;
border-bottom: 10px solid var(--primary-color);
}
.heading h1 {
font-weight: 500;
color: var(--tertiary-color);
}
.heading h3 {
color: var(--primary-color);
js
js
1
BROWSER
Console
Run