+ 7
Template tag
What is the use of <template> tag
4 odpowiedzi
+ 4
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
+ 3
Does it mean the content not to be loaded ?
+ 1
It seems the template tag works in both Javascript and php, thanks for the answers.