Professional Documents
Culture Documents
Instructions:
1. Please ensure that this examination question paper consists of THREE printed pages other than
this cover page before you start the examination.
6. Work that you consider incorrect should be crossed out with a single line but should not be erased
or rendered unreadable.
7. Use only black or blue pen for all work other than graphs and diagrams, which may be done in
pencil.
8. You are allowed to use a silent, non-programmable calculator for your work. All workings must
be shown.
QUESTION 1
a) Identify each of the following HTML5 items as either an element or an attribute:
i. width
ii. type
iii. br
iv. h3
[2 Marks]
b) Write an HTML5 code to accomplish the following:
i. Display header of a text with HTML5 heading element.
ii. Link to any website using hyperlink.
iii. Insert an image img.png using image element.
[6 Marks]
[TOTAL MARKS 8]
QUESTION 2
a) Discuss TWO (2) types of lists that can be used in HTML5.
[4 Marks]
b) List and briefly explain FOUR (4) types of HTML5 elements that usually used with table
element.
[4 Marks]
[TOTAL MARKS 8]
QUESTION 3
a) Write a fraction of an HTML 5 codes to produce a simple form. You may refer to the
form illustration in Figure A.Q3 below:
Name:
Submit Reset
Figure A.Q3
[8 Marks]
[TOTAL MARKS 8]
QUESTION 4
a) State the purpose of using CSS. Discuss TWO (2) techniques of using CSS.
[5 Marks]
b) Using link element, write an HTML5 codes to link a CSS document, styles.css
[3 Marks]
[TOTAL MARKS 8]
QUESTION 5
a) What CSS property sets text to color?
[1 Mark]
b) What property allows you to decide if an element is displayed as a block element, inline
element or not rendered at all?
[1 Mark]
c) Write a CSS rule that gives all h2 and h3 elements a padding of 0.7 ems, solid border
style and a margin of 0.7 ems.
[6 Marks]
[TOTAL MARKS 8]
Figure B.Q1
Write a program to display the HTML form as shown in Figure B.Q1.
[TOTAL MARKS 20]
QUESTION 2
ooo0ooo