Showing posts with label html code. Show all posts
Showing posts with label html code. Show all posts

Self-Test Questions about HTML Code List

Test how much you have learned about HTML Code List with these questions. If you don’t know an answer, go back and reread the relevant section until your knowledge is complete. You can find the answers in this page. 

1.   What does the acronym HTML stand for? 
2.   What is the difference between a web browser and a web server? 
3.   What does the acronym HTTP stand for? 
4.   What does a web proxy do? 
5.   What file extension is often used by HTML documents? 
6.   What is a 404 page more commonly known as? 
7.   What is the difference between an IP address and a domain name? 
8.   What is a query string? 
9.   What is an HTML tag? 
10.   What is a tag attribute?

HTML Tags

HTML documents are simply text files in which extra tags have been added within angle brackets, like this: <head>. So, for example, the tag <i> tells the web browser that all following text should be displayed using an italic font. And when a </i> is encountered, the preceding slash (/) character tells the browser to disable the italics. Therefore you frequently find HTML tags in pairs. For example, in the following line of HTML the word fox will appear in bold face, and dog in italics: 

The <b>fox</b> jumps over the <i>dog</i>. 

The result looks like this: The fox jumps over the dog.

The Difference Between Get and Post Requests

When requesting a document, it is possible for the web client (or browser) to request additional information or send information to the web server using either Get or Post requests. In a Get request, data is appended to the tail of a URL in the form of a query string, like this:

http://google.com/search?q=html5

This URL directly sends the search lookup string of html5 to the Google web servers by passing it as a string value in the argument q. When Google sees this request, it knows to return to you all the pages it thinks are relevant to the request. A longer such request might look like the following, in which the + symbol is used in place of spaces:

http://google.com/search?q=html5+course

Here the search string html5 course is passed to Google. In a Post request, however, the additional information is passed from the client to the server in the headers, which is neater as far as the user goes, because it does not appear as part of the URL. Both get and post requests are discussed in detail later in this book.

The Difference Between Get and Post Requests

What Is HTML?

HTML stands for HyperText Markup Language, and it was invented by Sir Timothy Berners-Lee in the early 1990s to solve the problem of quickly and efficiently distributing documents between scientists around the world who were working with experimenters at CERN (the European Laboratory for Particle Physics, where the Large Hadron Collider is now also situated).

The Internet was already in place and there were tens of thousands of computers connected to each other using it, but there was no easy means of publishing content for all to see, and in which references to other documents could be easily followed. So Berners-Lee created a hyperlinking framework he called the Hyper Text Transfer Protocol, or HTTP (the same set of letters at the front of a web address). He also created a language to use this protocol, which he called HTML (for Hyper Text Markup Language).