All Tech related news and information

Breaking

4/16/2021

Difference between HTML and HTTP ?

HTMLHTMLhtHTTP
1) HTML stands for Hyper Text Markup Language.
It is a well-known markup language used for web page development.
It is commonly used in webpage design
1) HTTP stands for Hypertext Transfer Protocol.
It is a great means of data communication for the World Wide Web.
It is an application protocol for distributed, collaborative, hypermedia information systems.
2) HTML is written using HTML elements, which consist of tags,
primarily and opening tag and a closing tag. The data between these
tags is usually the content.
2) HTTP is the protocol to exchange or transfer hypertext.
Hypertext is a multi-linear set of objects that are used to build
a network by using hyperlinks between the nodes, such as text or words.

HTML (Hypertext Markup Language) is a language for marking the normal text so that it gets converted into hypertext. Again, not so clear. Basically, HTML tags (e.g. “<head>”, “<body>” etc.) are used to tag or mark normal text so that it becomes hypertext and several hypertext pages can be interlinked with each other resulting in the Web. Please note that the HTML tags are used to help render web pages as well in the Browser. On the contrary, HTTP (Hypertext Transfer Protocol) is a protocol for transferring the hypertext pages from Web Server to Web Browser. For exchanging web pages between Server and Browser, an HTTP session is setup using protocol methods (e.g. GET, POST etc.). This would be explained in another post.

 To understand this difference between HTML and HTTP, we can think of an analogy. Think of HTML as C language and HTTP as FTP. Now one can write C programs in C language and then one can transfer these C programs from Server to Clients using FTP (i.e. File transfer protocol). Same way, web pages (which are mostly HTML pages) are written in HTML and these web pages are exchanged between Server and Clients using HTTP. Since HTML is a language and HTTP is a protocol, they are two different things though related. In fact, it’s possible to exchange HTML web pages without HTTP (e.g. using FTP to transfer HTML pages). Even, it’s possible to transfer non HTML pages using HTTP (e.g. using HTTP to transfer XML pages). More details on XML in some other post. We hope that the above clarifies the difference between HTML and HTTP.


No comments:

Post a Comment

Adbox