Web Technology Examination Questions
Web Technology Examination Questions
Web Technology Examination Questions
INSTRUCTION: This paper consists of seven (7) questions. You are required to attempt any five (5)
3. a) Write the HTML code to create an ordered list, an unordered list with three items each.
b) List six types of input elements used in HTML forms and provide a code example for each.
c) Write HTML code to create a table with three columns and four rows. Add a header row with
column names.
4. a) Write CSS code to change the color of a link when hovered or visited.
b) List six data types in JavaScript, providing an example for each.
c) Create a table with columns labeled SN , Name , and Score and add three rows of sample data.
6. a) Compare HTML and XHTML. Explain key differences and situations where XHTML may be
preferred.
b) List 6 distinct HTML elements and give an example each of their usages
c) The <div> element below have certain width and height which are unknown, using CSS
(inline, internal or external), style the <img> to take the exact same width and height of the <div>
element.
<div>
<img src = “study_img.jpg” alt = “Image”>
<div>
7. a) Using JavaScript if-else statement, write codes to check if the value of variable ‘a’ is greater than
the value of variable ‘b’. and if so, assign greatest to variable ‘’a_is’’, otherwise assign greatest to
variable “b_is”;
b) Write the HTML code to create a table with the following columns: ID, Product Name, Quantity,
Price, Total.
c) Link the CSS file to the html document below. What would be the effect on the html document
when successfully linked