COMP249 Web Technology
Tutorial - Week 5
Answer the following questions and hand in your answers via WebCT before 9am Tuesday 25th March.
- List the different kinds of input element available in HTML forms and briefly describe what they are useful for.
- What does your web browser do after you type in the URL http://www.comp.mq.edu.au/units/comp249/. Describe the sequence of actions it must go through to be able to show you the page. Describe the architecture with some components and more details in your answer.
- When a server returns a reponse to the web browser the first line of the response contains a status code. The most common of these are '200 OK' and '404 Not Found'. Find out what the following codes mean: 401, 402, 301, 307, 201, 500. As well as giving the common names associated with these codes try to describe briefly when the code might occur.
- Define a form in an HTML document. Within the form, define some input elements including a submit button. Use GET and POST methods respectively in the form and observe what appears in the browser's URL field when the submit button is clicked.
Additional topics for discussion in the tutorial (not for handing in):
- The HTML anchor tag <a> is commonly given an href attribute to indicate the page being linked to but it can take a number of other attributes. Find out what the following attributes are used for: name, target, rel, accesskey, type.
- Find an example of a device with a builtin web server. What is the web server used for? What kind of devices might benefit from having an embedded server?