You are on page 1of 4

AIM:

To create a web page for displaying at least 7 student’s list in table with appropriate CSS.

ALGORITHM:

1. Begin by creating a new HTML file and add the basic HTML structure, including the `<!DOCTYPE>`
declaration, `<html>`, `<head>`, and `<body>` tags.

2. Inside the `<head>` tag, add a `<title>` tag and set the title of the web page to something
descriptive like "Student List".

3. Add a `<style>` tag inside the `<head>` section to define the CSS styles for the table. Use the
following CSS properties to make the table look good: `border-collapse`, `width`, `text-align`,
`padding`, `border-bottom`, `background-color`, `color`, and `nth-child`.

4. Inside the `<body>` tag, add a `<h1>` tag and write a title for the web page like "Student List".

5. Create a `<table>` tag and add a `<thead>` and a `<tbody>` tag inside it. The `<thead>` tag is used
to define the header row of the table, while the `<tbody>` tag is used to define the body of the table.

6. Inside the `<thead>` tag, create a `<tr>` tag and add `<th>` tags for the columns of the table, such
as "Name", "Age", and "Major".

7. Inside the `<tbody>` tag, create 7 `<tr>` tags and add `<td>` tags for each of the columns, such as
"Leo", "22", and “INFORMATION TECHNOLOGY". Repeat this step for each of the 7 students.

8. Save the HTML file and open it in a web browser to see the student list table with the appropriate
CSS.
RESULT
The above experiment was executed successfully.

You might also like