[go: up one dir, main page]

0% found this document useful (0 votes)
56 views4 pages

Basic HTML Examination

Html basic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views4 pages

Basic HTML Examination

Html basic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DIVINE ESTHETICS VOCATIONAL AND BUSINESS

INSTITUTE
Business and Humanities Certificate Examinations

PROGRAMME

NATIONAL CERTIFICATE IN INFORMATION AND COMMUNICATION


TECHNOLOGY

PAPER NAME

BASIC HTML WEB PROGRAMMING

PAPER CODE

NCIT121

21/2 HOURS

INSTRUCTIONS TO CANDIDATES

1. This paper consists of two sections A and B.


2. Section A is compulsory and carries 20 marks.
3. Section B consists of four questions. Answer only three questions from this
section.
4. All questions carry equal marks.
5. All answers to each question should begin on a fresh page.
6. Do not write on this question paper.
7. All answers and rough work should be done in the official answer booklet.

1
SECTION A- (20 MARKS)

Answer all questions in this section.

Question one

(a) Define the term HTML. (02 marks)


(b) State the meaning of &nbsp in HTML. (02 marks)
(c) Write a line of HTML code that generates the output below. (02 marks)
This is beneficial at the moment.
(d) Give two parts of an HTML attribute. (02 marks)
(e) Write the output from the following line of HTML code. (02 marks)
“<p> my best friend’s name is <abbr title=”Nakibuke”> Nak</abbr>. </p>
(f) State the meaning of <tfoot> in HTML. (02 marks)
(g) Mention two levels of HTML headings. (02 marks)
(h) Give the output from the HTML line of code below. (02 marks)
<input type=”radio” name=”subject” value=”maths”> Maths
(i) Distinguish between GET and POST methods (04 marks)

SECTION B- (80 MARKS)

Answer only three questions from this section.

Question Two

(a) Define the term attribute. (02 marks)


(b) Outline two examples of HTML attributes. (02 marks)
(c) A student wants to insert an image “mybag.png” located in folder “pics”. You are
required to write down a line of HTML code that will;
i. Insert the above image on a webpage. (02 marks)
ii. Set the width and height of the above image to “150” and “100” respectively.
(02 marks)
iii. Set the image border to 3. (02 marks)
iv. Align the image to the left of the webpage. (02 marks)
(d) Write down an HTML code that will bold, italicize and underline the statement “The
semester is almost ending”. (08 marks)

Question Three.

(a) State the meaning of <br/> in HTML. (02 marks)

2
(b) Using a sample HTML code, differentiate between ordered lists and unordered lists.
(06 marks)
(c) Study the HTML code below and answer the following questions.
<html>
<head>
<Title> About the party<Title>
</head>
<body>
<p> Hello<br/>
You were very smart at the party. <br/>
Thanks <br/> Paul</p>
</html>
i. Identify the errors in the above code. (04 marks)
ii. Write down the output of the code in 3(b) after correcting the errors. (08 marks)

Question Four

(a) Distinguish between colspan and rowspan. (04 marks)


(b) State the meaning of the following tags. (06 marks)
i. <TH>
ii. <TD>
iii. <TR>
(c) Study the HTML code below and provide a corresponding output. (10 marks)
<! DOCTYPE html>
<Html>
<Head>
<Title> RESULTS TABLE </title>
</head>
<body>
<TABLE BORDER width=”750”>
<TR> <TD colspan=4 align =”center”> CLASS TIME TABLE</TD></TR>
<TR> <TD rowspan=”2” width=”25%” > DAY </TD> <TD colspan=”2”> TIME</TD>
<TD rowspan=”2” width=”25%”> SUBJECT</TD></TR>
<TR> <TD width=”25%”> MONDAY</TD> <TD width=”25%”> 8:00AM</TD> <TD
width =”25%”> ICT</TD></TR>
<TR> <TD width =”25%”> TUESDAY </TD> <TD width=”25%”>10:00AM </TD>
<TD width =”25%”> MATHS</TD> </TR>
<TR> <TD width=”25%”> WEDNESDAY</TD> <TD COLSPAN=2 width=”25%”>
FREE </TD></TD></TR>
</TABLE>
</body>

3
</html>

Question Five

(a) Define the term hyperlink. (02 marks)


(b) Distinguish between an image link and a text link. (04 marks)
(c) The manager of a company wants to create a link “click here to apply” so that when users
click on it, they are directed to the job application page located at
httt://www.jobapplication.com
i. Mention the name of the tag used to complete the above task. (02 marks)
ii. Using the tag in 5(c)(i), write an HTML code that will accomplish the task. (06
marks)
iii. Modify the above code in 5(c)(i), so that when you “click here to apply” is clicked
it opens in a new window (06 marks)

END

You might also like