# Element Info

[Web Components](https://lochiwei.gitbook.io/web/component) ⟩ [Custom Elements](https://lochiwei.gitbook.io/web/component/custom-element) ⟩

To get the information about custom elements, there are methods:

| method                                                                                                 | notes                                                                                                                  |
| ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| [customElements.get(name)](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get) | returns the **class** for a **custom element** with the given name                                                     |
| customElements.whenDefined(name)                                                                       | returns a **promise** that resolves (without value) when a **custom element** with the given name **becomes defined**. |
