Coding Jss
Coding Jss
Jss Project
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"> <!-- Specifies the character encoding for the HTML
document -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Ensures proper rendering and touch zooming on mobile devices -->
<title>About Us</title> <!-- The title of the webpage -->
<style>
/* Styles for the body element */
body {
background-color: #e0f7fa; /* Light cyan background */
font-family: Arial, sans-serif; /* Font family for the text */
color: #333; /* Text color */
text-align: center; /* Center-align text */
padding: 20px; /* Padding around the body */
}
/* Styles for the container div */
.container {
background-color: #fff; /* White background for the container */
padding: 20px; /* Padding inside the container */
border-radius: 10px; /* Rounded corners */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow effect */
max-width: 400px; /* Maximum width of the container */
margin: auto; /* Center the container */
}
/* Styles for the profile image */
.profile-image {
width: 100px; /* Width of the image */
height: 100px; /* Height of the image */
border: 3px solid #ff69b4; /* Pink border around the image */
margin-bottom: 20px; /* Space below the image */
}
/* Styles for the heading */
h1 {
color: #00796b; /* Teal color for the heading */
margin-bottom: 10px; /* Space below the heading */
}
/* Styles for the paragraph text */
p{
font-size: 16px; /* Font size for the text */
color: #555; /* Softer color for the text */
}
/* Styles for the button */
button {
margin-top: 20px; /* Space above the button */
padding: 10px 20px; /* Padding inside the button */
font-size: 16px; /* Font size for the button text */
background-color: #ff69b4; /* Pink background color */
color: white; /* White text color */
border: none; /* No border */
border-radius: 5px; /* Rounded corners */
cursor: pointer; /* Pointer cursor on hover */
}
/* Styles for the button on hover */
button:hover {
background-color: #ff1493; /* Darker pink background on hover */
}
</style>
</head>
<body>
<!-- Container div for the content -->
<div class="container">
<!-- Profile image -->
<img src="profile_img.jpeg" alt="Profile Picture" class="profile-image">
<!-- Heading -->
<h1>About Us</h1>
<!-- Paragraphs with information -->
<p>We are Racheal, Suliyat, and Nifemi.</p>
<p>Students of GREAT ARISE AND SHINE COLLEGE.</p>
<p>Our class teacher is Mr. Charles.</p>
<!-- Button with an ID for JavaScript interaction -->
<button id="welcomeButton">Click Me!</button>
</div>
<script>
// JavaScript to handle button click event
document.getElementById('welcomeButton').addEventListener('click',
function() {
alert('Welcome to our About Us page!'); // Show an alert when the button
is clicked
});
</script>
</body>
</html>