Courses / HTML
93. Template Element
The template element used to declare fragments of HTML that can be cloned and inserted in the document.
1 min read Chapter 93 of 102
HTML
Template Element
The template element allows you to define HTML fragments that can be reused in your document.
"I want to avoid duplicating HTML code for similar components."
The template element is a way to declare HTML that is not rendered immediately but can be cloned and inserted into the document later.
"I want to avoid duplicating HTML code for similar components."
The template element is a way to declare HTML that is not rendered immediately but can be cloned and inserted into the document later.