Explain the purpose of the is attribute for custom elements in HTML.
The is attribute extends existing elements to create custom elements without entirely replacing native behavior, useful for applying custom behaviors on native elements like <button is="custom-button">.