Dom Obj Email
# HTML DOM Input Email Object
* * *
## Input Email Object
The Input Email object is new in HTML5.
The Input Email object represents an HTML `` element with `type="email"`.
**Note:** Internet Explorer 9 (and earlier IE versions), or Safari browsers do not support the HTML `` element with `type="email"`.
### Accessing the Input Email Object
You can use the `getElementById()` function to access an `` element with the `type="email"` attribute:
```javascript
var x = document.getElementById("myEmail");
(#)
**Tip:** You can also access the Input Email object through the form's (#) collection.
### Creating an Input Email Object
You can use the `document.createElement()` method to create an `` element with the `type="email"` attribute:
```javascript
var x = document.createElement("INPUT");
x.setAttribute("type", "email");
(#)
## Input Email Object Properties
| Property | Description |
| --- | --- |
| (#) | Sets or returns the autocomplete attribute value of the email field |
| (#) | Sets or returns whether the email field should automatically get focus when the page loads |
| (#) | Sets or returns the default value of the email field |
| (#) | Sets or returns whether the email field is disabled |
| (#) | Returns a reference to the form that contains the email field |
| list | Returns a reference to the datalist that contains the email field |
| (#) | Sets or returns the maxlength attribute value of the email field |
| (#) | Sets or returns whether the email field can contain multiple email addresses |
| (#) | Sets or returns the name attribute value of the email field |
| (#) | Sets or returns the pattern attribute value of the email field |
| (#) | Sets or returns the placeholder attribute value of the email field |
| (#) | Sets or returns whether the email field is read-only |
| (#) | Sets or returns whether the email field must be filled out before submitting the form |
| step | Sets or returns the step attribute value of the email field |
| (#) | Returns the type of the email field |
| (#) | Sets or returns the value of the email field |
YouTip