{"id":68208,"date":"2025-04-26T03:01:00","date_gmt":"2025-04-25T17:01:00","guid":{"rendered":"https:\/\/www.rjmprogramming.com.au\/ITblog\/?p=68208"},"modified":"2025-04-25T13:29:50","modified_gmt":"2025-04-25T03:29:50","slug":"html-template-tag-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/html-template-tag-primer-tutorial\/","title":{"rendered":"HTML Template Tag Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/document_template.html\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"HTML Template Tag Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/document_template.gif\" title=\"HTML Template Tag Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">HTML Template Tag Primer Tutorial<\/p><\/div>\n<p>In amongst yesterday&#8217;s online newspaper readings a graph on the news.com.au article <a target=\"_blank\" href='https:\/\/www.news.com.au\/finance\/economy\/australian-economy\/weve-never-been-asked-uncomfortable-truth-about-immigration-debate\/news-story\/b3078c332083c667d0811f93ec231dd2#flourish-header-title' rel=\"noopener\">\u2018We\u2019ve never been asked\u2019: Uncomfortable truth about immigration debate<\/a> titled &#8220;Overseas migrant arrivals by country of birth&#8221; <font size=1>(A Flourish bar chart race)<\/font> intrigued us.  Wow, what a great interactive resource!   We started using the web browser&#8217;s web inspector to start analyzing it, and found out it used at it&#8217;s heart the HTML &#8230;<\/p>\n<blockquote><p>\n<a target=\"_blank\" title='HTML template tag' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Reference\/Elements\/template' rel=\"noopener\">template<\/a>\n<\/p><\/blockquote>\n<p> &#8230; tag.  Here it is in action &#8230;<\/p>\n<p><iframe scrolling=\"no\" frameborder=\"0\" title=\"Interactive or visual content\" sandbox=\"allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation\" src=\"\/\/flo.uri.sh\/visualisation\/22061996\/embed?auto=1\" style=\"width: 100%; height: 968.289px;\"><\/iframe><\/p>\n<p>Amazing, huh?!  Well, we wanted to explore more about &#8230;<\/p>\n<ul>\n<li>the <a target=\"_blank\" title='HTML template tag' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Reference\/Elements\/template' rel=\"noopener\">template<\/a> element tag &#8230; and then onto &#8230;<\/li>\n<li><a target=\"_blank\" title='HTML template tag' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Reference\/Elements\/template' rel=\"noopener\">&lt;template&gt;: The Content Template element<\/a> &#8230; and then onto &#8230;<\/li>\n<li><a target=\"_blank\" title='HTML template tag' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Web_components\/Using_shadow_DOM' rel=\"noopener\">Using Shadow DOM<\/a><\/li>\n<\/ul>\n<p> &#8230; to arrive at a &#8220;proof of concept&#8221; <a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/document_template.html-GETME\" rel=\"noopener\">second<\/a> <a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/document_template.html-GETME\" rel=\"noopener\">draft<\/a> <a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/document_template.html\" rel=\"noopener\">HTML Template Experimenting<\/a> web application, on our quest to understand how functionality can effectively &#8220;be packaged&#8221; into these template element types, and we&#8217;ll probably be returning to.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d68208' onclick='var dv=document.getElementById(\"d68208\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/template\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d68208' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In amongst yesterday&#8217;s online newspaper readings a graph on the news.com.au article \u2018We\u2019ve never been asked\u2019: Uncomfortable truth about immigration debate titled &#8220;Overseas migrant arrivals by country of birth&#8221; (A Flourish bar chart race) intrigued us. Wow, what a great &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/html-template-tag-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,17,33,37],"tags":[4387,538,576,617,752,997,1166,1196,1240,1566,1319,1404,2099,1583],"class_list":["post-68208","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-gui","category-software","category-tutorials","tag-functionality","tag-graph","tag-html","tag-interactive","tag-mathematics","tag-programming","tag-software-2","tag-statistics","tag-tag","tag-template","tag-tutorial","tag-web-browser","tag-web-inspector","tag-window"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/68208"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=68208"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/68208\/revisions"}],"predecessor-version":[{"id":68212,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/68208\/revisions\/68212"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=68208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=68208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=68208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}