<template> tag in HTML

The <template> tag holds the client-side content that will not render when a page is loaded and the browser ignores the contents, it only checks for syntax validity but the content can be made visible and rendered later by using JavaScript.

Important Description

  • The <template> tag is new in HTML5.
  • Open and close tag required of <template>.

Example of <template> tag

<template> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<template> Yes Yes Yes Yes Yes
Version 26.0 13.0 22.0 9.0 15.0

Global Attributes

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)