{"id":1176,"date":"2013-03-13T17:20:31","date_gmt":"2013-03-13T08:20:31","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=1176"},"modified":"2013-03-13T17:20:31","modified_gmt":"2013-03-13T08:20:31","slug":"how-to-create-own-custom-html-tag-in-html-2","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-create-own-custom-html-tag-in-html-2\/","title":{"rendered":"How to create own custom html tag in HTML"},"content":{"rendered":"<p><strong>Here is one of the way to\u00a0create own custom html tag in HTML<!--more--><\/strong><\/p>\n<h3><strong>STEP 1<\/strong><\/h3>\n<p>Normalize its attributes in your CSS Stylesheet (think css reset) &#8211; Example:<\/p>\n<pre> stack{display:block;margin:0;padding:0;border:0; ... }<\/pre>\n<p><strong>STEP 2<\/strong><\/p>\n<p>Make it work in old versions of Internet Explorer by appending this script to the head (Important!):<\/p>\n<pre><code>&lt;!--[if lt IE 9]&gt; \r\n &lt;script&gt; document.createElement(\"stack\"); &lt;\/script&gt;\r\n &lt;![endif]--&gt;\r\n<\/code><\/pre>\n<h3><strong>STEP 2<\/strong><\/h3>\n<p>Then you can use your custom tag freely.<\/p>\n<pre><code>&lt;stack&gt; Overflow &lt;\/stack&gt;<\/code><\/pre>\n<p>Feel free to set attributes as well&#8230;<\/p>\n<pre><code>&lt;stack id=\"st2\" class=\"nice\"&gt; hello &lt;\/stack&gt;<\/code>\r\n<code>\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is one of the way to\u00a0create own custom html tag in HTML<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,330,14],"tags":[539,538,537],"class_list":["post-1176","post","type-post","status-publish","format-standard","hentry","category-web-design","category-web-designer","category-web-development","tag-create-own-custom-html-tag","tag-custom-html-tag-in-html","tag-how-to-create-own-custom-html-tag-in-html"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=1176"}],"version-history":[{"count":1,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1176\/revisions"}],"predecessor-version":[{"id":1177,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1176\/revisions\/1177"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=1176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=1176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=1176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}