HTTP and HTML

HTTP is an abbreviation for HyperText Transfer Protocol, whereas HTML is HyperText Markup Language. HTTP is the protocol, whereas HTML is a document in a hypertext markup language. When an address is typed into a browser, the browser establishes a connection to the web service running on the server. The protocol for establishing a connection is HTTP.

HyperText Transfer Protocol (HTTP) is the primary protocol the World Wide Web uses. This protocol defines how messages are formatted and transmitted and what actions Web servers and browsers should take in response to various commands.

The URL(Uniform Resource Locator) and URI(Uniform Resource Identifier) are the names most people use with their web addresses. If we want to open a web address https://networkustad.com/home, we can examine how an address is opened in the browser.

  1. Protocol – HTTP
  2. Server Name – networkustad.com
  3. The specific filename that was requested is “home.”

As shown in the Figure, when entering the URL mentioned in the browser, the browser checks with a name server to convert fschub.com into a numeric IP address, which it uses to connect to the server. The browser then sends a GET request to the HTTP server and asks for the /home.html file. The server then sends the HTML code of this particular page to the browser.

In conclusion, the browser reads the HTML code, formats the page for the browser window and shows it to the user. HTML is the leading standard that controls how the World Wide Web works. It covers how the Web pages are formatted and displayed on the user screen.

html

HTTP is a request/response protocol. When a client sends a request to a web server, the protocol that specifies the message type is HTTP. Three common message types are GET, POST, and PUT.

GET – A host request for data, generally a webpage request

POST – Uploads data files to the webserver

PUT – Uploads resources or content such as images, videos, and audio to the webserver.

Hypertext transfer protocol is an extraordinarily powerful protocol, but it is not secure. HTTP sends request messages to the server in plain text that can be intercepted and read anywhere. The responded HTML pages are also unencrypted and unsecured pages.

The HTTPS protocol is used to secure communication across the internet, which is too secure from the Hypertext transfer protocol. This protocol uses authentication and encryption to ensure client and server data. It uses the same client request-server response process as HTTP, but the data travel between client and server is encrypted with SSL (Secure Socket Layer)