Web Designing
Exp no 8:
Aim : Design an HTML page with a table titled "HOBBIES" showing Roll No,
Name, and Hobbies. Include three rows with different hobby lists (ordered and
unordered). Style the page with a peach background, borders, and centered title.
Also deploy the page on local web server.
Requirements
1. PC with latest configuration and web browser
2. WAMP or XAMPP
3. Text editor
Procedure
1. Create a simple Web Page
2. Save the file with .html extension in the root folder
3. Deploy and Access the Web Page
Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hobbies</title>
<style>
body {
background-color: #fff2e6;
font-family: 'Georgia', serif;
text-align: center;
}
h1 {
margin-top: 30px;
}
table {
margin: 20px auto;
border:1px solid black;
width: 60%;
background-color: #fff2e6;
}
th, td {
border: 2px solid #8b5e3c;
padding: 15px;
vertical-align: top;
text-align: left;
}
th {
background-color: #fff2e6;
font-weight: bold;
}
ul, ol {
margin: 0;
padding-left: 20px;
}
</style>
</head>
<body>
<h1>HOBBIES</h1>
<table border="1">
<tr>
<th>Roll No</th>
<th>Name</th>
<th>Hobbies</th>
</tr>
<tr>
<td>17</td>
<td>Ram</td>
<td>
<ul>
<li>Reading</li>
<li>Writing</li>
<li>Coding</li>
</ul>
</td>
</tr>
<tr>
<td>33</td>
<td>Riya</td>
<td>
<ol>
<li>Singing</li>
<li>Dancing</li>
<li>Football</li>
</ol>
</td>
</tr>
<tr>
<td>58</td>
<td>Rahul</td>
<td>
<ul style="list-style-type: circle;">
<li>Singing</li>
<li>Dancing</li>
</ul>
</td>
</tr>
</table>
</body>
</html>
Conclusion
Created the web page and deployed on local web server.