In this tutorial, we will answer a perplexing question.
In order to communicate, they must share a common language. On the web, clients and servers must speak HTTP. On top of that the browser must know HTML.
They must share a common language in order to communicate. Clients and servers on the web must communicate using HTTP. Furthermore, the browser must be familiar with HTML.
In the line “Clients and servers on the web must communicate using HTTP,” we said web. The Internet is a global network of connected computers and servers, while the web (short for “World Wide Web”) is a collection of interconnected documents and other resources, linked by hyperlinks and URLs. The web is accessed via the Internet, but the two terms are not interchangeable. The Internet is the infrastructure and the web is one of the services built on top of it.
Now, let’s get back to HTTP and HTML.
HTML instructs the browser on how to display/present the content to the user.
HTTP is the web protocol that clients and servers use to communicate.
The server sends HTML to the client using HTTP.
Let’s first give you a general overview of “How it works” before getting into the specifics of HTTP and HTML.
For the time being, consider the web to be a road. On one end of the road, like your house, is the client. The server, which is a shop where you want to buy something, is at the other end of the road. When you enter a web address into your browser (as if you were walking to the store):
1. The browser connects to the DNS server to determine the true address of the server where the website is hosted (you find the address of the shop).
2. The browser sends an HTTP request message to the server, asking it to send the client a copy of the website (you go to the shop and order your goods). This message, as well as all other data exchanged between the client and the server. TCP/IP is used to send it across your internet connection.
3. If the server approves the client's request, it sends the client a message ". "200 OK" means "Of course you can look at that website! It's right here ", and then begins sending the website's files to the browser in the form of a series of small chunks known as data packets (the shop gives you your goods, and you bring them back to your house).
4. The browser assembles the small chunks into a complete web page for you to view (the goods arrive at your door).
HTML
When a server responds to a request, the server typically sends the browser some kind of content so the browser can display it. Servers often send the bowser a set of instructions written in HTML, the HyperText Markup Language. The HTML instructs the browser on how to show the user the content.
All web browsers know what to do with HTML, though occasionally an older browser may struggle to comprehend certain elements of a page that were created using a more recent version of HTML.
HTML (Hypertext Markup Language) is the standard language used for creating web pages. It is a markup language, which means that it is used to describe the structure and layout of a document, rather than its appearance.
HTML documents are made up of elements, which are represented by tags. These tags describe the different types of content on a web page, such as headings, paragraphs, images, and links. For example, the <h1> tag is used to create a level-1 heading, the <p> tag is used to create a paragraph, and the <img> tag is used to insert an image.
HTML also includes a set of attributes, which can be used to provide additional information about an element. For example, the src attribute is used to specify the source of an image, and the href attribute is used to specify the link destination of a hyperlink.
HTML documents are typically viewed in web browsers, which interpret the HTML code and display the content on the screen. They can be created using a simple text editor, and saved with the .html or .htm file extension.
When creating a web page, HTML is used to describe how the page should look and behave
HTML, as previously stated, has dozens of tags and hundreds of tag attributes. HTML’s goal is to take a text document and add tags that instruct the browser on how to format the text. Below are the tags we use in the next several tutorials. We recommend HTML Tutorial – W3Schools if you need a more in-depth understanding of HTML.
HTML is often used in conjunction with other languages, such as CSS (Cascading Style Sheets) and JavaScript, to create more complex and interactive web pages. CSS is used to control the presentation and layout of web pages, while JavaScript is used to add dynamic behavior and interactivity to web pages.
Assume you’re designing a login page. The basic HTML could look something like this:
At EnableGeek, we’re passionate about helping you achieve your goals and succeed in the world of technology.
Categories
Surma R/A, Akhalia, Sylhet-3100, Bangladesh
© 2024 EnableGeek | All Rights Reserved