Skip to main content

How to create a simple stylish HTML contact message form for Blogger

How to create a simple stylish HTML contact message form for Blogger with category and gender


In this post you learn to add a simple contact form as a blogger post or a new page with HTML and CSS codes with the advanced options you need below is a simple example of an HTML form that you can use in a Blogger article. This form includes text input fields, a textarea, a dropdown menu, radio buttons, and a submit button. You can customize it based on your specific requirements.

How to create a simple stylish HTML contact message form for Blogger with category and gender  In this post you learn to add a simple contact form as a blogger post or new page with HTML and CSS codes with the advanced options you need below is a simple example of an HTML form that you can use in a Blogger article. This form includes text input fields, a textarea, a dropdown menu, radio buttons, and a submit button. You can customize it based on your specific requirements.  How to create a simple stylish HTML contact message form for Blogger with category and gender     HTML;  <title>Your Form Title</title>  <form action="YOUR_FORM_PROCESSING_SCRIPT_URL" method="post">         <!-- Text Input -->         <label for="name">Name:</label>         <input type="text" id="name" name="name" required>          <!-- Email Input -->         <label for="email">Email:</label>         <input type="email" id="email" name="email" required>          <!-- Textarea -->         <label for="message">Message:</label>         <textarea id="message" name="message" rows="4" required></textarea>          <!-- Dropdown Menu -->         <label for="category">Category:</label>         <select id="category" name="category">             <option value="option1">Option 1</option>             <option value="option2">Option 2</option>             <option value="option3">Option 3</option>         </select>          <!-- Radio Buttons -->         <label>Gender:</label>         <label for="male"><input type="radio" id="male" name="gender" value="male"> Male</label>         <label for="female"><input type="radio" id="female" name="gender" value="female"> Female</label>          <!-- Submit Button -->         <input type="submit" value="Submit">     </form>  CSS;  <style>         /* Add your custom styles here */         body {             font-family: Arial, sans-serif;         }         form {             max-width: 500px;             margin: 0 auto;         }         label {             display: block;             margin-bottom: 8px;         }         input,         textarea,         select {             width: 100%;             padding: 8px;             margin-bottom: 16px;             box-sizing: border-box;         }         input[type="submit"] {             background-color: #4caf50;             color: white;             cursor: pointer;         }     </style>      OUTPUT; Name:   Email:   Message:   Category:  Option 1  Gender:  Male  Female Submit CSS;


Note:

Make sure to replace "YOUR_FORM_PROCESSING_SCRIPT_URL" with the actual URL where you want to handle form submissions. This could be a server-side script that processes the form data. Additionally, feel free to modify the styles and form elements based on your design preferences and requirements.

HTML

<title>Your Form Title</title>
 <form action="YOUR_FORM_PROCESSING_SCRIPT_URL" method="post">
        <!-- Text Input -->
        <label for="name">Name:</label>
        <input type="text" id="name" name="name" required>

        <!-- Email Input -->
        <label for="email">Email:</label>
        <input type="email" id="email" name="email" required>

        <!-- Textarea -->
        <label for="message">Message:</label>
        <textarea id="message" name="message" rows="4" required></textarea>

        <!-- Dropdown Menu -->
        <label for="category">Category:</label>
        <select id="category" name="category">
            <option value="option1">Option 1</option>
            <option value="option2">Option 2</option>
            <option value="option3">Option 3</option>
        </select>

        <!-- Radio Buttons -->
        <label>Gender:</label>
        <label for="male"><input type="radio" id="male" name="gender" value="male"> Male</label>
        <label for="female"><input type="radio" id="female" name="gender" value="female"> Female</label>

        <!-- Submit Button -->
        <input type="submit" value="Submit">
    </form>

CSS;

<style>
        /* Add your custom styles here */
        body {
            font-family: Arial, sans-serif;
        }
        form {
            max-width: 500px;
            margin: 0 auto;
        }
        label {
            display: block;
            margin-bottom: 8px;
        }
        input,
        textarea,
        select {
            width: 100%;
            padding: 8px;
            margin-bottom: 16px;
            box-sizing: border-box;
        }
        input[type="submit"] {
            background-color: #4caf50;
            color: white;
            cursor: pointer;
        }
    </style>


 

OUTPUT

CSS;

Comments

Popular posts from this blog

Simple free calorie calculator BMR TDEE basal metabolic rate counter

Simple free calorie calculator BMR TDEE basal metabolic rate counter Have you ever wondered how many calories your body burns just by existing? That's where your Basal Metabolic Rate (BMR) comes in – the foundation for understanding your daily energy needs. But calculating BMR can feel like a scientific equation. Here's where BMR calculator tools come to the rescue! Simple free calorie calculator BMR TDEE basal metabolic rate counter What is a BMR Calculator Tool? An online BMR calculator is a user-friendly tool that estimates your Basal Metabolic Rate based on factors like age, weight, height, and gender. Simply input your information, click calculate, and voila! You'll have a personalized BMR estimate. Why is BMR Important? BMR is a crucial metric for anyone looking to manage their weight. It represents the minimum number of calories your body burns at rest to maintain vital functions. Knowing your BMR helps you: Set realistic weight loss/gain goals: By understanding you...

How to add a responsive code box in the blogger post clipboard copy button

How to add a stylish responsive code box in blogger post clipboard copy button In this post of Blogger coding tips , you learn how to create a code box for a blogger blogspot post clipboard that prevents visitors from copying code by using HTML, CSS, and JavaScript.  How to add a responsive code box in the blogger post clipboard copy button 1. Create HTML of blogger code box: Open the HTML view for your Blogger post and create the structure for your code box. Include a <pre> tag for the code and a button for copying. <div class="code-box">     <pre class="code">         <!-- Your code goes here -->     </pre>     <button class="copy-button" onclick="copyCode()">Copy Code</button> </div> 2. Code box Style with CSS: Add some styles to make your code box responsive and visually appealing. You can place the following styles in your post's CSS section or use inline styles within the HTM...

How to add Redirect 404 Not Found Page to the Home Page in Blogger

How to add automotive redirect 404 Not Found Page to the Home Page with  Blogger setting for broken links by javascript code Whenever someone goes on a web page that is either deleted or has no existence Blogger website usually displays its common 404 not found error message for broken links with simple Javascript code. “Sorry for the inconvenience, the page you are looking for has no existence”. The first impression counts more than anything. A person would never desire to display not-found error pages to his new visitors. Therefore, it is essential to redirect all 404 not found pages to the home page URL so users can easily get access to the content that is waiting for them.  So we learn how to use this simple JavaScript code which does the job pretty nicely.  How to add Redirect 404 Not Found Page to the Home Page in Blogger first, you must learn two main about redirect page messages 404 Pages: The 404 not found error message of Blogspot.com is a form of standard H...