setAttribute method This method adds the specified attribute to an element, and set it’s specified value. type="image"), Specifies the interval between legal numbers in an input field, Specifies the type element to display, Specifies the value of an element, Specifies the width of an element (only for type="image"). Copy and paste the following three lines of code onto the blank line created in the previous step: A … Create an HTML page. text:It specifies the value of input text field. Here we will create TextBox in HTML 5. , , , () method, which is less error prons and performs fast. In HTML, you create textboxes by using the