Websites

1.5. Websites#

A website is a collection of related HTML pages that are connected to each other through hyperlinks. A simple website can be made up of just a few web pages that you create and save on your computer, and these pages are linked together to allow easy navigation between them.

When building a basic website, each web page is a separate HTML file. For example, you might have a file called index.html for the home page, another called about.html for an “About” page, and a contact.html file for a “Contact” page. By linking these files together, you create a website that allows a user to click around from one page to another.

1.5.1. Components of a Website#

To build a simple, static website, you need the following components:

  • Home Page: This is usually the main page of your website. It’s often named index.html and serves as the starting point for visitors. The home page contains links to other pages, images, text, and other content.

  • Other Pages: Additional pages are created as separate HTML files. For example, you might have an about.html page to introduce yourself or your topic, and a gallery.html page to showcase images.

  • Hyperlinks: Links allow users to navigate between the pages on your website. By using <a> tags, you can link pages together. For example:

<a href="about.html">About</a>
This link would direct the user to the about
.html page when clicked.

Note

The homepage is often named index.html because this was the name used by early web servers for the default page.