{"id":2888,"date":"2016-03-04T08:11:53","date_gmt":"2016-03-04T08:11:53","guid":{"rendered":"http:\/\/www.webhozz.com\/blog\/?p=2888"},"modified":"2019-06-14T13:55:45","modified_gmt":"2019-06-14T13:55:45","slug":"html-forms","status":"publish","type":"post","link":"https:\/\/www.webhozz.com\/blog\/html-forms\/","title":{"rendered":"HTML Forms"},"content":{"rendered":"<p>tag Form <\/p>\n<p>Bentuk HTML digunakan untuk mengumpulkan input pengguna.<br \/>\ntag form mendefinisikan bentuk HTML:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;form&gt;\r\n.\r\nform elements\r\n.\r\n&lt;\/form&gt;\r\n<\/pre>\n<p>Bentuk HTML mengandung Unsur Bentuk.<\/p>\n<p>Elemen bentuk BERBAGAI JENIS masukan elemen, checkbox, radio Tombol, Tombol mengirimkan, Dan Banyak Lagi.<\/p>\n<p>tag Input<\/p>\n<p>tag Input adalah elemen bentuk yang paling penting.<\/p>\n<p>Input memiliki banyak variasi, tergantung pada jenis atribut.<\/p>\n<p>Berikut adalah jenis-jenis yang digunakan dalam bab ini:<\/p>\n<p>jenis Keterangan<br \/>\nteks Mendefinisikan input teks biasa<br \/>\nradio Mendefinisikan masukan tombol radio (untuk memilih salah satu dari banyak pilihan)<br \/>\nmengirimkan Mendefinisikan sebuah tombol submit (untuk mengirimkan formulir)<\/p>\n<p>-Text Input<\/p>\n<p>input type = &#8220;text&#8221; mendefinisikan input satu baris untuk input teks:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;form&gt;\r\nFirst name:&lt;br&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;firstname&quot;&gt;\r\n&lt;br&gt;\r\nLast name:&lt;br&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;lastname&quot;&gt;\r\n&lt;\/form&gt; \r\n<\/pre>\n<p>Maka Hasil nya di browser seperti ini:<\/p>\n<p><a href=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png\"><img decoding=\"async\" src=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png\" alt=\"FORM-1\" width=\"202\" height=\"108\" class=\"alignnone size-full wp-image-2892\" \/><\/a><\/p>\n<p>Catatan: Bentuk itu sendiri tidak terlihat. Juga mencatat bahwa lebar default kolom teks adalah 20 karakter.<\/p>\n<p>-Radio Button Input<br \/>\ninput type=&#8221;radio&#8221; Tombol radio membiarkan pengguna memilih SATU dari sejumlah pilihan , mendefinisikan tombol radio.:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;form&gt;\r\n&lt;input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;male&quot; checked&gt;Male\r\n&lt;br&gt;\r\n&lt;input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;female&quot;&gt;Female\r\n&lt;\/form&gt; \r\n<\/pre>\n<p>Maka hasilnya akan seperti ini:<\/p>\n<p><a href=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-2.png\"><img decoding=\"async\" src=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-2.png\" alt=\"FORM-2\" width=\"106\" height=\"72\" class=\"alignnone size-full wp-image-2891\" \/><\/a><\/p>\n<p>-The Submit Button<\/p>\n<p>input type=&#8221;submit&#8221; mendefinisikan tombol untuk mengirimkan formulir ke bentuk-handler.<\/p>\n<p>Bentuk-handler biasanya halaman server dengan script untuk memproses input data.<\/p>\n<p>Bentuk-handler yang ditentukan dalam aksi atribut form:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n &lt;form action=&quot;action_page.php&quot;&gt;\r\nFirst name:&lt;br&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;firstname&quot; value=&quot;Mickey&quot;&gt;\r\n&lt;br&gt;\r\nLast name:&lt;br&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;lastname&quot; value=&quot;Mouse&quot;&gt;\r\n&lt;br&gt;&lt;br&gt;\r\n&lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;\r\n&lt;\/form&gt; \r\n<\/pre>\n<p>Maka hasilnya akan seperti ini:<br \/>\n<a href=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-31.png\"><img decoding=\"async\" src=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-31.png\" alt=\"FORM-3\" width=\"191\" height=\"103\" class=\"alignnone size-full wp-image-2890\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>tag Form Bentuk HTML digunakan untuk mengumpulkan input pengguna. tag form mendefinisikan bentuk HTML: &lt;form&gt; . form elements . &lt;\/form&gt; Bentuk HTML mengandung Unsur Bentuk.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[114,9],"class_list":["post-2888","post","type-post","status-publish","format-standard","hentry","category-belajar-web-design","tag-css","tag-belajar-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML Forms - WebHozz Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhozz.com\/blog\/html-forms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML Forms - WebHozz Blog\" \/>\n<meta property=\"og:description\" content=\"tag Form Bentuk HTML digunakan untuk mengumpulkan input pengguna. tag form mendefinisikan bentuk HTML: &lt;form&gt; . form elements . &lt;\/form&gt; Bentuk HTML mengandung Unsur Bentuk.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhozz.com\/blog\/html-forms\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHozz Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-04T08:11:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-14T13:55:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"202\" \/>\n\t<meta property=\"og:image:height\" content=\"108\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\"},\"headline\":\"HTML Forms\",\"datePublished\":\"2016-03-04T08:11:53+00:00\",\"dateModified\":\"2019-06-14T13:55:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/\"},\"wordCount\":351,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/FORM-1.png\",\"keywords\":[\"css\",\"HTML\"],\"articleSection\":[\"Belajar Web Design\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/\",\"name\":\"HTML Forms - WebHozz Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/FORM-1.png\",\"datePublished\":\"2016-03-04T08:11:53+00:00\",\"dateModified\":\"2019-06-14T13:55:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/FORM-1.png\",\"contentUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/FORM-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/html-forms\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Forms\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"name\":\"WebHozz Blog\",\"description\":\"Kursus Web &amp; Android di Jakarta Bandung\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\",\"name\":\"WebHozz\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"contentUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"width\":442,\"height\":442,\"caption\":\"WebHozz\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/author\\\/putralucio\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML Forms - WebHozz Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhozz.com\/blog\/html-forms\/","og_locale":"en_US","og_type":"article","og_title":"HTML Forms - WebHozz Blog","og_description":"tag Form Bentuk HTML digunakan untuk mengumpulkan input pengguna. tag form mendefinisikan bentuk HTML: &lt;form&gt; . form elements . &lt;\/form&gt; Bentuk HTML mengandung Unsur Bentuk.","og_url":"https:\/\/www.webhozz.com\/blog\/html-forms\/","og_site_name":"WebHozz Blog","article_published_time":"2016-03-04T08:11:53+00:00","article_modified_time":"2019-06-14T13:55:45+00:00","og_image":[{"width":202,"height":108,"url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/#article","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/"},"author":{"name":"admin","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea"},"headline":"HTML Forms","datePublished":"2016-03-04T08:11:53+00:00","dateModified":"2019-06-14T13:55:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/"},"wordCount":351,"publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png","keywords":["css","HTML"],"articleSection":["Belajar Web Design"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/","url":"https:\/\/www.webhozz.com\/blog\/html-forms\/","name":"HTML Forms - WebHozz Blog","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/#primaryimage"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png","datePublished":"2016-03-04T08:11:53+00:00","dateModified":"2019-06-14T13:55:45+00:00","breadcrumb":{"@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhozz.com\/blog\/html-forms\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/#primaryimage","url":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png","contentUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2016\/03\/FORM-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhozz.com\/blog\/html-forms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhozz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"HTML Forms"}]},{"@type":"WebSite","@id":"https:\/\/www.webhozz.com\/blog\/#website","url":"https:\/\/www.webhozz.com\/blog\/","name":"WebHozz Blog","description":"Kursus Web &amp; Android di Jakarta Bandung","publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhozz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhozz.com\/blog\/#organization","name":"WebHozz","url":"https:\/\/www.webhozz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","contentUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","width":442,"height":442,"caption":"WebHozz"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.webhozz.com\/blog\/author\/putralucio\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/2888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/comments?post=2888"}],"version-history":[{"count":1,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/2888\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/2888\/revisions\/2893"}],"wp:attachment":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/media?parent=2888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/categories?post=2888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/tags?post=2888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}