web_sites:contact_form_for_static_website
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
web_sites:contact_form_for_static_website [2020/07/15 09:30] – external edit 127.0.0.1 | web_sites:contact_form_for_static_website [2022/08/13 08:50] (current) – 46.235.68.18 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Web Sites - Contact form for static | + | I registered on the website |
- | + | ||
- | Static HTML and can’t execute languages like PHP or use a database. | + | |
- | + | ||
- | Static Features: | + | |
- | + | ||
- | * Basic HTML work | + | |
- | * No PHP | + | |
- | * No JavaScript | + | |
- | * No Database | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== A Simple Contact Form ===== | + | |
- | + | ||
- | + | ||
- | <code html> | + | |
- | <form action="// | + | |
- | <input type=" | + | |
- | <input type=" | + | |
- | <input type=" | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <WRAP info> | + | |
- | **NOTE: | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== Styling the form ===== | + | |
- | + | ||
- | <code html> | + | |
- | + | ||
- | + | ||
- | <form id="my-contact-form" | + | |
- | <input class=" | + | |
- | <input class=" | + | |
- | <input class=" | + | |
- | </ | + | |
- | < | + | |
- | #my-contact-form { | + | |
- | ... | + | |
- | } | + | |
- | .field { | + | |
- | ... | + | |
- | } | + | |
- | .button { | + | |
- | ... | + | |
- | } | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== Complete Form ===== | + | |
- | + | ||
- | <code html> | + | |
- | <form id=" | + | |
- | + | ||
- | <div class=" | + | |
- | <input type=" | + | |
- | + | ||
- | <div class=" | + | |
- | <input type=" | + | |
- | + | ||
- | <div class=" | + | |
- | <input type=" | + | |
- | + | ||
- | <div class=" | + | |
- | < | + | |
- | + | ||
- | <input type=" | + | |
- | <input type=" | + | |
- | <input type=" | + | |
- | + | ||
- | <div class=" | + | |
- | <input type=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | and stylesheet: | + | |
- | + | ||
- | <code css> | + | |
- | + | ||
- | + | ||
- | < | + | |
- | # | + | |
- | font-family: | + | |
- | font-size: 16px; | + | |
- | } | + | |
- | + | ||
- | .form-title { | + | |
- | margin-bottom: | + | |
- | color: #6B6B6B; | + | |
- | text-shadow: | + | |
- | } | + | |
- | + | ||
- | .form-field { | + | |
- | border: 1px solid #a39584; | + | |
- | background: #f3f3f3; | + | |
- | -webkit-border-radius: | + | |
- | -moz-border-radius: | + | |
- | border-radius: | + | |
- | color: #C4C4C4; | + | |
- | -webkit-box-shadow: | + | |
- | -moz-box-shadow: | + | |
- | box-shadow: rgba(255, | + | |
- | padding: 8px; | + | |
- | margin-bottom: | + | |
- | width: 250px; | + | |
- | } | + | |
- | .form-field: | + | |
- | background: #fff; | + | |
- | color: #725129; | + | |
- | } | + | |
- | + | ||
- | .form-message { | + | |
- | | + | |
- | } | + | |
- | + | ||
- | .buttons-container { | + | |
- | margin:8px 0; | + | |
- | text-align: | + | |
- | } | + | |
- | + | ||
- | .buttons { | + | |
- | -moz-box-shadow: | + | |
- | -webkit-box-shadow: | + | |
- | box-shadow: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | filter: | + | |
- | background-color:# | + | |
- | -moz-border-radius: | + | |
- | -webkit-border-radius: | + | |
- | border-radius: | + | |
- | border:1px solid #dcdcdc; | + | |
- | display: | + | |
- | cursor: | + | |
- | color:# | + | |
- | font-family: | + | |
- | font-size: | + | |
- | font-weight: | + | |
- | padding:6px 24px; | + | |
- | text-decoration: | + | |
- | text-shadow: | + | |
- | } | + | |
- | .buttons: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | background: | + | |
- | filter: | + | |
- | background-color:# | + | |
- | } | + | |
- | .buttons: | + | |
- | position: | + | |
- | top:1px; | + | |
- | } | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + |
web_sites/contact_form_for_static_website.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1