asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > TEMPLATE Element

<template> Element


Indicates fragments of HTML used as a template.HTML 5

HTML Syntax

NOTE: Both start and end tags are required.

Remarks

The <template> element is used to declare fragments of HTML that can be cloned and inserted in the document by script.

NOTE: This section of the workshop is under major reconstruction, in short, work in progress. So please bear with whatever inconvenience you may encounter; we hope to complete the job at the soonest possible time.

Attributes

The <template> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

The following shows how the template element may be used.



External References

See Also

SLOT


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note