HTML DOM Input Email size Property Last Updated : 29 Jan, 2024 Comments Improve Suggest changes Like Article Like Report The Input Email size property in HTML DOM is used to set or return the value of the size attribute of an Input Email Field. The size attribute is used to define the width of an email field. Its default value is 20. Syntax: It returns the Input Email size property. emailObject.sizeIt is used to set the Input Email size property. emailObject.size = numberProperty Value: It contains single value number which is used to specify the width of an email field in terms of the number of characters. Return Value: It returns the numeric value which represents the width of an email field in terms of number of characters. Example 1: This example illustrates how to return Input Email size property. html <!DOCTYPE html> <html> <head> <title> HTML DOM Input Email size Property </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2>HTML DOM Input Email size Property</h2> <label>E-mail:</label> <input type="email" id="email" name="myGeeks" size="10"> <br><br> <button onclick="myGeeks()"> Click Here! </button> <p id="result"></p> <!-- Script to return Input Email size Property --> <script> function myGeeks() { let email = document.getElementById("email").size; document.getElementById("result").innerHTML = email; } </script> </body> </html> Output: Example 2: This example illustrates how to set Input Email size Property. html <!DOCTYPE html> <html> <head> <title> HTML DOM Input Email size Property </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2> HTML DOM Input Email size Property </h2> <label>E-mail:</label> <input type="email" id="email" name="myGeeks" size="10"> <br><br> <button onclick="myGeeks()"> Click Here! </button> <p id="result"></p> <!-- Script to set Input Email size Property --> <script> function myGeeks() { let email_size = document.getElementById( "email").size= "30"; document.getElementById("result").innerHTML = "Value of size attribute changed to " + email_size; } </script> </body> </html> Output: Supported Browsers: Google Chrome 5Edge 12Firefox 1Opera 11Safari 5 Comment More infoAdvertise with us Next Article HTML DOM Input Email size Property M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM Input Email type Property The Input Email type property in HTML DOM is used to return the type of form element of the Email field. It always returns an email for an Input Email Field. Syntax: emailObject.type Return Values: It returns a string value that represents the type of form element of the Email field. The below progr 1 min read HTML | DOM Input Email readOnly Property The DOM Input Email readonly Property is used to set or return whether an Email Field should be read-only or not. It means that a user can not modify or changes an content already present in a particular Element (However, a user can tab to it, highlight it, and copy the text from it) whereas a JavaS 2 min read HTML | DOM Input Email form Property The Input Email form property in HTML DOM is used to return the reference of form containing the input Email field. It is read-only property that returns a form object on success. Syntax: emailObject.form Return Values: It returns a string value which specify the reference of the form containing the 1 min read HTML | DOM Input URL size Property The DOM Input URL size Property in HTML DOM is used to set or return the value of the size attribute of an Input url Field. The size attribute is used to define the width of a url field. Its default value is 20. Syntax: It returns the Input url size property.urlObject.sizeIt is used to set the Input 2 min read HTML | DOM Input Email pattern Property The Input Email pattern property in HTML DOM is used to set or return the pattern attribute of an email field. It is used to specify the regular expression on which the input elements value is checked against. Use the Global title attribute to describe the pattern for helping the user. Syntax: It re 2 min read Like