CS Fundamentals
Learn the difference between websites and webpages, how they are built, how web hosting works, and the fundamental technologies behind every website you visit.
Introduction
You visit websites every single day — you search on Google, watch videos on YouTube, scroll through social media, read news articles, and shop online. But have you ever wondered what a website actually is? What happens behind the scenes when you type a web address and press Enter? How does that page appear on your screen almost instantly, even though the content might be stored on a server thousands of kilometers away?
Understanding websites and webpages is fundamental to computer literacy in the modern world. Whether you end up building websites professionally or simply using them as a consumer, knowing how they work gives you a deeper appreciation of the technology and helps you make better decisions about the websites you trust with your information.
What Is a Webpage?
A webpage is a single document displayed in a web browser. It is written in HTML (HyperText Markup Language) — a language that tells the browser how to structure and display content. Think of a webpage like a single page in a book. It has a title, content (text, images, videos), and possibly links to other pages.
When you look at a webpage in your browser, you see formatted text, images, buttons, and interactive elements. But behind the scenes, the browser received a text file containing HTML code — instructions that say things like "this is a heading," "this is a paragraph," "display this image here," and "this text links to another page." The browser interprets these instructions and renders (draws) the page visually.
Every webpage has a unique address called a URL (Uniform Resource Locator). For example, https://www.example.com/about.html is a URL. It tells your browser exactly where to find that specific page on the internet. URLs have parts: the protocol (https://), the domain name (www.example.com), and the path (/about.html) that identifies the specific page on that server.
What Is a Website?
A website is a collection of related webpages linked together under a single domain name. Think of it like a book — the website is the entire book, and each webpage is a page within it. A website typically has a homepage (the main page you see first) and multiple other pages linked from it — about pages, contact pages, product pages, blog posts, and so on.
For example, a university website might have hundreds or thousands of pages: a homepage, department pages, faculty profiles, course catalogs, admission pages, and student resources. They are all part of one website because they share the same domain name and are linked together in a logical structure.
The Three Languages of the Web
Every webpage you see is built with three fundamental technologies working together.
HTML (HyperText Markup Language) provides the structure and content. It defines what is on the page — headings, paragraphs, images, links, tables, forms, and other elements. HTML is like the skeleton of a webpage, giving it structure and holding all the content.
CSS (Cascading Style Sheets) provides the visual presentation. It controls how the HTML elements look — colors, fonts, spacing, layout, backgrounds, and responsive design (how the page adapts to different screen sizes). CSS is like the clothing and makeup — it makes the skeleton look good.
JavaScript provides interactivity and dynamic behavior. It makes pages respond to user actions — dropdown menus, image sliders, form validation, animated effects, and loading new content without refreshing the page. JavaScript is like the personality — it makes the page come alive and respond to you.
Together, these three technologies create every website you have ever visited. Even the most complex web applications (like Gmail or Google Maps) are built on this same foundation, just with much more sophisticated JavaScript.
How Web Hosting Works
When you create a website, the files need to live somewhere that is accessible to everyone on the internet. That "somewhere" is a web server — a computer that is always on, always connected to the internet, and configured to serve web files to anyone who requests them.
Web hosting is the service of providing server space for websites. Hosting companies operate large data centers full of servers and rent space to website owners. When someone types your website address, their browser contacts the hosting server, which sends back the requested webpage files.
There are several types of hosting. Shared hosting means your website shares a server with many other websites — affordable but slower because resources are shared. VPS (Virtual Private Server) hosting gives you a dedicated portion of a server with guaranteed resources. Dedicated hosting gives you an entire physical server for your website alone — the most expensive but best performance. Cloud hosting spreads your website across multiple servers — highly reliable and scalable.
Static vs Dynamic Websites
Static websites contain fixed content that looks the same for every visitor. Each page is a pre-written HTML file stored on the server. When you request a page, the server simply sends you that file. Static websites are simpler, faster, and more secure, but their content does not change without manually editing the files. Personal portfolios, company brochures, and documentation sites are often static.
Dynamic websites generate content on the fly, often pulling data from databases. When you visit Amazon and see product recommendations personalized for you, or when you log into Facebook and see a unique news feed, those pages are being assembled dynamically by server-side code based on who you are and what data is available. Dynamic websites are more complex but can provide personalized, interactive, and constantly updated content.
Domain Names and DNS
A domain name is the human-readable address of a website (like google.com or wikipedia.org). Since computers identify servers by IP addresses (numbers like 142.250.180.14), the Domain Name System (DNS) translates domain names to IP addresses — like a phone book for the internet.
You register domain names through domain registrars (companies like GoDaddy, Namecheap, or Google Domains). Domain names must be unique — no two websites can have the same domain. They are rented annually, not purchased permanently, so you pay a yearly fee to keep your domain.
Types of Websites
Informational websites provide information on a topic — Wikipedia, news sites, government portals. E-commerce websites sell products or services — Amazon, Flipkart, online stores. Social media websites enable user interaction and content sharing. Educational websites provide learning resources — Khan Academy, Coursera. Personal websites and blogs showcase individuals' work or thoughts. Web applications provide software functionality through the browser — Gmail, Google Docs, online banking.
Key Takeaways
- A webpage is a single HTML document; a website is a collection of related webpages under one domain
- HTML provides structure, CSS provides styling, and JavaScript provides interactivity
- Web hosting is the service of storing website files on servers accessible via the internet
- Static websites show fixed content; dynamic websites generate personalized content from databases
- Domain names are human-readable addresses translated to IP addresses by DNS
- Every website you visit relies on these same fundamental technologies and principles
- Understanding how websites work helps you evaluate their trustworthiness and make informed decisions
- These concepts are foundational if you pursue web development as a career path
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Websites and Webpages.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Computer Fundamentals topic.
Search Terms
computer-fundamentals, computer fundamentals, computer, fundamentals, internet, and, web, websites
Related Computer Fundamentals Topics