Election Coding






<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vote for Prime Minister of Pakistan 2024</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
text-align: center;
margin: 0;
padding: 0;
}
h1 {
color: #333;
margin-top: 50px;
font-size: 36px;
text-transform: uppercase;
letter-spacing: 2px;
}
.options {
margin-top: 30px;
}
.option {
display: inline-block;
margin: 0 10px;
}
input[type="radio"] {
display: none;
}
label {
padding: 12px 24px;
background-color: #4CAF50;
color: white;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
display: inline-block;
font-size: 18px;
}
label:hover {
background-color: #45a049;
}
#pollButton {
display: block;
margin: 20px auto;
padding: 15px 30px;
background-color: #FF5722;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 18px;
transition: background-color 0.3s;
}
#pollButton:hover {
background-color: #BF360C;
}
</style>
</head>
<body>


<h1>Vote for Prime Minister of Pakistan 2024</h1>


<div class="options">
<form>
<div class="option">
<input type="radio" id="imran" name="pm" value="Imran Khan">
<label for="imran">Imran Khan</label>
</div>
<div class="option">
<input type="radio" id="nawaz" name="pm" value="Nawaz Sharif">
<label for="nawaz">Nawaz Sharif</label>
</div>
<div class="option">
<input type="radio" id="bilawal" name="pm" value="Bilawal">
<label for="bilawal">Bilawal</label>
</div>
</form>
</div>


<!-- Replace 'Add your link here' with your desired URL -->
<button id="pollButton" onclick="openNewWebsite()">Vote Now</button>


<script>
function openNewWebsite() {
// Add your link here
window.open('Add your link here', '_blank');
}
</script>


</body>
</html>

Post a Comment

Previous Post Next Post