You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new HTML Template Element example with header and footer
- Created a new example demonstrating the HTML <template> element
- Added index.html with a button to add list items using the template
- Included header and footer to match the site style
- Updated main.css to include styles for the header and footer
- Added main.js to handle the dynamic addition of list items
<ahref="track" title="Track element"><track> with <video></a>
387
388
<ahref="track/audio" title="Track element for audio"><track> with <audio></a>
388
389
<ahref="track/map" title="Track element with synchronised metadata"><track> to synchronise video playback with Google Maps & Street View display</a>
<p>This example demonstrates how to use the HTML <code><template></code> element.</p>
21
+
22
+
<buttonid="add">Add Item</button>
23
+
24
+
<ulid="itemList"></ul>
25
+
26
+
<templateid="itemTemplate">
27
+
<li>Item</li>
28
+
</template>
29
+
</main>
30
+
31
+
<footer>
32
+
<ahref="https://github.com/samdutton/simpl/blob/master/template/index.html" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>
0 commit comments