content logo

Bootstrap Forms:

Bootstrap Input Field

On many websites, people need to add their email addresses to access their needed information. So, if you have a website, it is better to consider this factor in your page. If you are looking for a code with the same purpose, look at this post carefully and use this bootstrap to have a functional website. In this post, we have prepared a code with the name Bootstrap Input Field with a simple design. This Free Bootstrap Input Text allows you to add a feature to your website to send an email to your audiences. You can use this Email Submission Code on your website and ask your visitors to fill it out.

We have provided the preview of this Bootstrap Email Form here. As you see from this preview, the following code has a white background. So, you can use the HTML Email Form on your page if you have a simple and pure website. There is a light sentence about contacting others at the top of the page and you can see a field in the middle of the page. This field has a gray background. As you see in this Newsletter Email Form, there is a blue button on the right side of the section for submission.

 

#

Free Bootstrap Input Text

#

Email Submission Code

#

Bootstrap Email Form

#

HTML Email Form

#

Newsletter Email Form

<!-- This script got from frontendfreecode.com -->
<div class="content d-flex justify-content-center pt-5">
    <!--  input  -->
    <div class="primary-input">
        <p class="text-300 mb-2 ps-4 ps-xl-6 contact-question">Want us to contact you?</p>
        <div class="mb-3 ps-4 ps-xl-6">
            <label for="" class="contact-input">
                <input type="text" placeholder="Email">
                <button type="button" class="btn">
                    <span>Submit</span>
                </button>
            </label>
        </div>
    </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
.primary-input {
	max-width: 350px;
}
.contact-question {
	color: #a8a8a8;
	font-size: clamp( 10px, calc(0.625rem + ((1vw - 5.76px) * 0.641)), 14px) !important;
}
input, ::placeholder, select, textarea {
	color: #a8a8a8 !important;
}
.contact-input {
	display: flex;
}
.contact-input input {
	flex: 1;
	padding: 0.8em 0em 0.8em 1em;
	background-color: #f2f2f2;
	box-shadow: none;
	border-radius: 12px 0 0 12px;
	border: none;
	font-size: clamp(14px, calc(0.875rem + ((1vw - 5.76px) * 0.641)), 18px);
}
.contact-input button {
	display: flex;
	align-items: center;
	padding: 0 0.22em 0 0;
	background-color: #f2f2f2;
	border-radius: 0 12px 12px 0;
	border: none;
	cursor: pointer;
}
.contact-input button span {
	padding: 0.55em 1.5em;
	color: #fff;
	background-color: #009dff;
	border-radius: 12px;
	font-size: clamp(14px, calc(0.875rem + ((1vw - 5.76px) * 0.641)), 18px);
}
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css'>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css'>
<style>
.primary-input {
	max-width: 350px;
}
.contact-question {
	color: #a8a8a8;
	font-size: clamp( 10px, calc(0.625rem + ((1vw - 5.76px) * 0.641)), 14px) !important;
}
input, ::placeholder, select, textarea {
	color: #a8a8a8 !important;
}
.contact-input {
	display: flex;
}
.contact-input input {
	flex: 1;
	padding: 0.8em 0em 0.8em 1em;
	background-color: #f2f2f2;
	box-shadow: none;
	border-radius: 12px 0 0 12px;
	border: none;
	font-size: clamp(14px, calc(0.875rem + ((1vw - 5.76px) * 0.641)), 18px);
}
.contact-input button {
	display: flex;
	align-items: center;
	padding: 0 0.22em 0 0;
	background-color: #f2f2f2;
	border-radius: 0 12px 12px 0;
	border: none;
	cursor: pointer;
}
.contact-input button span {
	padding: 0.55em 1.5em;
	color: #fff;
	background-color: #009dff;
	border-radius: 12px;
	font-size: clamp(14px, calc(0.875rem + ((1vw - 5.76px) * 0.641)), 18px);
}
</style>

</head>
<body>
<div class="content d-flex justify-content-center pt-5">
    <!--  input  -->
    <div class="primary-input">
        <p class="text-300 mb-2 ps-4 ps-xl-6 contact-question">Want us to contact you?</p>
        <div class="mb-3 ps-4 ps-xl-6">
            <label for="" class="contact-input">
                <input type="text" placeholder="Email">
                <button type="button" class="btn">
                    <span>Submit</span>
                </button>
            </label>
        </div>
    </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview