{"id":30558,"date":"2017-06-19T23:01:56","date_gmt":"2017-06-19T15:01:56","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=30558"},"modified":"2022-10-09T21:36:17","modified_gmt":"2022-10-09T13:36:17","slug":"new-html-features","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/","title":{"rendered":"5 HTML Features You Might Not Know About"},"content":{"rendered":"<p>For a <strong>language so simple and easy to learn<\/strong>, HTML surely offers an <strong>unexpected amount of <a href=\"https:\/\/www.hongkiat.com\/blog\/meta-tag-hidden-features\/\">useful features<\/a><\/strong>, many of which most of us don\u2019t even know about. It\u2019s hard to keep up with times and you may think that all \u201cyou might not know\u201d articles must be about the most recent tags, HTML also has some <strong>quite helpful features that are already around for a while<\/strong>.<\/p>\n<p>From checking spelling to adding keyboard shortcuts, in this article, I\u2019ll show you <strong>five less-widely known HTML features<\/strong>.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/html-5-1-new-features\/\">10 New Features of HTML 5.1 & How to Use Them IRL<\/a>\n\t\t\t\t<\/p>\n<h2>1. Check spelling as you type<\/h2>\n<p>The <strong><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Global_attributes\/spellcheck\" target=\"_blank\" rel=\"noopener\"><code>spellcheck<\/code><\/a> attribute<\/strong> prompts browsers to check spellings while a user is typing an element. This attribute is global, meaning, <strong>you can add it to any HTML tag<\/strong>.<\/p>\n<p>However, it only works on elements that can <strong>take text input<\/strong>. Having it global is useful because it can be <strong>inherited by child elements<\/strong>. For instance, add it to a <strong><code>&lt;div&gt;<\/code> tag<\/strong> and all of its child elements that take text input will inherit this attribute.<\/p>\n<p>Spell checking works on <strong>all text <code>&lt;input&gt;<\/code> types<\/strong>: <code>text<\/code>, <code>search<\/code>, <code>url<\/code>, and <code>email<\/code>. It also works on <strong><code>&lt;textarea&gt;<\/code>, and editable elements<\/strong> (elements with <code>contenteditable<\/code> attribute).<\/p>\n<p>Its value can be an empty string, <code>true<\/code>, or <code>false<\/code>. The empty string and <code>true<\/code> will <strong>enable the spell checker<\/strong>.<\/p>\n<pre>\r\n&lt;input type=\"text\" spellcheck=\"true\"\r\nplaceholder=\"Type something here\"&gt;\r\n&lt;p contenteditable=\"true\" spellcheck=\"true\"&gt;\r\n  Type something here\r\n&lt;\/p&gt;\r\n<\/pre>\n<p>In the above code, <strong>both the <code>&lt;div&gt;<\/code> and <code>&lt;p&gt;<\/code> tags will check spellings<\/strong> when a user is typing into them.<\/p>\n<p>If the user has <strong>disabled spell checking<\/strong> in the browser settings the spelling won\u2019t be checked, <strong>even if <code>spellcheck<\/code> was added<\/strong>.<\/p>\n<h2>2.  Be safe from compromised CDN resources<\/h2>\n<p>It is pretty common to host resources, such as scripts and stylesheet files, through <abbr title=\"Content Delivery Network\">CDN<\/abbr>s. But, if the <strong>CDN gets compromised<\/strong>, so do those hosted files, and if any fetched resource is compromised on your website, so does your site!<\/p>\n<p>See what <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Subresource_Integrity\">Mozilla Developer Network<\/a> says about the problem:<\/p>\n<blockquote><p><q>\u2026 using CDNs also comes with a risk, in that if an attacker gains control of a CDN, the attacker can inject arbitrary malicious content into files on the CDN (or replace the files completely) and thus can also potentially attack all sites that fetch files from that CDN.<\/q><\/p><\/blockquote>\n<p>To prevent this, <strong><a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Subresource_Integrity\">Subresource Integrity (SRI)<\/a><\/strong> was introduced in <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/www.w3.org\/TR\/2014\/WD-SRI-20140318\/\">early 2014 by W3C<\/a>. This scheme <strong>compares the hash value<\/strong> (the result of applying a <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/www.wikiwand.com\/en\/Cryptographic_hash_function\">hash function<\/a> to an input) <strong>of a resource<\/strong> to validate it.<\/p>\n<p>Say, there\u2019s a JavaScript file at <code>https:\/\/example.com\/example.js<\/code>. First, you <strong>apply a hash function<\/strong> to that file, then <strong>add the produced hash value<\/strong> to the <strong><code>integrity<\/code> attribute<\/strong> of the <strong><code>&lt;script&gt;<\/code> tag<\/strong> that imports <code>example.js<\/code> to your website.<\/p>\n<pre>\r\n&lt;script src=\"https:\/\/example.com\/example.js\"\r\nintegrity=\"sha384-Li9vy3DqF8tnTXuiaAJuML3ky+er10rcgNR\/VqsVpcw+ThHmYcwiB1pbOxEbzJr7\"\r\ncrossorigin=\"anonymous\"&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>Now, whenever a web page of your site with the above code has to load <code>example.js<\/code>, the browser <strong>first applies the hash function<\/strong>, and loads and runs <code>example.js<\/code> only when its <strong>hash value matches the <code>integrity<\/code> value<\/strong>.<\/p>\n<p>If <strong><code>example.com<\/code> was compromised<\/strong> and <strong><code>example.js<\/code> was interfered<\/strong> with then the hash value of <code>example.js<\/code> won\u2019t match the <strong><code>integrity<\/code> value<\/strong>.<\/p>\n<p>Most common CDNs already provide <strong>SRI <code>integrity<\/code> values<\/strong>, but you can also generate one <a href=\"https:\/\/www.srihash.org\/\" target=\"_blank\" rel=\"nofollow noopener\">here<\/a>.<\/p>\n<h2>3. Override form targets in submit buttons<\/h2>\n<p>You\u2019re most likely familiar with the <strong><code>target<\/code> attribute<\/strong>, the one that decides <strong>where a hyperlinked resource opens<\/strong>, for instance on the same page or in a new tab. You might also know that the same <code>target<\/code> attribute used in the <code>&lt;form&gt;<\/code> tag decides <strong>where the response from the form submission is shown<\/strong>.<\/p>\n<p>In one of the early drafts of HTML5, <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/button#attr-formtarget\" target=\"_blank\" rel=\"nofollow noopener\"><code>formtarget<\/code><\/a> was defined along with four other form submission attributes: <strong><code>formaction<\/code>, <code>formenctype<\/code>, <code>formmethod<\/code><\/strong>, and <strong><code>formnovalidate<\/code><\/strong>.<\/p>\n<p>These attributes can be <strong>used with submit buttons<\/strong>, and they override their respective attributes in the <code>&lt;form&gt;<\/code> tag to which the buttons belong to.<\/p>\n<p>So, when a form is submitted using a button that has a <code>formtarget<\/code> attribute, the <strong>response is shown according to the <code>formtarget<\/code> value<\/strong>, instead of the <code>target<\/code> value of <code>&lt;form&gt;<\/code>.<\/p>\n<pre>\r\n&lt;form action=\"\/save\" target=\"_self\" &gt;\r\n  &lt;input type=\"submit\" name=\"save\"  \/&gt;\r\n  &lt;input type=\"submit\" name=\"print\" formaction=\"\/print\"\r\n  formtarget=\"_blank\" \/&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<p>In the above code, when the form is submitted using the second submit button (<code>print<\/code> ), the response will <strong>appear in a new browsing context<\/strong>, like in a new tab.<\/p>\n<h2>4. Hide elements semantically<\/h2>\n<p>When it comes to <strong>hiding elements<\/strong>, we all went through different phases of hiding elements: using <strong><code>opacity:0<\/code>, <code>visibility:hidden<\/code>, <code>height:0; width:0<\/code>, <code>display:none<\/code>, <code>text-indent:-999px<\/code><\/strong> in our CSS file.<\/p>\n<p>Each method has its purpose, none of them are redundant, and so isn\u2019t this one: the <strong><a href=\"https:\/\/developer.mozilla.org\/en\/docs\/Web\/HTML\/Global_attributes\/hidden\" target=\"_blank\" rel=\"nofollow noopener\"><code>hidden<\/code><\/a> HTML attribute<\/strong>. If an element has <code>hidden<\/code> specified on it, it\u2019ll be hidden.<\/p>\n<pre>\r\n&lt;div hidden&gt;...&lt;\/div&gt;\r\n<\/pre>\n<p>It works the <strong>same way as the <code>display:none;<\/code> CSS rule;<\/strong> the element with the <code>hidden<\/code> attribute <strong>doesn\u2019t get rendered<\/strong> on the page. Any script inside the element will be executed, and if it\u2019s a form control it\u2019ll be submitted along with <strong>other form controls during form submission<\/strong>.<\/p>\n<p>However, the benefit of <code>hidden<\/code> is that it\u2019s <strong>semantically appropriate<\/strong>, after all, HTML5 is <a href=\"https:\/\/www.hongkiat.com\/blog\/html-5-semantics\/\" target=\"_blank\" rel=\"noopener\">all about semantics<\/a> and <code>hidden<\/code> is part of the HTML5 entourage!<\/p>\n<p>Moreover, when an element is hidden, it\u2019s to be <strong>hidden in <i>all<\/i> platforms<\/strong>, not just in web browsers but in screenreaders, TV, projectors, etc.<\/p>\n<p>It\u2019s also <strong>not style-dependent<\/strong>, even if you strip away the author CSS from a page, the element will remain hidden. Whereas in the case of <code>display:none;<\/code> that won\u2019t happen. So, think of <code>hidden<\/code> as the <strong>ironclad version of <code>display:none;<\/code><\/strong>.<\/p>\n<h2>5. Add keyboard shortcuts<\/h2>\n<p>The <strong><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Global_attributes\/accesskey\" target=\"_blank\" rel=\"nofollow noopener\"><code>accesskey<\/code><\/a> global attribute<\/strong> was already defined in HTML4 and it <strong>creates a keyboard shortcut<\/strong> with which the user can operate an element on the page.<\/p>\n<p>The key combination for a shortcut will <strong>depend on two things<\/strong>:<\/p>\n<ol>\n<li>the <strong><code>accesskey<\/code> value<\/strong> that we give to an element<\/li>\n<li>the <strong>pre-assigned keys used by a browser<\/strong> for the same element<\/li>\n<\/ol>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/new-html-features\/acesskey-table.jpg\" alt=\"Accesskey table\" width=\"800\" height=\"293\"><figcaption><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Global_attributes\/accesskey\" target=\"_blank\" rel=\"nofollow noopener\">IMAGE: Mozilla Developer Network<\/a><\/figcaption><\/figure>\n<p>Take this example:<\/p>\n<pre>\r\n&lt;button accesskey=\"v\" onclick=\"alert('View Click')\"&gt;\r\n  View\r\n&lt;\/button&gt;\r\n<\/pre>\n<p>In Firefox, if you <strong>press the key combination <span class=\"key\">Alt<\/span> + <span class=\"key\">Shift<\/span> + <span class=\"key\">V<\/span> (or <span class=\"key\">Alt<\/span> + <span class=\"key\">Control<\/span> + <span class=\"key\">V<\/span><\/strong> in macOS) you\u2019ll get the alert \u201cView Clicked\u201d.<\/p>\n<p>Since the predefined browser keys vary with each browser and OS, it is recommended you <strong>let the users know of the key combinations<\/strong> used for the shortcuts.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/cool-useful-html-tags\/\">10 Cool Things HTML Tags Can Do<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>For a language so simple and easy to learn, HTML surely offers an unexpected amount of useful features, many of which most of us don\u2019t even know about. It\u2019s hard to keep up with times and you may think that all \u201cyou might not know\u201d articles must be about the most recent tags, HTML also&hellip;<\/p>\n","protected":false},"author":145,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392],"tags":[506,511],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>5 HTML Features You Might Not Know About - Hongkiat<\/title>\n<meta name=\"description\" content=\"For a language so simple and easy to learn, HTML surely offers an unexpected amount of useful features, many of which most of us don&#039;t even know about.\" \/>\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.hongkiat.com\/blog\/new-html-features\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"5 HTML Features You Might Not Know About\" \/>\n<meta property=\"og:description\" content=\"For a language so simple and easy to learn, HTML surely offers an unexpected amount of useful features, many of which most of us don&#039;t even know about.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/new-html-features\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-19T15:01:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-09T13:36:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/new-html-features\/acesskey-table.jpg\" \/>\n<meta name=\"author\" content=\"Preethi Ranjit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Preethi Ranjit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/\"},\"author\":{\"name\":\"Preethi Ranjit\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e981676afae36d1ff5feb75094950ab3\"},\"headline\":\"5 HTML Features You Might Not Know About\",\"datePublished\":\"2017-06-19T15:01:56+00:00\",\"dateModified\":\"2022-10-09T13:36:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/\"},\"wordCount\":929,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/new-html-features\\\/acesskey-table.jpg\",\"keywords\":[\"HTML\",\"Web Developers\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/\",\"name\":\"5 HTML Features You Might Not Know About - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/new-html-features\\\/acesskey-table.jpg\",\"datePublished\":\"2017-06-19T15:01:56+00:00\",\"dateModified\":\"2022-10-09T13:36:17+00:00\",\"description\":\"For a language so simple and easy to learn, HTML surely offers an unexpected amount of useful features, many of which most of us don't even know about.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/new-html-features\\\/acesskey-table.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/new-html-features\\\/acesskey-table.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/new-html-features\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"5 HTML Features You Might Not Know About\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e981676afae36d1ff5feb75094950ab3\",\"name\":\"Preethi Ranjit\",\"description\":\"A .NET developer with a JavaScript background, Preethi is expert in front-end coding, JavaScript, HTML, and CSS.\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/preethi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"5 HTML Features You Might Not Know About - Hongkiat","description":"For a language so simple and easy to learn, HTML surely offers an unexpected amount of useful features, many of which most of us don't even know about.","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.hongkiat.com\/blog\/new-html-features\/","og_locale":"en_US","og_type":"article","og_title":"5 HTML Features You Might Not Know About","og_description":"For a language so simple and easy to learn, HTML surely offers an unexpected amount of useful features, many of which most of us don't even know about.","og_url":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-06-19T15:01:56+00:00","article_modified_time":"2022-10-09T13:36:17+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/new-html-features\/acesskey-table.jpg","type":"","width":"","height":""}],"author":"Preethi Ranjit","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Preethi Ranjit","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/"},"author":{"name":"Preethi Ranjit","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e981676afae36d1ff5feb75094950ab3"},"headline":"5 HTML Features You Might Not Know About","datePublished":"2017-06-19T15:01:56+00:00","dateModified":"2022-10-09T13:36:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/"},"wordCount":929,"commentCount":2,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/new-html-features\/acesskey-table.jpg","keywords":["HTML","Web Developers"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/new-html-features\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/","url":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/","name":"5 HTML Features You Might Not Know About - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/new-html-features\/acesskey-table.jpg","datePublished":"2017-06-19T15:01:56+00:00","dateModified":"2022-10-09T13:36:17+00:00","description":"For a language so simple and easy to learn, HTML surely offers an unexpected amount of useful features, many of which most of us don't even know about.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/new-html-features\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/new-html-features\/acesskey-table.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/new-html-features\/acesskey-table.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/new-html-features\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"5 HTML Features You Might Not Know About"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e981676afae36d1ff5feb75094950ab3","name":"Preethi Ranjit","description":"A .NET developer with a JavaScript background, Preethi is expert in front-end coding, JavaScript, HTML, and CSS.","url":"https:\/\/www.hongkiat.com\/blog\/author\/preethi\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7WS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/30558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/145"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=30558"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/30558\/revisions"}],"predecessor-version":[{"id":62599,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/30558\/revisions\/62599"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=30558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=30558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=30558"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=30558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}