{"id":22312,"date":"2018-10-30T07:00:56","date_gmt":"2018-10-30T07:00:56","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=22312\/"},"modified":"2022-08-13T12:01:14","modified_gmt":"2022-07-18T11:14:22","slug":"create-your-own-html-template-using-jquery","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/","title":{"rendered":"How to create your own HTML template using jQuery?"},"content":{"rendered":"<p>This article is all about creating HTML template using jQuery.<\/p>\n<h2>Let&#8217;s know about the jQuery<\/h2>\n<p>jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.<\/p>\n<h2>Let&#8217;s know about the jQuery Template<\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-3-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-816740\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-3-.png\" alt=\"learn about jquery template\" width=\"700\" height=\"287\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-3-.png 700w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-3--300x123.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>jQuery Template gives us an option or\u00a0support to display and manipulation of the content on the browser. By using the jQuery Templating we can render JSON string to the HTML elements. Let us consider a simple example, we can use jQuery Template to display some set of records that we have got from an Ajax&#8217;s request.<\/p>\n<h2>A basic example of jQuery templates<\/h2>\n<p>Now we create a simple page using jQuery templates. We will only use the jQuery plugin. In this example, we will show you how to create a template and render the content from the JSON.<\/p>\n<h2>Requirement<\/h2>\n<p>Let\u2019s us understand the requirement first.<\/p>\n<p>Suppose we have to create a webpage like KnowBand website to sell the modules for the e-commerce platform like Opencart, Prestashop etc. We have some e-commerce modules or plugin that we want to list on KnowBand\u00a0site. So, on the listing page, we will show the module&#8217;s name, image, and price.<\/p>\n<p>We will use the below JSON string to list the data:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">[\r\n\t{\r\n\t\t&quot;name&quot;: &quot;Product tabs- PrestashopAddons&quot;,\r\n\t\t&quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Product-Tabs-logo-1000-x-1000.jpg&quot;,\r\n\t\t&quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-product-tabs&quot;,\r\n\t\t&quot;price&quot;: &quot;$25&quot;\r\n\t},\r\n\t{\r\n\t\t&quot;name&quot;: &quot;Prestashop Mobile App builder&quot;,\r\n\t\t&quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Mobile-app-prestashop-plugin-500-X-500.jpg&quot;,\r\n\t\t&quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-mobile-app-builder&quot;,\r\n\t\t&quot;price&quot;: &quot;$30&quot;\r\n\t},\r\n\t{\r\n\t\t&quot;name&quot;: &quot;Return Manager - Magento Extensions&quot;,\r\n\t\t&quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/return-manager.png&quot;,\r\n\t\t&quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/magento-return-manager&quot;,\r\n\t\t&quot;price&quot;: &quot;$50&quot;\r\n\t},\r\n\t{\r\n\t\t&quot;name&quot;: &quot;Web Push Notification - PrestashopAddons&quot;,\r\n\t\t&quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Web-Push-Notification-plugin.jpg&quot;,\r\n\t\t&quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-web-push-notifications&quot;,\r\n\t\t&quot;price&quot;: &quot;$43&quot;\r\n\t}\r\n]<\/pre>\n<h2><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-2-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-816737\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-2-.png\" alt=\"We have two way to make a jQuery Template:\" width=\"760\" height=\"300\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-2-.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Jquery-2--300x118.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/h2>\n<ol>\n<li>\n<h3>By using the HTML Script Tag<\/h3>\n<p>In this method, we will write HTML code in the script tag. The complete code is given below:<\/li>\n<\/ol>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;html&gt;\r\n    &lt;head&gt;\r\n            &lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.7\/css\/bootstrap.min.css&amp;quot;&gt;\r\n            &lt;script src=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.2.1\/jquery.min.js&amp;quot;&amp;gt;&amp;lt;\/script&gt;\r\n        &lt;\/head&gt;\r\n        &lt;body&gt;\r\n            &lt;div class=&quot;container&quot;&gt;\r\n                &lt;script id=&quot;blog&quot; type=&quot;template&quot;&gt;\r\n                    &lt;div class=&quot;col-md-3&quot;&gt;\r\n                        &lt;a href=&quot;{{module_url}}&quot;&gt;\r\n                            &lt;div class=&quot;thumbnail&quot;&gt;\r\n                                &lt;imgsrc=&quot;{{image_url}}&quot; class=&quot;img-rounded img-responsive&quot; width=&quot;100%&quot;&gt;&lt;\/img&gt;\r\n                                &lt;div class=&quot;caption&quot;&gt;\r\n                                    &lt;p class=&quot;lead&quot;&gt;{{price}}&lt;\/p&gt;\r\n                                    &lt;p&gt;{{name}}&lt;\/p&gt;\r\n                                &lt;\/div&gt;\r\n                            &lt;\/div&gt;\r\n                        &lt;\/a&gt;\r\n                    &lt;\/div&gt;\r\n                &lt;\/script&gt;\r\n            &lt;\/div&gt;\r\n            &lt;script&gt;\r\n            $(function () {\r\n                varknoband_data = [\r\n                        {\r\n                            &quot;name&quot;: &quot;Product tabs- PrestashopAddons&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Product-Tabs-logo-1000-x-1000.jpg&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-product-tabs&quot;,\r\n                            &quot;price&quot;: &quot;$25&quot;\r\n                        },\r\n                        {\r\n                            &quot;name&quot;: &quot;Prestashop Mobile App builder&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Mobile-app-prestashop-plugin-500-X-500.jpg&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-mobile-app-builder&quot;,\r\n                            &quot;price&quot;: &quot;$30&quot;\r\n                        },\r\n                        {\r\n                            &quot;name&quot;: &quot;Return Manager - Magento Extensions&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/return-manager.png&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/magento-return-manager&quot;,\r\n                            &quot;price&quot;: &quot;$50&quot;\r\n                        },\r\n                        {\r\n                            &quot;name&quot;: &quot;Web Push Notification - PrestashopAddons&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Web-Push-Notification-plugin.jpg&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-web-push-notifications&quot;,\r\n                            &quot;price&quot;: &quot;$43&quot;\r\n                        }\r\n                    ];\r\n                var temp = $.trim($(&#039;#blog&#039;).html());\r\n                $.each(knoband_data, function (index, obj) {\r\n                    var x = temp.replace(\/{{name}}\/ig, obj.name);\r\n                    x = x.replace(\/{{image_url}}\/ig, obj.image_url);\r\n                    x = x.replace(\/{{price}}\/ig, obj.price);\r\n                    x = x.replace(\/{{module_url}}\/ig, obj.module_url);\r\n                    $(&#039;.container&#039;).append(x);\r\n                });\r\n            });\r\n        &lt;\/script&gt;\r\n        &lt;\/body&gt;\r\n    &lt;\/html&gt;<\/pre>\n<p>We have created\u00a0a thumbnail inside script tag i.e. #blog\u00a0script tag and it was used as a template. In the above code, we have used {{ }} for wildcard variables.<\/p>\n<p>Let&#8217;s understand actually what we have done in the above code:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">var temp = $.trim($(&#039;#blog&#039;).html()); \/\/ It wil load all content of the #blog script tag in a temp variable.\r\nvar x = temp.replace(\/{{name}}\/ig, obj.name);       \/\/ Replaced the wildcard variable {{name}} with corresponding data from the JSON.\r\nx = x.replace(\/{{image_url}}\/ig, obj.image_url);     \/\/ Replaced the wildcard variable {{image_url}} with corresponding data from the JSON.\r\nx = x.replace(\/{{price}}\/ig, obj.price);                    \/\/ Replaced the wildcard variable {{price}} with corresponding data from the JSON.\r\nx = x.replace(\/{{module_url}}\/ig, obj.module_url);  \/\/ Replaced the wildcard variable {{module_url}} with corresponding data from the JSON.\r\n$(&#039;.container&#039;).append(x); \/\/ appended the content to the container div.<\/pre>\n<ol start=\"2\">\n<li>\n<h3>By using the Placeholder technique<\/h3>\n<\/li>\n<\/ol>\n<p>In this technique, we will append the content in the HTML after populating the data using the jQuery placeholder technique. The complete code is given below:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.7\/css\/bootstrap.min.css&amp;quot;&gt;\r\n        &lt;script src=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.2.1\/jquery.min.js&amp;quot;&amp;gt;&amp;lt;\/script&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;div class=&quot;container&quot;&gt;&lt;\/div&gt;\r\n        &lt;script&gt;\r\n         $(function() {\r\n             varknoband_data = [\r\n                        {\r\n                            &quot;name&quot;: &quot;Product tabs- PrestashopAddons&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Product-Tabs-logo-1000-x-1000.jpg&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-product-tabs&quot;,\r\n                            &quot;price&quot;: &quot;$25&quot;\r\n                        },\r\n                        {\r\n                            &quot;name&quot;: &quot;Prestashop Mobile App builder&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Mobile-app-prestashop-plugin-500-X-500.jpg&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-mobile-app-builder&quot;,\r\n                            &quot;price&quot;: &quot;$30&quot;\r\n                        },\r\n                        {\r\n                            &quot;name&quot;: &quot;Return Manager - Magento Extensions&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/return-manager.png&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/magento-return-manager&quot;,\r\n                            &quot;price&quot;: &quot;$50&quot;\r\n                        },\r\n                        {\r\n                            &quot;name&quot;: &quot;Web Push Notification - PrestashopAddons&quot;,\r\n                            &quot;image_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/image\\\/data\\\/Plugin%20Logo\\\/Web-Push-Notification-plugin.jpg&quot;,\r\n                            &quot;module_url&quot;: &quot;https:\\\/\\\/www.knowband.com\\\/prestashop-web-push-notifications&quot;,\r\n                            &quot;price&quot;: &quot;$43&quot;\r\n                        }\r\n                    ];\r\n             $.each(knoband_data, function(index, obj) {\r\n                $(&#039;.container&#039;).append(\r\n                    `&lt;div class=&quot;col-md-3&quot;&gt;\r\n                        &lt;a href=&quot;${obj.module_url}&quot;&gt;\r\n                            &lt;div class=&quot;thumbnail&quot;&gt;\r\n                                &lt;imgsrc=&quot;${obj.image_url}&quot; class=&quot;img-rounded img-responsive&quot; width=&quot;100%&quot;&gt;&lt;\/img&gt;\r\n                                &lt;div class=&quot;caption&quot;&gt;\r\n                                    &lt;p class=&quot;lead&quot;&gt;${obj.price}&lt;\/p&gt;\r\n                                    &lt;p&gt;${obj.name}&lt;\/p&gt;\r\n                                &lt;\/div&gt;\r\n                            &lt;\/div&gt;\r\n                        &lt;\/a&gt;\r\n                    &lt;\/div&gt;`\r\n                );\r\n            });\r\n         });\r\n        &lt;\/script&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>In the above example, we have used ` (back-tick) as template literal\u00a0and ${ } as a placeholder. When we compare method 1 with method 2 we can easily say\u00a0template literal\u00a0and\u00a0placeholder makes our task easier. In this example, we have written the template code in a loop and replaced our placeholders with its corresponding data.<\/p>\n<h2>Summary<\/h2>\n<p>To learn more about jQuery Templates, I recommend that you look at the documentation for jQuery Templates at the official jQuery website.<\/p>\n<p>For any queries, please reach us at support@knowband.com. We also provide custom development of all sorts. You can also find the best eCommerce modules for Prestashop, Opencart,\u00a0Magento and Magento 2 <a href=\"https:\/\/knowband.com\">here<\/a>.<\/p>\n<p>We also recommend our most popular <a href=\"https:\/\/www.knowband.com\/prestashop-one-page-supercheckout\">One page supercheckout<\/a> module as a must-have module for all eCommerce stores. Know more:<br \/>\n<iframe loading=\"lazy\" width=\"660\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/1yLcXToR6-g\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is all about creating HTML template using jQuery. Let&#8217;s know about the jQuery jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":816736,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[7507],"tags":[7547,7504,7505,7548,7506],"class_list":["post-22312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-create-ecommerce-html-template-using-jquery","tag-create-html-template","tag-create-html-template-using-jquery","tag-html-template-using-jquery","tag-template-creation-using-jquery"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create HTML template using jQuery? - Knowband Blog<\/title>\n<meta name=\"description\" content=\"With this article, you will be able to create HTML template using jQuery. So, get enough information to start working with the jQuery Templates.\" \/>\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.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create HTML template using jQuery? - Knowband Blog\" \/>\n<meta property=\"og:description\" content=\"With this article, you will be able to create HTML template using jQuery. So, get enough information to start working with the jQuery Templates.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-30T07:00:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-18T11:14:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-Jquery.png\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sunny Saurabh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sunny Saurabh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/\"},\"author\":{\"name\":\"Sunny Saurabh\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/57eba27850520f4c8de3853ee8755a55\"},\"headline\":\"How to create your own HTML template using jQuery?\",\"datePublished\":\"2018-10-30T07:00:56+00:00\",\"dateModified\":\"2022-07-18T11:14:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/\"},\"wordCount\":483,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-Jquery.png\",\"keywords\":[\"create eCommerce HTML template using JQuery\",\"create html template\",\"create html template using jquery\",\"html template using jquery\",\"template creation using jquery\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/\",\"name\":\"How to create HTML template using jQuery? - Knowband Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-Jquery.png\",\"datePublished\":\"2018-10-30T07:00:56+00:00\",\"dateModified\":\"2022-07-18T11:14:22+00:00\",\"description\":\"With this article, you will be able to create HTML template using jQuery. So, get enough information to start working with the jQuery Templates.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-Jquery.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-Jquery.png\",\"width\":760,\"height\":300,\"caption\":\"How to create your own HTML template using jQuery?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/create-your-own-html-template-using-jquery\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create your own HTML template using jQuery?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/57eba27850520f4c8de3853ee8755a55\",\"name\":\"Sunny Saurabh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/IMG_20181029_123810-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/IMG_20181029_123810-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/IMG_20181029_123810-150x150.jpg\",\"caption\":\"Sunny Saurabh\"},\"description\":\"Sunny Saurabh is an experienced Software engineer in C# and ASP.NET as well as an expert as a PHP developer. He has also expert in database design, server maintenance and security. He has achieved this goal only in the short span of 3yrs and still looking forward to achieving more in the IT industry. He lives in New Delhi and his hobby to write the technical writeups.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/author\\\/ssaurabh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create HTML template using jQuery? - Knowband Blog","description":"With this article, you will be able to create HTML template using jQuery. So, get enough information to start working with the jQuery Templates.","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.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/","og_locale":"en_US","og_type":"article","og_title":"How to create HTML template using jQuery? - Knowband Blog","og_description":"With this article, you will be able to create HTML template using jQuery. So, get enough information to start working with the jQuery Templates.","og_url":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2018-10-30T07:00:56+00:00","article_modified_time":"2022-07-18T11:14:22+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-Jquery.png","type":"image\/png"}],"author":"Sunny Saurabh","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Sunny Saurabh","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/"},"author":{"name":"Sunny Saurabh","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/57eba27850520f4c8de3853ee8755a55"},"headline":"How to create your own HTML template using jQuery?","datePublished":"2018-10-30T07:00:56+00:00","dateModified":"2022-07-18T11:14:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/"},"wordCount":483,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-Jquery.png","keywords":["create eCommerce HTML template using JQuery","create html template","create html template using jquery","html template using jquery","template creation using jquery"],"articleSection":["Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/","url":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/","name":"How to create HTML template using jQuery? - Knowband Blog","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-Jquery.png","datePublished":"2018-10-30T07:00:56+00:00","dateModified":"2022-07-18T11:14:22+00:00","description":"With this article, you will be able to create HTML template using jQuery. So, get enough information to start working with the jQuery Templates.","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-Jquery.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-Jquery.png","width":760,"height":300,"caption":"How to create your own HTML template using jQuery?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/tutorials\/create-your-own-html-template-using-jquery\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"How to create your own HTML template using jQuery?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/57eba27850520f4c8de3853ee8755a55","name":"Sunny Saurabh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/IMG_20181029_123810-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/IMG_20181029_123810-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/IMG_20181029_123810-150x150.jpg","caption":"Sunny Saurabh"},"description":"Sunny Saurabh is an experienced Software engineer in C# and ASP.NET as well as an expert as a PHP developer. He has also expert in database design, server maintenance and security. He has achieved this goal only in the short span of 3yrs and still looking forward to achieving more in the IT industry. He lives in New Delhi and his hobby to write the technical writeups.","url":"https:\/\/www.knowband.com\/blog\/author\/ssaurabh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/22312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=22312"}],"version-history":[{"count":8,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/22312\/revisions"}],"predecessor-version":[{"id":816988,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/22312\/revisions\/816988"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media\/816736"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=22312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=22312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=22312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}