Hex code of color
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>javascript</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="../css/style.css">
</head>
<body>
<div class="container">
<div class="hex-colors">
<h1>Click The Button below to display the hex code of random color</h1>
<h2>the hex code of the a color is # <span id="hex-code">00000</span></h2>
<button onclick="changeColor()" type="button" class="btn btn-primary">click me</button>
</div>
</div>
</div>
</div>
<script src="../javascript/script.js"></script>
</body>
</html>
Comments
Post a Comment