Contact us from html code...!

<html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Contact Us</title>

    <style>

        /* CSS styles can be added here */

        form {

            margin: 20px auto;

            width: 50%;

        }

        input[type="text"], textarea {

            width: 100%;

            padding: 10px;

            margin: 5px 0;

            border: 1px solid #ccc;

            border-radius: 5px;

        }

        input[type="submit"] {

            background-color: #4CAF50;

            color: white;

            padding: 10px 20px;

            border: none;

            border-radius: 5px;

            cursor: pointer;

        }

        input[type="submit"]:hover {

            background-color: #45a049;

        }

    </style>

</head>

<body>

    <header>

        <h1>Contact Us</h1>

    </header>


    <form action="#" method="post">

        <label for="name">Your Name:</label>

        <input type="text" id="name" name="name" required>


        <label for="email">Your Email:</label>

        <input type="email" id="email" name="email" required>


        <label for="message">Message:</label>

        <textarea id="message" name="message" rows="4" required></textarea>


        <input type="submit" value="Submit">

    </form>


    <footer>

        <p>&copy; 

2024 Your Website</p>

    </footer>

</body>

</html> 


Post a Comment

0 Comments