{}const=>[]async()letfn</>var
DevelopmentBasics

Web development from scratch: creating your first website in HTML, CSS and JavaScript

How a beginner developer can understand the basics of web development. What are HTML, CSS and JavaScript, how do they work together and how to make your first site from scratch.

К

Kodik

Author

3 min read

If you have long wanted to understand how websites are created — where it all begins and why programmers call HTML, CSS and JavaScript the “holy trinity” — this article is for you.

We will analyze step by step how the Internet works from the inside: from the simplest markup to interactive pages that move, react and look beautiful. You will learn how to create your first website, even if you have never written a line of code.

Why web development?

Web is the perfect direction for a start in programming:

  • no need to install complex software — a browser is enough;

  • the result is visible immediately, right on the screen;

  • everything you learn is applicable in real life;

  • the demand for web developers is steadily growing.

Every site you open — from Google to Codepen — consists of three key technologies: HTML, CSS and JavaScriptLet's figure out how they work together.

🔥 100,000+ students already with us

Tired of reading theory?
Time to code!

Kodik — an app where you learn to code through practice. AI mentor, interactive lessons, real projects.

🤖 AI 24/7
🎓 Certificates
💰 Free
🚀 Start learning
Joined today

Step 1. HTML is the foundation of any website

HTML (HyperText Markup Language) is markup language, which defines the structure of the page. It tells the browser where the title is, where the text is, where the image or button is. Without HTML, a website simply would not exist — it is its "skeleton".

<!DOCTYPE html>
<html>
  <head>
    <title>Мой первый сайт</title>
  </head>
  <body>
    <h1>Привет, мир!</h1>
    <p>Это мой первый сайт на HTML 🎉</p>
  </body>
</html>
  

🧩 You can say that HTML answers the question: "What will be on the page?"

Step 2. CSS — turn code into design

CSS (Cascading Style Sheets) adds to the site Appearance. With its help, you can customize colors, fonts, block layout, animations, and adaptation to different screens.

body {
  background-color: #f5f5f5;
  font-family: 'Inter', sans-serif;
  color: #333;
  text-align: center;
}

h1 {
  color: #ff7a00;
}
  

Thanks to CSS, sites are transformed from text pages into real visual interfacesthat are pleasant to use.

Step 3. JavaScript — animating the page

JavaScript makes the site smart and interactive. It allows you to respond to user actions, control animation, dynamically update data, and even work with the server.

<button onclick="sayHello()">Нажми меня</button>

<script>
  function sayHello() {
    alert('Hello, developer!');
  }
</script>
  

If HTML is the body, CSS is the clothes, then JavaScript is website brainWithout it, the Internet would be just a set of static pages.

How do you put it all together?

  1. Create a folder my-site.

  2. Inside there are three files: index.html, style.css, script.js.

  3. Connect them in HTML:

<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
  

Now you have real website, which can be opened in a browser. Every change is instantly visible. This makes web development so exciting.

What to do next?

When you master the basics, try:

  • make a simple business card or portfolio;

  • make an adaptive website that looks good on both the phone and the computer;

  • add forms and buttons with JavaScript;

  • put the site on the Internet using GitHub Pages.

Small steps turn into big achievements. The main thing is do, not just read.

Where to go next

Direction

What to study

What you can do

Frontend

React, Vue, Tailwind

Beautiful interfaces

Backend

Node.js, Express

Server logic and API

Fullstack

All of the above + databases

Full development cycle

UI/UX

Figma, design systems

Design interfaces

Creating a website is like building LEGO: first the frame (HTML), then the style (CSS), then life (JavaScript). After a couple of days of practice, you will already understand how the Internet works and will be able to take the first steps towards your profession.

In Codice there are interactive courses on HTML, CSS, and JavaScript, where you learn not from boring books, but in the format of mini-games, practice and challenges. Level up your skills, get achievements, and make your first website with the robot Kodik 🤖

And we also have an active Telegram channel, where we discuss cool ideas, share experiences and analyze tasks together — learning becomes not only useful, but also fun

🎯Stop procrastinating

Liked the article?
Time to practice!

In Kodik, you don't just read — you write code immediately. Theory + practice = real skills.

Instant practice
🧠AI explains code
🏆Certificate

No registration • No card