How websites work
To understand technical SEO, it's helpful to know how a website works. Knowing how a website works will help you understand issues that a search engine might run into when trying to understand your website and ways that you can help search engines process your website more effectively and efficiently.
What is a Website?
HTML — The structure and content of a page (titles, body content, etc.)
CSS — The appearance of a page (color, fonts, etc.)
How Does a Website Get on the Internet?
Each page is named with a URL (Uniform Resource Locator) and each URL is attached to a domain. Website domains don't exist in space — they must first be set up and given a home.
First, you need to give your website a domain name and register it with a registrar like GoDaddy or HostGator. These are just companies that manage the reservations of domain names. Then, your domain name must be linked with an IP address and stored on a domain name server (DNS). A DNS does two things:
- A DNS translates domain names — for example, Huckabuy.com — into IP addresses (Internet Protocol addresses) — for example, 226.204. In other words, we need a DNS service to translate human-readable words into machine-readable numbers.
- A DNS hosts the IP address. This line of numbers must be stored on a massive computer called a server. DNS providers are companies that have a bunch of servers for storing this information that will send that information to your computer via the World Wide Web (ie the internet).
Note: It's important to know the difference between a domain and a hosting service. You can buy a domain, but it doesn't really exist anywhere until you pay to have it hosted on a server.
How Users Interact with Websites
When you access a website, your computer is using a browser — think Safari, Firefox, or Chrome. When you know the exact web address (URL) for a web page you can type it into your browser or you can click a link to that URL.
When a user requests a domain using a browser, a series of events take place.
- The browser will request the domain from the server.
- The browser will then display that information to you in the form of a familiar webpage with recognizable elements like a title, paragraph, and hyperlinks.
When you don't know the exact address of a website, or you don't know which website you want to go to for information, you'll use a search engine by typing in a question or term related to whatever website or information you are looking for.
How search engines interact with websites
Search engines are designed to help humans find information on the web. One helpful analogy, introduced by Google Developer Advocate Martin Splitt, is to compare search engines to librarians and the internet to one massive library (or library catalog). A librarian must go through a collection of books, consider the content of the books, and then decide how those books relate to other books and how they should be labeled.
Similarly, search engines have to go through the vast collection of information on the internet and parse the code to organize it for users. They go through and parse this information by crawling and rendering it with search engine crawlers. Once the search engine has crawled and rendered a page, it can index it into its database. Once the page is in the index (or catalog), the search engine can match the content of a web page with a question (or terms) that a user types in.