HTML_CSS_JS_Projects
HTML_CSS_JS_Projects
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portfolio</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>My Portfolio</h1>
</header>
<section>
<h2>About Me</h2>
<p>Hi, I'm a web developer passionate about coding!</p>
</section>
<script src="script.js"></script>
</body>
</html>
2. Calculator
A simple calculator using HTML, CSS, and JavaScript for basic arithmetic operations.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Calculator</title>
<script>
function calculate() {
let result = eval(document.getElementById('display').value);
document.getElementById('display').value = result;
}
</script>
</head>
<body>
<input type="text" id="display">
<button onclick="calculate()">=</button>
</body>
</html>