HBT2302 APPLICATION PROGRAMMING FOR INTERNET
HBT2302 APPLICATION PROGRAMMING FOR INTERNET
MAIN CAMPUS
1
HBC2106
Question One
a) Outline the four characteristics of the client, and four characteristics of the server in the client/server
system architecture in the Internet. [8marks]
b) Describe six factors which should be considered when hosting a website on the Internet. [6 marks]
di) Describe any four tags which can be added to the <head> element on a HTML page. [4 marks]
ii) Explain each of the components found in the syntax while writing the following url
http://www.w3schools.com/html/default.asp [6 marks]
e) With examples, describe the four different ways of defining Style Sheets in web programming.
[4 marks]
Question Two
a) HTML supports JavaScript. Provide the correct syntax of the four different sections of HTML where
JavaScript code can be added. [8 marks]
c) Outline the four common lists which can be used when designing a HTML web page. [4 marks]
Question Three
a) Write a HTML section of a code which demonstrates how you can create nest tables within tables in
HTML. [8 marks]
b) Describe the steps of how one can link to a location in the middle of an HTML document.[ 6 marks]
ii) Explain the main use of the Document Object Model (DOM) used on web pages. [2 marks]
Question Four
a) Consider the code below and use it to answer the questions that follow.
ii) Write the expected output of the corrected code as displayed by the web browser.
[4 marks]
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
<li>Milk</li>
</ul>
b) Using a function in javascript, write a program of a dynamic HTML page which prompts the user to
enter a color name, then sets the background color to that value. [12 marks]