-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpro.html
115 lines (96 loc) · 3.08 KB
/
pro.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Processing Unit</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 20px;
padding: 10px;
}
h1 {
color: #3c0ebd;
text-align: center;
font-size: 26px;
margin-bottom: 10px;
}
h2 {
color: #210780;
font-size: 22px;
margin-top: 20px;
}
p {
font-size: 18px;
color: #bb1414;
line-height: 1.6;
}
.image-container img {
max-width: 100%; /* Ensures images don't exceed container width */
height: auto; /* Maintains original aspect ratio */
border: 2px solid red;
border-radius: 10px;
}
.image-container img {
width: 100%;
max-width: 300px;
height: auto;
border: 2px solid red;
border-radius: 10px;
}
.e {
border: 1px solid transparent;
height: 80px;
width: 80%;
max-width: 250px;
background-color: lightgray;
margin: 20px auto;
}
/* Responsive Styles */
@media (max-width: 768px) {
h1 { font-size: 24px; }
h2 { font-size: 20px; }
p { font-size: 16px; }
.d { max-width: 250px; }
}
@media (max-width: 480px) {
h1 { font-size: 22px; }
h2 { font-size: 18px; }
p { font-size: 14px; }
.d { max-width: 200px; }
}
</style>
</head>
<body>
<h1>Processing Unit</h1>
<h2>C.P.U - Central Processing Unit</h2>
<div class="image-container">
<img class="d" src="cpu.jpeg" alt="CPU">
</div>
<p>The CPU is the brain of the computer. It can be divided into three types:</p>
<ul>
<li>Control Unit (CU)</li>
<li>Arithmetic Logic Unit (ALU)</li>
<li>Instruction Register (IR)</li>
</ul>
<h2>1. Control Unit</h2>
<div class="image-container">
<img class="d" src="control.jpeg" alt="Control Unit">
</div>
<p>The control unit manages and directs the operations of the computer. It acts as the central nervous system (CNS) of the computer.</p>
<p>Its main function is to fetch and decode instructions.</p>
<h2>2. Arithmetic Logic Unit (ALU)</h2>
<div class="image-container">
<img class="d" src="alu.jpeg" alt="ALU">
</div>
<p>The Arithmetic and Logical Unit (ALU) is responsible for executing data operations, including all arithmetic and logical calculations.</p>
<h2>3. Instruction Register (IR)</h2>
<div class="image-container">
<img class="d" src="ir.jpeg" alt="Instruction Register">
</div>
<p>The Instruction Register (IR) acts as a temporary memory, holding data for a short time before transferring it to other components.</p>
<div class="e"></div>
</body>
</html>