HTML5 newly added types element 1. When you create a number input with the proper type value, number, you get automatic validation that the entered text is a number, and usually a set of up and down buttons to step the value up and down. If the type attribute is not specified, the default type is "text". If you try to enter more than 8 characters, the browser won't let you.The example below restricts the value to 4-8 characters and requires that it contain only lower-case letters.You can see good examples of text inputs used in context in our Get the latest and greatest from MDN delivered straight to your inbox.The newsletter is offered in English only at the moment. Note: While elements of type button are still perfectly valid HTML, the newer