HTTP (HyperText Transfer Protocol) is an application-layer protocol that browsers and servers use to exchange web pages, images and data. It works on a request–response principle: the client sends a request to a URL using a particular method, and the server returns a status and content.
Before sending a request, the browser looks up the server's IP address through DNS and then opens a connection to it. Every HTTP request contains a method, a path, headers and (not always) a body. The most common methods are GET for retrieving data and POST for sending it. The full chain from typing an address to rendering a page is covered in the article How a browser works.
Plain HTTP transmits data unencrypted, so the modern web uses HTTPS — the same HTTP, but inside a secure channel:
This way HTTP remains the foundation of the web, while TLS adds confidentiality and integrity to it.