HTML and CSS Projects | Projects on HTML and CSS | HTML and CSS Projects with Source Code and Output

CALENDAR

SOURCE CODE

<!DOCTYPE html>

<html>

<head>

    <title>Calendar</title>

    <style>

        body {

            font-family: Arial, sans-serif;

            background-color: #f2f2f2;

            margin:70px;  

        }

        .calendar {

            width: 700px;

            margin: auto;

            background-color: white;

             color:black;

            padding: 25px;

            border-radius: 15px;

box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

        }

        .year {

            text-align: center;

            color: gray;

            margin-bottom: 25px;

        }

        .month {

            font-size: 28px;

            text-align: center;

            margin-bottom: 5px;

        }

        table {

            width: 100%;

            border-collapse: collapse;

        }

        th {

            background-color: #333;

            color: white;

            padding: 15px;

        }

        td {

            text-align: center;

            padding: 20px;

            border: 1px solid #ddd;

            font-size: 18px;

        }

        td:hover {

            background-color: #f0f0f0;

            cursor: pointer;

        }

        .sunday {

            color: red;

        }

    </style>

</head>

<body>

    <div class=”calendar”>

<div class=”month”>September 2026</div>

        <div class=”year”>Calendar</div>

        <table>

            <thead>

                <tr>

                    <th>Sun</th>

                    <th>Mon</th>

                    <th>Tue</th>

                    <th>Wed</th>

                    <th>Thu</th>

                    <th>Fri</th>

                    <th>Sat</th>

                </tr>

            </thead>

            <tbody>

                <tr>

                    <td class=”sunday”></td>

                    <td></td>

                    <td>1</td>

                    <td>2</td>

                    <td>3</td>

                    <td>4</td>

                    <td>5</td>

                </tr>

                <tr>

                    <td class=”sunday”>6</td>

                    <td>7</td>

                    <td>8</td>

                    <td>9</td>

                    <td>10</td>

                    <td>11</td>

                    <td>12</td>

                </tr>

                <tr>

                    <td class=”sunday”>13</td>

                    <td>14</td>

                    <td>15</td>

                    <td>16</td>

                    <td>17</td>

                    <td>18</td>

                    <td>19</td>

                </tr>

                <tr>

                    <td class=”sunday”>20</td>

                    <td>21</td>

                    <td>22</td>

                    <td>23</td>

                    <td>24</td>

                    <td>25</td>

                    <td>26</td>

                </tr>

                <tr>

                    <td class=”sunday”>27</td>

                    <td>28</td>

                    <td>29</td>

                    <td>30</td>

                    <td></td>

                    <td></td>

                    <td></td>

                </tr>

            </tbody>

        </table>

    </div>

</body>

</html>

OUTPUT

Photo Gallery

SOURCE CODE

<!DOCTYPE html>

<html>

<head>

    <title>My Photo Gallery</title>

    <style>

        /* — Reset & Base Styles — */

        * {    

        box-sizing: border-box;

        }

        body {

            margin: 0;

            font-family: Arial, sans-serif;

            background-color: #f2f2f2;

        }

        /* Header */

        header {

            background-color: #333;

            color: white;

            text-align: center;

            padding: 30px;

        }

        header h1 {

            margin: 0;

            font-size: 35px;

        }

        header p {

            font-size: 18px;

        }

        /* Gallery */

        .gallery {

            width: 90%;

            margin: 30px auto;

            display: grid;

grid-template-columns: repeat(3, 1fr);

            gap: 20px;

        }

        /* Photo Card */

        .photo {

            background-color: white;

            padding: 10px;

            border-radius: 10px;

box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

            text-align: center;

        }

        .photo img {

            width: 100%;

            height: 220px;

            object-fit: cover;

            border-radius: 8px;

        }

        .photo h3 {

            margin: 12px 0 5px;

        }

        .photo p {

            color: #666;

        }

        /* Hover Effect */

        .photo:hover {

            transform: scale(1.03);

            transition: 0.3s;

        }

        /* Footer */

        footer {

            background-color: #333;

            color: white;

            text-align: center;

            padding: 20px;

            margin-top: 30px;

        }

        /* Responsive Design */

        @media (max-width: 700px) {

            .gallery {

                grid-template-columns: 1fr;

            }

        }

    </style>

</head>

<body>

<!– Header –>

<header>

        <h1>My Photo Gallery</h1>

        <p>Beautiful Memories</p>

</header>

 <!– Photo Gallery –>

<div class=”gallery”>

<div class=”photo”>

<img src=”D:\Pictures\images (1).jpeg” alt=”Nature”>

<h3>Beautiful Nature</h3>

<p>Peaceful view of nature</p>

</div>

<div class=”photo”>

<img src=”D:\Pictures\images (4).jpeg” alt=”Mountain”>

<h3>Mountain View</h3>

<p>A beautiful mountain landscape</p>

</div>

<div class=”photo”>

<img src=”D:\Pictures\images (6).jpg” alt=”Beach”>

<h3>Beautiful Beach</h3>

<p>Relaxing time near the sea</p>

</div>

<div class=”photo”>

<img src=”D:\Pictures\images (2).jpeg” alt=”Sunset”>

<h3>Sunset</h3>

<p>A beautiful evening sunset</p>

</div>

<div class=”photo”>

<img src=”D:\Pictures\img.jpg” alt=”Flowers”>

            <h3>Beautiful Flowers</h3>

<p>Colorful flowers in the garden</p>

</div>

<div class=”photo”>

<img src=”D:\Pictures\Hyderabad.jpg” alt=”Travel”>

<h3>Travel Memories</h3>

<p>Wonderful moments from travelling</p>

        </div>

</div>

<!– Footer –>

<footer>

<p>&copy; 2026 My Photo Gallery</p>

</footer>

</body>

</html>

OUTPUT

SCHOOL WEBPAGE

SOURCE CODE

<!DOCTYPE html>

<html>

<head>

   <title>Brook Field English School</title>

    <style>

        body {

            margin: 0;

            font-family: Arial, sans-serif;

            background-color: #ecc2dc;

        }

        /* Header */

        header {

            background-color: #1a365d;

            color: white;

            text-align: center;

            padding: 25px;

        }

        header h1 {

            margin: 0;

            font-size: 32px;

        }

        header p {

            margin-top: 5px;

            font-style: italic;

            color: #cbd5e0;

        }

        /* Navigation */

        nav {

            background-color: #2b6cb0;

            text-align: center;        

        }

        nav a {

            display: inline-block;

            color: white;

            text-decoration: none;

            font-weight: bold;

            margin: 0 20px;

             padding: 15px;           

        }

        nav a:hover {

            background-color: #2c5282;

        }

/* Sections */

        section {

            padding: 40px 20px;

            max-width: 1000px;

            margin: auto;

        }

        /* Welcome Section */

        .welcome {

            text-align: center;

            padding: 50px 20px;

            background-color: #dcecff;

            border-radius: 8px;

            box-shadow: 0 2px 5px rgba(0,0,0,0.1);

        }

        .welcome h2 {

            color: #1e4d8f;

            font-size: 32px;

        }

        .welcome p {

            font-size: 18px;

        }

        /* About Section */

        section {

            padding: 40px 20px;

            text-align: center;

        }

        .about {

            background-color: lightseagreen;

            border-radius: 8px;

            text-align: center;

        }

       .about p{

        text-align: Justify;

            line-height: 20px;

       }

        /* Facilities */

        .facilities-grid {

            display: flex;

            justify-content: center;

            gap: 20px;

            flex-wrap: wrap;

        }

        .facility {

            background-color: white;

            width: 200px;

            padding: 20px;

            box-shadow: 0 3px 8px #ccc;

            border-radius: 8px;

        }

        .facility h3 {

            color: #1e4d8f;

            margin-bottom: 10px;

        }

        /* Contact */

        .contact {

            background-color: #dcecff;

            border-radius: 8px;

            text-align: center;

        }

        /* Footer */

        footer {

            background-color: #1a365d;

            color: white;

            text-align: center;

            font-size: 14px;

            padding: 20px;

        }

    </style>

</head>

<body>

    <!– Header –>

    <header>

        <h1>🏫 Brook Field English School</h1>

        <p>Knowledge • Discipline • Success</p>

        <p>Learn Today, Lead Tomorrow</p>

    </header>

    <!– Navigation –>

    <nav>

        <a href=”#home”>Home</a>

        <a href=”#about”>About Us</a>

        <a href=”#facilities”>Facilities</a>

        <a href=”#contact”>Contact</a>

    </nav>

    <!– Home Section –>

    <section  id=”home” class=”welcome”>

        <h2>Welcome to Brook Field English School</h2>

        <p>Education is the key to success.</p>

        <p>We help students learn, grow and achieve their dreams. </p>

    </section>

    <!– About Section –>

    <section  id=”about” class=”about”>

        <h2>About Our School</h2>

 <p>Founded in 1990,  Brook Field EnglishSchool is committed to academic excellence and personality development. We offer a safe, encouraging environment where students thrive through active learning and sports programs.Brook Field English School is an institution committed to providing quality education in a safe and friendly environment. We provides holistic education, strong values, and state-of-the-art facilities to nurture tomorrow’s leaders. Our school focuses on academic excellence, creativity and overall development of students. We focus our mission to provide students with knowledge, skill and valuesthat help them become responsible citizens. Our vision is to create a positive learning environment where every student can discover their talents and achieve their dreams. Our school provides quality education and encourages students to achieve their goals. We help students to develop knowledge, skills and confidence. </p>

 </section>

        <!– Facilities Section –>

    <section id=”facilities”>

        <h2>Our Facilities</h2>

        <div class=”facilities-grid”>

        <div class=”facility”>

      <h3>📚 Library</h3>

 <p>A large collection of books for students to improve knowledge and reading skills.Over 5,000 books, journals, and digital reading materials.</p>

</div>

            <div class=”facility”>

                <h3>💻 Computer Lab</h3>

                <p>Modern computers for practical and digital learning. High-speed internet access with modern computing systems. </p>

            </div>

            <div class=”facility”>

                <h3>🔬 Science Lab</h3>

 <p> Learn science through practical experiments. Well-equipped Physics, Chemistry, and Biology laboratories for experiments.  </p>

            </div>

            <div class=”facility”>

                <h3>⚽ Playground</h3>

                <p> Sports and games for a healthy lifestyle. Spacious playground for sports and activities. Grounds for football, basketball court, and indoor games. </p>

            </div>

        </div>

    </section>

    <!– Contact Section –>

    <section class=”contact” id=”contact”>

        <h2>Contact Us</h2>

        <p>📍 Address: Sapekhati, Charaideo, Assam</p>

        <p>📞 Phone: +91 88795 43219</p>

        <p>📧 Email:bfes@gmail.com</p>

    </section>

    <!– Footer –>

    <footer>

        <p>

            &copy; 2026 Brook Field English School. All Rights Reserved.

        </p>

    </footer>

</body>

</html>

OUTPUT

Leave a Comment