Codes of Ui
Codes of Ui
<!DOCTYPE html>
<html>
<head><title>Login Validation</title></head>
<body>
<h2>Login Page</h2>
<button onclick="login()">Login</button>
<script>
function login() {
alert("Login Successful");
else
</script>
</body>
</html>
---
2. Dark Mode Toggle
<!DOCTYPE html>
<html>
<body id="page">
<h2>Welcome to My Page</h2>
<script>
function toggleTheme() {
dark = !dark;
</script>
</body>
</html>
---
3. Character Counter
<!DOCTYPE html>
<html>
<head><title>Character Counter</title></head>
<body>
<textarea id="text" maxlength="100" oninput="countChars()"></textarea>
<script>
function countChars() {
}
</script>
</body>
</html>
---
4. Image Slideshow
<!DOCTYPE html>
<html>
<head><title>Image Slideshow</title></head>
<body>
<button onclick="prev()">Previous</button>
<button onclick="next()">Next</button>
<script>
let i = 0;
function show() { [Link]("slide").src = imgs[i]; }
function next() { i = (i + 1) % [Link]; show(); }
setInterval(next, 3000);
</script>
</body>
</html>
---
<!DOCTYPE html>
<html>
<head><title>Order Form</title></head>
<body>
<h3>Food Order</h3>
<p id="summary"></p>
<script>
function placeOrder() {
if (n && i && q)
</script>
</body>
</html>
---
<!DOCTYPE html>
<html>
<head><title>Change Background</title></head>
<body>
<script>
function changeColor() {
[Link] = color;
</script>
</body>
</html>
---
7. College Event Registration Form
<!DOCTYPE html>
<html>
<head><title>Registration Form</title></head>
<body>
<h3>Event Registration</h3>
<select id="gender">
<option>Male</option><option>Female</option><option>Other</option>
</select><br><br>
<select id="dept">
<option>CSE</option><option>ECE</option><option>IT</option>
</select><br><br>
<button onclick="register()">Register</button>
<script>
function register() {
alert("Successfully Registered!");
else
</script>
</body>
</html>
---
8. Basic Calculator
<!DOCTYPE html>
<html>
<head><title>Calculator</title></head>
<body>
<button onclick="calc('+')">+</button>
<button onclick="calc('-')">-</button>
<button onclick="calc('')"></button>
<button onclick="calc('/')">/</button>
<p id="result"></p>
<script>
function calc(op) {
let r;
if (op==='+') r=a+b;
</body>
</html>
---
<!DOCTYPE html>
<html>
<head><title>Login Page</title></head>
<body>
<h3>Login</h3>
<button onclick="check()">Login</button>
<p id="msg"></p>
<script>
function check() {
</script>
</body>
</html>
---
<!DOCTYPE html>
<html>
<head><title>Feedback Form</title></head>
<body>
<h3>Feedback</h3>
<button onclick="submitForm()">Submit</button>
<script>
function submitForm() {
else
</script>
</body>
</html>