Use The Tag Inside The Head Element To Link To The External Css File The SRC Attribute Tells The Browser Where To Find The Image
Use The Tag Inside The Head Element To Link To The External Css File The SRC Attribute Tells The Browser Where To Find The Image
What does CSS do?CSS is a standard style sheet language used for describing the
presentation (i.e. the layout and formatting) of the web pages. 2Mks
ii. <body>Body tag defines the doicuments body which contains all the contents of a html
document
iv. <section> The <section> element is a structural HTML element used to group together
related elements.
4mks
3. How do you link to an external CSS 2Mks
Use the <link> tag inside the head element to link to the external css file
4. What does src attribute do? The src attribute tells the browser where to find the
image.
Sheila IT 20000 B
Jamila CS 60000 C
5Mks
7. Name 3 tags are used for creating definition lists? 2MksThe tags <dl>,<dd> and <dt> are
used to define description lists.
8. Write the code that generated the form below:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form</title>
</head>
<style>
body {
background-color: orange;
}
label {
font-weight: bold;
}
</style>
<body>
<h1>Student Registration Form</h1>
<p>Fill in this form to register</p>
<form>
<fieldset>
<label for="firstName">First Name:</label><input type="text" id="firstName"
placeholder="Enter your first name"> <br> <br>
<label for="lastName">Last Name</label> <input type="text"
placeholder="Enter your last name"> <br> <br>
<label for="email">E-mail</label> <input type="email" placeholder="Enter e-
mail address"> <br> <br>
<label for="dateofbirth">Date of Birth</label> <input type="date"> <br>
<br>
<label for="username">Set Username</label> <input type="text"
placeholder="Enter username"> <br> <br>
<label for="password">Set Password</label> <input type="password"
placeholder="Enter password"> <br> <br>
<label for="Gender">Gender</label><br>
<input type="radio" name="sex">Male <br>
<input type="radio" name="sex">Female <br>
<input type="radio" name="sex">Others <br> <br>
<label>Course</label> :<select>
<option value="1">Course</option>
</select><br><br>
<button>Register</button>
</fieldset>
</form>
</body>
</html>
10Mks
Submission Instructions
The CAT should be submitted before the close of business on Tuesday 28 /January/2025. The submitted word
th
document file should be saved using your full names. Also, where you are to write the code, just have a screenshot
of the code or write the code on the word document.
You can submit the CAT either through the google platform or send the word document to this email address: