Web Development Learning Guide (HTML, CSS,
JavaScript)
1. Introduction
- Web development involves building websites and web apps.
- Core technologies: HTML (structure), CSS (style), JavaScript (functionality).
2. HTML Basics
- HTML = HyperText Markup Language.
- Structure: <!DOCTYPE html><html><head><title>Page</title></head><body></body></html>
- Common tags: <h1>, <p>, <a>, <img>, <div>, <span>
3. CSS Basics
- CSS = Cascading Style Sheets, used for styling HTML.
- Selectors: p { color: red; }
- Properties: color, background, margin, padding, border, font-size.
- Box Model: content, padding, border, margin.
4. JavaScript Basics
- JavaScript adds interactivity to websites.
- Variables: let x = 10; const name = 'Harsh';
- Functions: function greet() { return 'Hello'; }
- Events: <button onclick='alert("Clicked!")'>Click</button>
5. DOM Manipulation
- DOM = Document Object Model, represents HTML as objects.
- document.getElementById('id').innerHTML = 'Hello';
- document.querySelector('.class').style.color = 'blue';
6. Advanced JavaScript
- ES6 features: Arrow functions, Promises, Async/Await.
- Example: const add = (a,b) => a+b;
- fetch('api.com').then(res => res.json()).then(data => console.log(data));
7. Responsive Design
- Use CSS media queries to make websites mobile-friendly.
- @media (max-width: 600px) { body { font-size: 14px; } }
8. Projects Ideas
- Portfolio Website (HTML, CSS, JS)
- Calculator (JS)
- To-Do List (JS + LocalStorage)
- Weather App using API
- Responsive Blog Website
9. Conclusion
- Master HTML first, then CSS, then JavaScript.
- Build small projects to improve skills.