A regular expression is a value for the attribute.You can define the valid pattern for the input box using this attribute.Then click on the Web Part icon in the ribbon. Click on the zone where you would like to add the text. Use text as well as numbers as the value. You can add the Content Editor web part to your SharePoint page in a few clicks: Add the Content Editor web part.A default value can be given by using this attribute which displays in the textbox.Enter a numeric value to this attribute.Define the size which decides the width for the input box.It enables asp.net web developers to replace any textbox/textarea with an intuitive word-like wysiwyg editor. Place readonly as the value for the attribute. Rich Text Editor for asp.net is by far the fastest, cleanest, most powerful online wysiwyg content editor.Make the input box read-only and disabled it for the users to enter any value.Put a numeric value for this attribute.The minimum number of text content for the input is given by using this attribute.You can enter a numeric value for the attribute.Specify the maximum length for the email input box.It details credit goes to the Mozilla doc library. Some Useful Attributes of Email Textboxīelow are the useful attributes you can use with the textbox. So, the best option for the developer to create an email only input box in HTML without using any other coding. If the user left it blank, it asks the user to enter some value to the input box as you have added required attribute.Īlso, if the user enters a value other than email, it asks the user to enter only the email as the value. The above example shows the required input box to get an email as the required value.