Skip to content

Commit

Permalink
Remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
pepelsbey committed Jan 25, 2024
1 parent e0aa12b commit 5a53fd0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions files/en-us/web/html/element/template/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ browser-compat: html.elements.template

The **`<template>`** [HTML](/en-US/docs/Web/HTML) element serves as a mechanism for holding {{Glossary("HTML")}} fragments, which can either be used later via JavaScript or generated immediately into shadow DOM.

By default, an element's content is not rendered, only parsed into a [document fragment](/en-US/docs/Web/API/DocumentFragment). You can use this fragment in the following ways:

- If you use the {{domxref("HTMLTemplateElement.content", "content")}} property in JavaScript, you can clone this fragment via the {{domxref("Node.cloneNode", "cloneNode")}} method and insert it into the DOM.
- If you add the `shadowrootmode` attribute to the element, the HTML parser will immediately generate a shadow DOM. The element is replaced in the DOM by its content wrapped in a [shadow root](/en-US/docs/Glossary/Shadow_tree).

## Attributes

This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attributes).
Expand Down

0 comments on commit 5a53fd0

Please sign in to comment.