Define :
There are different types of HTML attributes :
Accept Attribute :
specifies the categories of files that the server accepts.
like audio, video, image, media type
Example :
Output :
Alt :
Specifies Associate in Nursing alternate text for a picture, solely used with type="image"
value="text"
Output :
Autocomplete:
It permits or disables autocomplete in the tag.
Value is on or off.
Example :
Output :
Autofocus:
specifies Associate in Nursing that an element should automatically get focus when the page loads.
Example :
Output :
checked :
Input element should be checked or selected when a web page loads and it is used only with
type="checkbox" type="radio"
Example :
Output :
dirname :
specifies that text direction will be submitted.
Example :
Output :
disabled :
disables the input element when it loads on the client-side web page so that the user cannot write text in it or select it.
value="hidden"
Example :
Output :
Form action :
specifies the URL of the file that may method the input management once the shape is submitted.
Example :
Output :