Template tag | Sololearn: Learn to code for FREE!


Template tag

What is the use of <template> tag

12/28/2018 9:48:21 AM


4 Answers

New Answer


There is template tag in HTML. <template> tag element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript. Check out the usage of template tag from here https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_template2


Does it mean the content not to be loaded ?


It seems the template tag works in both Javascript and php, thanks for the answers.