{"id":122,"date":"2026-04-10T09:00:07","date_gmt":"2026-04-10T09:00:07","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=122"},"modified":"2026-04-27T16:10:38","modified_gmt":"2026-04-27T16:10:38","slug":"input-types-text-email-password","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/","title":{"rendered":"Input Types (text, email, password)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">HTML input types define what kind of data a user can enter in a form. Different input types help control and validate user input.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What are Input Types<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Input types are used inside the <code>&lt;input&gt;<\/code> tag to specify the type of information a user should enter, such as text, email, or password.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Text Input Type<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The text input type is used to take general text input like name or city.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Text Input<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;input type=&#8221;text&#8221; placeholder=&#8221;Enter your name&#8221;&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Email Input Type<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The email input type is used to take email addresses. It also checks if the format is valid.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Email Input<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;input type=&#8221;email&#8221; placeholder=&#8221;Enter your email&#8221;&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Password Input Type<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The password input type is used to take sensitive information like passwords. It hides the text while typing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Password Input<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;input type=&#8221;password&#8221; placeholder=&#8221;Enter your password&#8221;&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Difference Between Input Types<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Text input is used for normal text.<br>Email input is used for email addresses with validation.<br>Password input hides the characters for security.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Why Input Types are Important<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Input types improve user experience and help ensure that correct data is entered in forms.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HTML input types like text, email, and password help collect different types of user information in a structured and secure way.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/html\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">HTML Intermediate > Forms &#038; User Input > Input Types (text, email, password)<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777306216678\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":32,"template":"","class_list":["post-122","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Input Types (text, email, password) - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn HTML input types like text, email, and password. Improve forms with validation, security, and better user input.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Input Types (text, email, password) - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn HTML input types like text, email, and password. Improve forms with validation, security, and better user input.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T16:10:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/input-types-text-email-password\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/input-types-text-email-password\\\/\",\"name\":\"Input Types (text, email, password) - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T09:00:07+00:00\",\"dateModified\":\"2026-04-27T16:10:38+00:00\",\"description\":\"Learn HTML input types like text, email, and password. Improve forms with validation, security, and better user input.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/input-types-text-email-password\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/input-types-text-email-password\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/input-types-text-email-password\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Intermediate > Forms & User Input > Input Types (text, email, password)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\",\"name\":\"HTML learning mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/html\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Input Types (text, email, password) - HTML learning mastery","description":"Learn HTML input types like text, email, and password. Improve forms with validation, security, and better user input.","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:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/","og_locale":"en_US","og_type":"article","og_title":"Input Types (text, email, password) - HTML learning mastery","og_description":"Learn HTML input types like text, email, and password. Improve forms with validation, security, and better user input.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-27T16:10:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/","name":"Input Types (text, email, password) - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T09:00:07+00:00","dateModified":"2026-04-27T16:10:38+00:00","description":"Learn HTML input types like text, email, and password. Improve forms with validation, security, and better user input.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/input-types-text-email-password\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Intermediate > Forms & User Input > Input Types (text, email, password)"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/html\/#website","url":"https:\/\/gigz.pk\/html\/","name":"HTML learning mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/html\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/media?parent=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}