-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (38 loc) · 1.61 KB
/
index.html
File metadata and controls
41 lines (38 loc) · 1.61 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Huffman</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="heading">
<h1>Welcome to Huffman Coding</h1><br>
<h2>Use of Huffman Coding in text compression</h2><br>
<p>In text compression, Huffman coding is used to reduce the size of textual data by encoding frequently
occurring characters with shorter binary codes and rare characters with longer ones. This
variable-length encoding significantly decreases the amount of space required to store text while
preserving all original information. As a result, text files can be stored more efficiently and
transmitted faster over networks, making Huffman coding a widely used technique in lossless text
compression systems.
</p>
</div>
</header>
<main>
<div class="container">
<div class="input-section">
<h2>Input</h2>
<textarea id="inputText" placeholder="Enter text to encode..."></textarea>
<button id="encodeButton">Encode</button>
</div>
<div class="output-section">
<h2>Output</h2>
<textarea id="outputText" placeholder="Encoded output will appear here..." readonly></textarea>
</div>
</div>
</main>
<script src="script.js"></script>
</body>
</html>