Horje

How to Add a <h1> element with a popover attribute, and a button to show/hide it

Click the button and it will toggle between showing and hiding the popover element.
index.html
Example: HTML
<h1 popover id="myheader">Hello</h1>
<button popovertarget="myheader">Click me!</button> 

Output should be:

How to Add a <h1> element with a popover attribute, and a button to show/hide it




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Global Attributes
Uploaded by:
Admin