Category: New
New in html5
Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Required HTML For Input Required: Get The Code Now
Specifies that the input field is required; disallows form submission and alerts the user if the required field is empty.<input placeholder=””>
Specifies placeholder text in a text-based input.Input Pattern: Use It To Add Basic Data Validation In HTML5
Specifies a regular expression against which to validate the value of the input.<input multiple>
Allows the user to enter multiple values into a file upload or email input.<input min=””>
Specifies a minimum value for number and date input fields.<input max=””>
Specifies a maximum value for number and date input fields.<input list=””>
Specifies the id of a <datalist> element which provides a list of autocomplete suggestions for the input field.<input height=””>
Specifies the height of an image input.<input formtarget=””>
Specifies the browsing context in which to open the response from the server after form submission. For use only on input types of "submit" or "image".<input formmethod=”
Specifies the HTTP method (GET or POST) to be used when the form data is submitted to the server. Only for use on input types of "submit" or "image".
Specifies how form data should be submitted to the server. Only for use on input types "submit" and "image".<input formenctype=””> <input formaction=””>
Specifies the URL for form submission. Can only be used for type="submit" and type="image".<input form=””>
Specifies a form to which the input field belongs.<input autofocus>
Specifies that the input field should be in focus immediately upon page load.<iframe sandbox=””>
Places a set of security and usability restrictions on the iframe.Audio Volume: Quick & Easy HTML Guide For Setting Initial Volume
Specifies the initial volume setting of the audio element, in a range from 0.0 to 1.0.<audio preload=””> HTML Attribute
Requests a particular preload behavior to the browser, which the browser may or may not follow.<audio muted> HTML Attribute
Specifies that the volume on the audio player should initially be muted.<audio loop> HTML Attribute
Specifies that the audio content should loop indefinitely once playback has begun.<audio controls> HTML Attribute
Toggles the display of audio playback controls.
Specifies that the audio playback should begin immediately on page load.<audio autoplay> HTML Attribute <audio src=””> HTML Attribute
Specifies the source file for an audio element.Using <a> To Download Rather Than Open Linked Resource
Directs the browser to download the linked resource rather than opening it.
Indicates that CORS headers should be used in the HTTP request, and specifies whether or not to use credentials.<img crossorigin=””>