Professional Documents
Culture Documents
Bautista, James 02 Assignment 1
Bautista, James 02 Assignment 1
02 Assignment 1
Instructions:
1. Using the HTML form of 02 Laboratory Exercise 1, embed multimedia features using the provided video and audio.
2. For Prompt A, use Enrollment.mp4 and Thumbnail.png
3. For Prompt B, use Thanks.mp3
4. Observe the proper placement of the multimedia in the form.
5. Provide the HTML code and a screenshot of the form.
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
background-color: yellow;
}
video {
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: -1;
}
p{
padding: 0 auto;
margin-left: 20px;
font-family: Arial, Helvetica, sans-serif;
font-size: 30px;
text-shadow: 2px 2px 5px black;
font-weight: bold;
color: yellow
}
form {
margin-top: 53%;
background-image: url('Thumbnail.PNG');
background-position: right center;
background-repeat: no-repeat;
background-color: rgba(255, 255, 255, 0.8);
padding: 30px;
border-radius: 40px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
width: 100%;
margin: 0 auto;
padding: 0 auto;
display: block;
border: none;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
color: black;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
button{
display: inline-block;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
color: #ffffff;
background-color: blue;
border: none;
border-radius: 5px;
box-shadow: 2px 2px 5px black;
cursor: pointer;
text-align: center;
text-decoration: none;
transition: background-color 0.3s ease
}
input[type="number"] {
width: 5%;
padding: 10px;
border: 2px solid black;
border-radius: 10px;
box-sizing: border-box;
box-shadow: 2px 2px 5px black;
}
</style>
</head>
<body>
</video>
<audio id="sound1" src="Thanks.mp3" preload="auto"> </audio> <!-- Once to click submit it has a sound effect-->
<br>
<br>
<button id="btn" onclick="audio.play();"> Submit </button>
<button type="reset"> Reset </button>
</form>
<script>
const audio = new Audio();
audio.src = "Thanks.mp3";
document.getElementById("enrollmentForm").addEventListener("submit", function(event) {
event.preventDefault();
alert(message);
});
</script>
</body>
</html>
GRADING RUBRIC:
Performance Standards Points
The student was able to properly embed multimedia in their form. 5
The student applied the correct syntax for their multimedia. 5
Total 10
Reference:
STI College (2022). Be future-ready. Be STI. [Video]. Youtube. Retrieved on February 3, 2022, from https://www.youtube.com/watch?v=RkDor0ZVGbU