CAT Term 2 - QA
CAT Term 2 - QA
Instructions
2
Question 2) Consider below code snippets, to calculate the
a) total width of an element (2.5 marks)
b) total height of an element (2.5 marks)
1 div {
2 width: 320px;
3 height: 50px;
4 padding: 10px;
5 border: 5px solid gray;
6 margin: 0
7 }
3
Question 4) When setting the style for several link states, there are some order rules. Below
are link states:
a normal, unvisited link
a link the user has visited
a link when the user mouses over it
a link the moment it is clicked
a) Clearly order the above state to comply with the best practice rules (2 marks)
b) Implement with clear source code to the style for several link states (3 marks)
Question 5) HTML tables or lists can be used to display particular data from various sources.
You are required to:
a) Write CSS code to let an HTML table spans the entire screen (2.5marks)
b) Apply CSS to create a zebra-stripped columns on the same table (2.5 marks)
4
5