Practical 13 - CSU953 - CSE 2026 - Shoolini University

Create animation effect by using CSS

navigation bar: This tag is used to start making a form

label: This tag is used to define a label for form element

input: This tag is used to get input data from the form

button: This tag is used to create a button which can be click to perform some action

select: This tag is used to create a drop-down selectable list

textarea: This tag is used to create a bigger text input field to take input from users

fieldset: This tag is used to group simillar type of fields

legend: This tag is used to caption the fieldset element

datalist: It is used to specify pre-defined list options for input control

output: This tag is used to display the output of the performed operation

option: This tag is used to define options in the dropdown list.

Following is the hierarchy required for the tags:

Code

                    
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Practical 13</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.2/css/bootstrap.min.css">
        <style>
            body {
                margin: 0;
                height: 100vh;
                display: grid;
                place-items: center;
                background-color: #e3e5e4;
            }

            img {
                max-width: 100%;
                height: auto;
            }

            h1 {

                position: absolute;
                color: red;
                font-size: 100px;
                padding: auto;
                text-align: center;
                margin-left: -270px;
                margin-top: -100px;
            }

            h2 {

                position: absolute;
                color: red;
                font-size: 100px;
                padding: auto;
                text-align: center;
                margin-left: -270px;
                margin-bottom: -100px;
            }

            .fade {
                animation: fade 2s infinite;
            }

            @keyframes fade {
                0% {
                    opacity: 0;
                }

                50% {
                    opacity: 1;
                }

                100% {
                    opacity: 0;
                }
            }
        </style>
    </head>

    <body>

        <img
            src="https://img.freepik.com/free-photo/doctor-mask-gloves-protective-suit-pointing-left-looking_176474-3604.jpg?w=826&t=st=1671957911~exp=1671958511~hmac=d91fd034906a5f13b7f6d20c2446124f9c88933ef972b27332364e3897668fed">
        <h1 class="fade">WEAR</h1>
        <h2 class="fade">MASK</h2>
    </body>
</html>
                    
                

Output

Practical 13

WEAR

MASK