Can I use just HTML and CSS to make a contact form? -


so creating contact form , realized not sure how connect submit button send set email. html , css enough or need database, storage, or different language? if 1 easiest learn , do? here code if need it.

     body {            background: #292a2b;            font-family: arial;          }                    .contact-title {            margin: auto;            width: 30%;            border: 1.5px solid #0054a9;            padding: 5px 0px;            border-radius: 8px 8px 0px 0px;            background: #0054a9;          }                    .contact-title h2 {            text-align: center;            color: #ede;            letter-spacing: 2px;          }                    .name-contact {            margin: auto;            width: 30%;            padding: 15px 0px 10px 0px;            background: #fff;          }                    .message-contact {            margin: auto;            width: 30%;            padding: 15px 0px 10px 0px;            background: #fff;          }                    .box-size {            margin-left: 5%;            width: 90%;            height: 40px;            font-size: 18px;            border: 0px;            border: 1px solid #d0d0d0;          }                    .submit-size {            margin-left: 5%;            width: 90%;            height: 50px;            font-size: 18px;            border: 0px;          }          textarea {            font-family: inherit;            font-size: inherit;            height: 2px;          }                    .submit-contact {            margin: auto;            width: 30%;            padding: 15px 0px 55px 0px;            border-radius: 0px 0px 8px 8px;            background: #fff;          }                    h3 {            text-align: center;            border-radius: 8px;            padding: 10px 10px;            color: #fff;            background: #0054a9;            margin-left: 38%;            margin-right: 38%;            letter-spacing: 1px;            font-size: 15px;          }                    .sub-btn {            height: 40%;            width: 20%;          }
    <section class="contact">          <div class="contact-title">              <h2> contact </h2>          </div>          <div class="name-contact">              <label for="name"></label>              <input class="box-size" type="text" id="fname" name="firstname" placeholder="name" required>          </div>          <div class="name-contact">              <label for="email"></label>              <input class="box-size" type="text" id="femail" name="email" placeholder="email" required>          </div>          <div class="message-contact">              <label for="message"></label>              <textarea class="box-size" type="text" id="fmessage" name="message"  placeholder="message" required></textarea>          </div>          <div class="submit-contact submit-size">              <h3 class="sub-btn">submit</h3>          </div>      </section>

update: if wants html/css contact form, update version on codepen https://codepen.io/gabezacarias/full/kvwqrw/

you need server side language. server side language @ all.

which 1 choose matter of preference , trade off between web server supports , how effort add support want or change server.

write server side program read form data , send email. specify url program in action attribute of form element.


you third party service provide prewritten program , hosting it.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -