📅 Week 1 - Day 1: Introduction to Web Technologies

Monday | Duration: 3 hours

🎯 Learning Objectives

By the end of this lesson, you will be able to:

  • Explain how the Internet and World Wide Web work
  • Understand the client-server model and HTTP protocol
  • Set up a professional web development environment
  • Create and run your first HTML page
  • Understand basic file and folder structure for web projects

📚 Lecture Notes: How the Web Works

1. The Internet vs The World Wide Web

The Internet: A global network of interconnected computers that communicate using standardized protocols.

The World Wide Web (WWW): A system of interlinked documents and resources accessed via the Internet using web browsers.

Key Point: The Internet is the infrastructure; the Web is a service that runs on top of it.

2. The Client-Server Model

How a Webpage is Loaded

Client (Browser)
→
Request
→
Server


Server
→
Response (HTML/CSS/JS)
→
Client Renders Page

3. What is HTTP?

HTTP (HyperText Transfer Protocol) is the foundation of data communication on the web.

HTTP Method Purpose Example
GET Retrieve data from server Loading a webpage
POST Send data to server Submitting a form
PUT Update existing data Editing a profile
DELETE Remove data Deleting an account

4. DNS: The Internet's Phone Book

DNS (Domain Name System) translates human-readable domain names into IP addresses.

Example: www.google.com → 142.250.190.46

Without DNS, we'd have to remember IP addresses for every website!

5. Key Web Technologies

  • HTML (HyperText Markup Language): Structure and content of web pages
  • CSS (Cascading Style Sheets): Styling and layout
  • JavaScript: Interactivity and dynamic behavior
  • HTTP/HTTPS: Communication protocol
  • Web Servers: Apache, Nginx, XAMPP

🛠️ Setting Up Your Development Environment

Step 1: Install Visual Studio Code

📥 Installation Steps:

  1. Visit https://code.visualstudio.com/
  2. Download the installer for Windows
  3. Run the installer and follow the prompts
  4. Launch VS Code after installation

Step 2: Install Essential VS Code Extensions

Recommended Extensions:

  • Live Server: Launch a local development server with live reload
  • HTML CSS Support: Improved HTML and CSS IntelliSense
  • Prettier: Code formatter
  • Auto Rename Tag: Automatically rename paired HTML tags

How to Install: Click Extensions icon (Ctrl+Shift+X) → Search → Install

Step 3: Install XAMPP

📥 Installation Steps:

  1. Visit https://www.apachefriends.org/
  2. Download XAMPP for Windows
  3. Run installer (you may need administrator rights)
  4. Install to default location: C:\xampp
  5. Launch XAMPP Control Panel
  6. Start Apache server (click "Start" button)

Purpose: XAMPP provides Apache web server for testing websites locally.

Step 4: Install Git

📥 Installation Steps:

  1. Visit https://git-scm.com/
  2. Download Git for Windows
  3. Run installer with default settings
  4. Verify installation: Open Command Prompt and type: git --version

Purpose: Git tracks changes in your code and enables collaboration.

Step 5: Create Your Project Folder

C:\xampp\htdocs\web_basics\
index.html your main page
about.html about page
css/
style.css stylesheets
images/
your images
js/
script.js JavaScript files

💡 Best Practice: Keep files organized in folders. Use lowercase names without spaces (use hyphens or underscores).

💻 Hands-On Activity: Your First HTML Page

Task: Create "Hello World" Webpage

Instructions:

  1. Open VS Code
  2. Create a new file: File → New File
  3. Save as: C:\xampp\htdocs\web_basics\hello.html
  4. Type the code below
  5. Save the file (Ctrl+S)
  6. Open in browser: http://localhost/web_basics/hello.html
<!-- HTML5 Document Type Declaration --> <!DOCTYPE html> <html lang="en"> <head> <!-- Character encoding for proper text display --> <meta charset="UTF-8"> <!-- Responsive design for mobile devices --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Page title shown in browser tab --> <title>My First Web Page</title> </head> <body> <!-- Main heading --> <h1>Hello World!</h1> <!-- Paragraph content --> <p>Welcome to my first web page. My name is [Your Name].</p> <p>I am learning web development at Next Step Innovation and Impact Space.</p> </body> </html>

Understanding the Code

  • <!DOCTYPE html>: Tells browser this is HTML5
  • <html>: Root element of the page
  • <head>: Contains meta information (not displayed)
  • <meta charset="UTF-8">: Character encoding for proper text display
  • <title>: Title shown in browser tab
  • <body>: Contains visible content
  • <h1>: Main heading (largest)
  • <p>: Paragraph

🎨 Try This: Modify Your Page

  • Change the heading text
  • Add your own name and information
  • Add more paragraphs with <p> tags
  • Save and refresh your browser to see changes

✏️ Practice Exercises

Exercise 1: Create an Index Page

Create index.html in your web_basics folder with:

  • A main heading with your name
  • A subheading (use <h2>) saying "Web Development Journey"
  • Three paragraphs about yourself
  • A horizontal line (use <hr>)
  • A footer paragraph with the date

Exercise 2: Test Your Environment

  • Verify XAMPP Apache is running (green in control panel)
  • Access your page via http://localhost/web_basics/index.html
  • Open Chrome DevTools (F12) and explore the Elements tab
  • Make a small change and refresh to see it update

📝 Quick Quiz

  1. What is the difference between the Internet and the World Wide Web?
  2. What does HTTP stand for?
  3. What are the three main technologies used in web development?
  4. What is the purpose of the <!DOCTYPE html> tag?
  5. Where should visible content be placed in an HTML document?

✅ Today's Deliverable

Submit the following:

  • Screenshot of VS Code with your hello.html file open
  • Screenshot of your webpage running in the browser
  • Screenshot of XAMPP Control Panel showing Apache running
  • Your completed index.html file

Submit to: Your instructor via email or learning management system