1. Before we Begin
If you've found this article, chances are you're thinking about building your own website but aren't quite sure where to start.
Maybe you don't have any coding experience, or perhaps you've always thought building a portfolio website would be too complicated.
The good news is that you don't need to be a programmer to get your own website up and running.
In this tutorial series, we'll walk you through the process of building and publishing your own portfolio website, starting with the fundamentals of web technology. We'll assume that you know little to nothing about web development, and no prior programming experience or computer science knowledge is required.
We'll use a ready-made template and a one-click deployment tool, so you can focus on making the website your own instead of worrying about complicated technical setups.
A little note on using AI
Building a website has become easier than ever in 2026, and many of the tasks covered in this tutorial can now be completed simply by describing what you want to an AI tool.
However, you should always bear in mind that AI-generated code isn't always reliable or secure. Without understanding what the AI is doing, you might introduce bugs, security vulnerabilities, or unexpected behaviour into your website. That's why we've included additional guides to help you understand how to customise, maintain, and secure your website without relying entirely on AI.
While you could use AI coding tools to complete almost everything in this series, we strongly encourage you to try doing things yourself first, using AI to explain unfamiliar concepts, review your changes, or help troubleshoot problems.
After all, the goal of this tutorial isn't just to help you publish a portfolio website, but also to help you understand how it works.
Of course, if you're short on time and simply want a good-looking portfolio website, feel free to use whichever AI tools work best for you. We've also included an AGENTS.md file to help AI coding agents understand the project.
2. What Is a Website?
We're going to build a website, but what exactly is a website?
You probably visit dozens of websites every day, whether you're searching for something on Google, watching videos on YouTube, or reading an article online. But have you ever wondered what these websites are actually made of?
Websites and Webpages
First, let's clarify two terms that are often used interchangeably: website and webpage.
A webpage is a single page you can view in your browser. For example, the homepage of a portfolio, or a page showing a particular project.
A website, on the other hand, is a collection of related webpages and resources, usually accessible under the same domain name.
Think of a website as a book, and webpages as the individual pages inside it.
For example, your portfolio website might contain:
- Home — A brief introduction about yourself.
- Projects — A collection of your work.
- About Me — Your background, skills, and experience.
- Contact — Ways for people to get in touch with you.
Of course, not every website needs multiple pages. Some portfolio websites display everything on a single, scrollable page.
What makes up a webpage?
Most modern webpages are built using three fundamental web technologies: HTML, CSS, and JavaScript.
HTML (HyperText Markup Language) defines the structure and content of a webpage. It tells the browser what elements exist, such as headings, paragraphs, images, and links.
CSS (Cascading Style Sheets) controls how those elements look. It determines things like colours, fonts, spacing, and layout.
JavaScript makes webpages interactive. For example, it can open a navigation menu, filter your projects, or update content when someone clicks a button.
You can think of them as building a house:
- HTML is the structure and the rooms.
- CSS is the decoration and interior design.
- JavaScript is the functionality, such as lights and automatic doors.
JavaScript vs. TypeScript: What's the Difference?
If you have some programming experience, you might have heard of TypeScript and wondered how it differs from JavaScript.
JavaScript is a dynamically typed programming language. This means that a variable can hold different types of values, such as numbers or text, without requiring you to declare its type in advance.
While this makes JavaScript flexible and easy to get started with, it can also make certain programming errors harder to detect, especially as projects grow larger.
To address these challenges, Microsoft introduced TypeScript in 2012.
TypeScript builds on JavaScript by adding static type checking to help developers catch many common mistakes before running their code.
For example, in JavaScript, you can write:
let age = 20;
age = "twenty"; // Valid JavaScript
This might confuse you later when you try to perform mathematical operations on age, since it's now a string instead of a number.
In TypeScript, you can specify the expected type:
let age: number = 20;
age = "twenty"; // Type error: string is not assignable to number
Later when you attempt to assign a string to age, TypeScript will raise an error, helping you catch the mistake early.
One important thing to understand is that TypeScript does not replace JavaScript. Instead, TypeScript code is typically converted into JavaScript before being executed in a browser.
Modern web frameworks like Next.js encourage the use of TypeScript rather than plain JavaScript, as it can help catch errors early and improve code quality.
We'll explore TypeScript further when we start working with our portfolio's source code. (Our template is built with TypeScript!)
These technologies work together to create the websites you visit and interact with every day.
You might have also heard of React or Next.js. These are tools that make it easier for developers to build and manage websites, especially as they become more complex.
For our portfolio, we'll be using Next.js, which is built on top of React. You don't need to understand how either of them works just yet.
And don't worry if you've never written HTML, CSS, or JavaScript before. Our portfolio template already has the code you need to get started. As we customise it in later chapters, you'll gradually learn how these technologies work through hands-on examples.
For now, just remember that a website isn't a single image or document. It's a collection of content, resources, and code that your browser uses to display webpages.
3. How Does the Web Work?
Now that we know what a website is made of, let's explore how it actually works.
Imagine you want to visit someone's portfolio website. You open your browser, type https://mironchen.me into the address bar, and press Enter.
A few moments later, the website appears on your screen.
It seems simple, but do you know how your browser knows where to find the website and how the website gets delivered to your computer?
To understand this, we first need to meet two important parts of the web: browsers and web servers.
A browser is the application you use to visit websites. It requests the resources needed for a webpage and turns them into what you see and interact with on your screen.
A web server, on the other hand, is a computer or software that responds to requests from browsers and delivers website content, such as HTML, CSS, JavaScript, and images.
Let's see what happens when you visit mironchen.me.
Step 1. Where is the website?
How does your browser know which server to contact?
Devices communicating over the Internet use IP addresses (Internet Protocol addresses) to identify network interfaces and route data to the correct destination.
For example, an IPv4 address might look like this: 203.0.113.10
However, remembering a long string of numbers for every website would be inconvenient for ordinary users.
That's why we use domain names, such as this blog mironchen.me.
A domain name is a human-readable name that can be used to access a website or other Internet services. You could just enter the domain name in your browser’s address bar, and the browser will find the right server to retrieve the website’s content.
Step 2. How do we find the server?
When you enter mironchen.me, your browser needs to find out where to connect.
This is where DNS (Domain Name System) comes in.
DNS acts like an address book for the Internet. It helps translate domain names into IP addresses that computers can use to establish connections.
A simplified example looks like this:
mironchen.me -> DNS -> 76.76.21.21
In reality, DNS can involve multiple servers, cached results, and different types of records. But for now, you only need to remember one thing:
DNS helps your browser find the network address associated with a domain name.
We’ll revisit DNS when we set up a custom domain for your website.
Step 3: How do we communicate with the server?
Now that our browser knows where to find mironchen.me, it's time to ask the web server for the webpage.
But how do they communicate with each other?
This is where HTTP (Hypertext Transfer Protocol) comes in.
HTTP is a set of rules that allows browsers and web servers to exchange information. It works through a simple process called Request and Response.
Think of it like ordering food at a restaurant:
- Request: You place an order with the waiter.
- Response: The kitchen prepares your food and sends it back.
Similarly, when you visit mironchen.me, your browser sends an HTTP request to the web server, asking for the webpage. The server then sends back a response containing the requested content.
You may have noticed that website addresses often start with https:// instead of http://.
The extra S stands for Secure.
HTTPS uses encryption to protect the information exchanged between your browser and the server. This helps prevent others from reading or modifying the data while it's being transmitted.
Today, most websites use HTTPS, and platforms like Vercel can automatically set it up for you.
Is HTTPS Really Secure?
HTTPS protects the connection between your browser and a website, but it doesn't guarantee that the website itself is safe.
For example, a phishing website can also use HTTPS. Your connection to it may be encrypted, but the website could still be trying to steal your information.
In short, HTTPS means your connection is protected, not necessarily that the website can be trusted.
Step 4: How does the website appear on your screen?
Our browser has now received a response from the web server. But what happens next?
Remember the three building blocks we introduced earlier: HTML, CSS, and JavaScript?
The browser uses HTML to understand the page's structure, CSS to determine how it should look, and JavaScript to make it interactive. It can also load additional resources, such as images and fonts. Once these resources have loaded, the browser processes these resources and puts everything together to display the webpage on your screen. This process is known as rendering.
And that's it! You've successfully loaded a website.
Of course, modern websites can be more complicated than this. Some content may be generated on the server, while other parts are updated directly in your browser.
All Together
We’ve covered the main parts involved in loading a website.
Let's see an example of how all these pieces fit together:
Enter a URL
You enter https://mironchen.me into your browser.
We now know that HTML, CSS, and JavaScript are the building blocks of most websites, and that browsers communicate with web servers to retrieve and display webpages. We've also explored how domain names, DNS, and HTTPS help us access websites through familiar addresses and communicate with them securely.
You don't need to memorise everything we've covered. As we build and customise our portfolio, we'll revisit these concepts and see how they work in practice.
But there's still one important thing we haven't done: make our own website available on the Internet. When you build a website on your computer, it usually isn't accessible to other people.
To make it publicly available, your website needs to be hosted somewhere. Hosting means providing the infrastructure needed to make your website accessible online
The process of publishing your website is called deployment (You'll come across this term many times in the following chapters).
Fortunately, you don't need to set up and manage your own server to do this. Platforms like Vercel can handle much of the process for you.
In the next chapter, we'll use Vercel and a ready-made Next.js template to get your portfolio online with just a few clicks.
Let's get your website online!

Comments
A thought, a question, or a different perspective — you're welcome to share.
Loading comments…