## Mount an Element `element.mount(domElement: string | DOM element)`

The `element.mount` method attaches your [Element](https://docs.stripe.com/js/element.md) to the DOM. `element.mount` accepts either a CSS Selector (e.g., `'#payment-element'`) or a DOM element. You need to create a container DOM element to mount an `Element`. Add an empty placeholder `div` to your payment form for each Element that you'll mount. Stripe inserts an iframe into each `div` to securely collect payment information.

- `domElement` The CSS selector or DOM element where your [Element](https://docs.stripe.com/js/element.md) will be mounted.

### Example

```javascript
// Assuming you have a Stripe instance and an Elements instance
const stripe = Stripe('pk_test_...');
const elements = stripe.elements();

// Create an instance of the Payment Element
const paymentElement = elements.create('payment');

// Mount the Payment Element to the DOM
paymentElement.mount('#payment-element');
```