{"id":458,"date":"2020-11-11T17:16:24","date_gmt":"2020-11-11T23:16:24","guid":{"rendered":"https:\/\/wowfall2020.londietmartin.com\/?p=458"},"modified":"2020-11-18T12:51:55","modified_gmt":"2020-11-18T18:51:55","slug":"html-forms-more-than-just-surveys","status":"publish","type":"post","link":"https:\/\/wowfall2020.londietmartin.com\/?p=458","title":{"rendered":"HTML Forms More Than Just Surveys"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Forms are the building blocks for communicating back and forth between the users, creators, and interface of a website. Whether it be a login, comment section or calculator forms are used to collect information from the viewer to communicate and function on the web. <\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p><span style=\"color:#4c187d\" class=\"has-inline-color\">An&nbsp;<strong>HTML form<\/strong>&nbsp;is a section of a document containing normal content, markup, special elements called controls (checkboxes, radio buttons, menus, etc.), and labels on those controls.<\/span><\/p><cite>W3C.org<\/cite><\/blockquote><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/s3-us-west-2.amazonaws.com\/staticresources123\/site\/other\/landings\/php-contact-form\/contact-form.png?w=774&#038;ssl=1\" alt=\"\"\/><figcaption><a href=\"https:\/\/www.123formbuilder.com\/html-contact-form\/\" data-type=\"URL\" data-id=\"https:\/\/www.123formbuilder.com\/html-contact-form\/\" target=\"_blank\" rel=\"noreferrer noopener\">123 Form Builder<\/a><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Before we get too deep!<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&#8217;t understand what I mean when I say HTML tag or input fields, don&#8217;t be afraid to do a quick review before diving deeper. Within their HTML course,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.codecademy.com\/learn\/learn-html\/modules\/learn-html-forms\" target=\"_blank\">Codecademy<\/a>&nbsp;has an overview of HTML forms. HTML forms are one of the more complex functions of HTML so if you don&#8217;t know much about HTML I would not recommend starting here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the HTML &lt;form&gt; tag?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The HTML &lt;form&gt; tag is implemented to collect user input. The form section contains a large variety of <a rel=\"noreferrer noopener\" href=\"https:\/\/www.w3schools.com\/html\/html_form_input_types.asp\" data-type=\"URL\" data-id=\"https:\/\/www.w3schools.com\/html\/html_form_input_types.asp\" target=\"_blank\">input fields<\/a> all intended to collect information from the user and interact with the site. Inputs can range from text input to selection input to call to action buttons. A time selection input could be used to change what month is displayed on the users screen for a calendar. The most common form inputs are text inputs used for user logins or comments. What most people don&#8217;t realize is almost every website uses some type of form to operate. <\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p><span style=\"color:#4c187d\" class=\"has-inline-color\">The &lt;<strong>input<\/strong>&gt; tag specifies an&nbsp;<strong>input<\/strong>&nbsp;field where the user can enter data. The &lt;<strong>input<\/strong>&gt; element is the most important&nbsp;<strong>form<\/strong>&nbsp;element. The &lt;<strong>input<\/strong>&gt; element can be displayed in several ways, depending on the type attribute.<\/span><\/p><cite><a href=\"https:\/\/www.w3schools.com\/tags\/tag_input.asp#:~:text=Definition%20and%20Usage,depending%20on%20the%20type%20attribute.\" data-type=\"URL\" data-id=\"https:\/\/www.w3schools.com\/tags\/tag_input.asp#:~:text=Definition%20and%20Usage,depending%20on%20the%20type%20attribute.\" target=\"_blank\" rel=\"noreferrer noopener\">w3schools.com<\/a><\/cite><\/blockquote><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What else can it be used for?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Forms don&#8217;t just have to be used to collect information from the user. They can also be used to respond to a user. I created a <a rel=\"noreferrer noopener\" href=\"https:\/\/arkansasrebar.com\/pages\/unit-conversion\" data-type=\"URL\" data-id=\"https:\/\/arkansasrebar.com\/pages\/unit-conversion\" target=\"_blank\">unit conversion calculator<\/a> on the Arkansas Rebar website for work as an example. The calculator uses a combination of HTML and JavaScript in order to provide the user conversions based on their input. The calculator relies heavily on the HTML form function in order to communicate with the JavaScript.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What makes a bad form?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The key to a great form is ensuring it is easy to use and follows <a rel=\"noreferrer noopener\" href=\"https:\/\/www.accessibility-developer-guide.com\/knowledge\/semantics\/\" data-type=\"URL\" data-id=\"https:\/\/www.accessibility-developer-guide.com\/knowledge\/semantics\/\" target=\"_blank\">proper semantics.<\/a> Other keys for creating great HTML forms include how the for is styled and how the user interacts with a form.  A form should be clearly labeled for and provide detailed error messages for the user. If a user is creating a login and sees the plain message &#8220;Error&#8221; rather than &#8220;Username is already being used&#8221; they will not know what the problem is. Ensure that the form provides clear and detailed instructions for the user to follow. The style of a form can make or break it. If a form does not flow with the websites style it could take readability away from the site. How a from is presented to the user is a major factor in creating a successful form. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Visitors who don\u2019t trust you are likely to not contact you at all. This means they don\u2019t get their questions answered and probably they will go look for alternatives elsewhere.<\/p><cite>Sabina Idler &#8211; <a href=\"https:\/\/usabilla.com\/blog\/good-vs-bad-contact-pages\/\" data-type=\"URL\" data-id=\"https:\/\/usabilla.com\/blog\/good-vs-bad-contact-pages\/\" target=\"_blank\" rel=\"noreferrer noopener\">CX Insights<\/a><\/cite><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Learn more about HTML Forms<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you know the basic implementations of HTML Forms I encourage you to visit <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/form\" data-type=\"URL\" data-id=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/form\" target=\"_blank\" rel=\"noreferrer noopener\">MDN web docs<\/a> or watch the video below to learn more about HTML Forms and how they are used around the world wide web. <\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Learn HTML Forms In 25 Minutes\" width=\"774\" height=\"435\" src=\"https:\/\/www.youtube.com\/embed\/fNcJuPIZ2WE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Forms are the building blocks for communicating back and forth between the users, creators, and interface of a website. Whether it be a login, comment&hellip;<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=458"}],"version-history":[{"count":5,"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wowfall2020.londietmartin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}