Web Development
Web Development
-----------------------------------------------------------------------------------------------------------------------------------
1. Front-End Development: The user interface and user experience (HTML, CSS, JavaScript).
2. Back-End Development: Server-side logic and database interaction (Node.js, PHP, Python, etc.).
3. Full-Stack Development: A combination of front-end and back-end development.
HTML is used to create the structure of web pages. Here’s a basic template:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Website</title>
</head>
<body>
<header>
<h1>Welcome to My Website</h1>
</header>
<main>
<p>This is a sample paragraph.</p>
</main>
<footer>
<p>© 2025 My Website</p>
</footer>
</body>
</html>
Key HTML Tags
/* External CSS */
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
margin: 0;
padding: 0;
}
h1 {
color: #333;
text-align: center;
}
p {
line-height: 1.5;
margin: 20px;
}
Ways to Add CSS
CSS Properties
Responsive Design
JavaScript Basics
2. Internal: <script>
console.log("Hello, JavaScript!");
</script>
1. Bootstrap
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet">
<button class="btn btn-primary">Bootstrap Button</button>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(document).ready(function() {
$("p").click(function() {
$(this).hide();
});
});
</script>
6. Back-End Development Basics
Database Integration
1. IDEs
• CodePen
• JSFiddle
3. Version Control