![]() |
Definition and UsageThe The elements are still visible, but they have no function: buttons and links cannot be clicked, input fields are disabled etc., and they are ignored by screen readers. Browser SupportSyntax
|
Example:
HTML
<div inert>
<button onclick="alert(42)">Click me</button>
<input type="text">
<a href="https://horje.com">Horje.com</a>
</div>
html inert attribute |
How to Disable a section with the inert attribute | HTML Global Attributes |
Read Full: | HTML Global Attributes |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Global Attributes |
Uploaded by: | Admin |
Views: | 28 |
Reffered: https://www.w3schools.com/tags/att_global_inert.asp