Student Mark List
Student Mark List
Name : R.Ganesh
Roll no. : 22SBCA028
Class : III B.Com, (C.A) ‘A’
Title : Student Mark List -
HTML,CSS,JS
Subject : Fundamentals of Internet
and Web Technologies
Subject code : CCAJC63
Date : 22-01-2025
FUNDAMENTALS OF INTERNET & WEB TECHNOLOGIES
Student Mark List
Coding:
<h2>Mark List</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Roll Number</th>
<th>Marks</th>
<th>Result</th>
</tr>
</thead>
<tbody id="markList">
<!-- Student rows will be inserted here -->
</tbody>
</table>
</div>
<script src="student script.js"></script>
</body>
</html>
.container {
width: 500px;
margin: 0 auto;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
background-color: #f9f9f9;
}
h1, h2 {
text-align: center;
}
form label {
display: block;
margin-top: 10px;
font-weight: bold;
}
input {
width: 100%;
padding: 8px;
margin: 5px 0 15px;
border: 1px solid #ddd;
border-radius: 4px;
}
button {
width: 100%;
padding: 10px;
background: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background: #45a049;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
.result-pass {
color: green;
}
.result-fail {
color: red;
}
JavaScript:
//Calendar Script
function addStudent() {
const name = document.getElementById('name').value.trim();
const roll = document.getElementById('roll').value.trim();
const marks = document.getElementById('marks').value.trim();
const row = `
<tr>
<td>${name}</td>
<td>${roll}</td>
<td>${marksInt}</td>
<td class="${resultClass}">${result}</td>
</tr>
`;
document.getElementById('markList').insertAdjacentHTML('beforeend', row);
clearInputs();
}
function clearInputs() {
document.getElementById('name').value = '';
document.getElementById('roll').value = '';
document.getElementById('marks').value = '';
}
Output: