Full Stack Web Development Notes
1. HTML Basics
HTML (HyperText Markup Language) is the standard markup language for creating web pages.
Example:
<html>
<head><title>My Web Page</title></head>
<body>
<h1>Welcome!</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
[An image of a webpage with a heading 'Welcome!' and a paragraph below it.]
2. CSS Styling
CSS (Cascading Style Sheets) is used to style and layout web pages.
Example:
<style>
h1 { color: blue; }
p { font-size: 14px; }
</style>
Full Stack Web Development Notes
Output:
[An image showing styled HTML content with a blue heading and normal paragraph.]
3. JavaScript Basics
JavaScript is a programming language that allows you to implement complex features on web pages.
Example:
<script>
alert('Hello, World!');
</script>
Output:
[An image of a browser alert box displaying 'Hello, World!']
4. Node.js and Express
Node.js is a runtime environment for executing JavaScript server-side. Express is a Node.js framework.
Example:
const express = require('express');
const app = express();
app.get('/', (req, res) => res.send('Hello World'));
app.listen(3000);
Output:
Full Stack Web Development Notes
[An image of the browser displaying 'Hello World' on http://localhost:3000]
5. MongoDB Integration
MongoDB is a NoSQL database that stores data in JSON-like documents.
Example:
db.users.insertOne({name: 'Alice', age: 25});
Output:
[An image showing a document inserted in MongoDB database.]
6. React Front-End
React is a JavaScript library for building user interfaces.
Example:
function App() {
return <h1>Hello React</h1>;
Output:
[An image of a webpage with the text 'Hello React']