10a A
10a A
10a A
Default (GPT-3.5)
User
10. a) (i) What do you understand by the term web developing? (2 marks)
(ii) What are the roles of HTML table and form on website? (2 marks)
b) Write HTML codes for a form with three elements: Name, Gender and a Submit Button.
Both genders should be radio buttons and one of them checked. The background of the form
c) Write html codes that will display the web page given below? (3marks)
Name Salary
ChatGPT
a) (i) Web development is the process of creating and maintaining websites or web applications. It
involves tasks like coding, designing, and managing the functionality and appearance of websites.
(ii) HTML tables are used to display tabular data on a website, and HTML forms are used to collect and
submit user input. Tables organize data in rows and columns, while forms allow users to input data and
submit it to a server for processing.
b) Here is an example of HTML code for a form with the requested elements:
html
Copy code
<!DOCTYPE html>
<html>
<head>
<style>
form {
background-color: pink;
</style>
</head>
<body>
<form>
<label for="name">Name:</label>
<label for="gender">Gender:</label>
<label for="male">Male</label>
<label for="female">Female</label><br><br>
</form>
</body>
</html>
c) To display the provided data in an HTML table, you can use the following HTML code:
html
Copy code
<!DOCTYPE html>
<html>
<head>
<style>
table {
border-collapse: collapse;
table, th, td {
</style>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Ally Hussein</td>
<td>600,000</td>
</tr>
<tr>
<td>Yosepha Hyera</td>
<td>700,000</td>
</tr>
</table>
</body>
</html>
This code will create a table with two columns: Name and Salary, and display the provided data in rows
within the table.
Send a message
ChatGPT