Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING BASH RUST

Brtest Tutorial


Introduction to Web Development

This chapter gives you a fast, practical overview of how the web works, what frontend and backend mean, the tools you need, and how to set up your first project.


What Is Web Development?

Web development is the process of building websites and web applications. In this tutorial you will:

  • Write structure with HTML
  • Style with CSS
  • Add interactivity with JavaScript

How the Web Works (Client & Server)

When you type a URL and press Enter, your browser (the client) sends an HTTP request to a server. The server returns files (HTML, CSS, JS, images) that the browser renders.

Request/Response (Simplified):

Browser → HTTP Request → Server
Server → HTTP Response (HTML/CSS/JS) → Browser
Browser → Renders Page

Frontend vs Backend

  • Frontend: What users see and interact with (HTML, CSS, JavaScript).
  • Backend: Server-side logic and data (databases, APIs, authentication).

Tools You Need

  • A modern browser (Chrome, Edge, Firefox, Safari)
  • A code editor (VS Code, Sublime, etc.)
  • Optional: Git for version control

Tip: In VS Code, install extensions for HTML, CSS, JavaScript, and a Live Server plugin to preview changes.


Set Up Your First Project

Create a folder and add your first HTML file.

Example: Minimal index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Hello Web</title>
</head>
<body>
  <h1>Hello Web!</h1>
  <p>My first step into web development.</p>
</body>
</html>
Try it Yourself »

Add Styling (CSS)

Create a mystyle.css file and link it from your HTML.

Example: Link a Stylesheet

<!-- inside <head> -->
<link rel="stylesheet" href="mystyle.css">

Example: mystyle.css

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 2rem;
}
h1 { color: #1a4; }
Try it Yourself »

Add Interactivity (JavaScript)

Create an myscript.js file and include it with defer or at the end of <body>.

Example: Button Click

<button id="greetBtn">Greet Me</button>

<script>
document.getElementById("greetBtn").addEventListener("click", function () {
  alert("Welcome to Web Development!");
});
</script>
Try it Yourself »

Note: External file pattern: <script src="myscript.js" defer></script>.


Folder Structure

Example

my-first-site/
  index.html
  mystyle.css
  myscript.js
  images/

Tip: Keep filenames lowercase and avoid spaces (use hyphens).


Quick Practice

  1. Create the folder structure above.
  2. Add the HTML, CSS, and JS samples.
  3. Open index.html in your browser and test the button.
Try it Yourself »

Next Up

Continue to the next chapter where we dive into the building blocks of the web with HTML – Structure of a Web Page.

Next » HTML – Structure

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.