Form Parametreleri (Attributes)
Form elemlarına ek özellikler kazandırmak için kullanılan parametreler.
placeholder
<input placeholder="veryhot@thesun.com" name="placeholder-test" type="text">
autofocus
<input autofocus="" name="autofocus-test" type="text">
maxlength
<textarea name="maxlenth-test" maxlength="10"></textarea>
<input name="maxlenth-input-test" maxlength="10">
min
<input name="mintest" min="1" type="number">
max
<input name="maxtest" max="10" type="number">
step
<input name="steptest" step="5" type="number">
datalist
<input name="datalist-test" list="planetdata" type="text">
<datalist id="planetdata">
<option value="Earth">
</option><option value="Venus">
</option><option value="Mars">
</option><option value="Fomalhaut b">
</option><option value="HR 8799">
</option>
</datalist>
<datalist id="planetdata">
<option value="Earth">
</option><option value="Venus">
</option><option value="Mars">
</option><option value="Fomalhaut b">
</option><option value="HR 8799">
</option>
</datalist>
autocomplate
<input autocomplete="off" name="autocomplete-test" type="text">
accept
<input accept="image/*" type="file">
multiple
<input multiple="" type="file">
required
<input required="" name="required-test" type="text">
pattern
<input required="" pattern="[0-9][A-Z]" name="placeholder-test" type="text">
formnovalidate
<input formnovalidate="" name="formaction-test" type="submit">
formaction
<input formaction="http://www.wufoo.com" name="formaction-test" type="submit">
formmetod
<input formmethod="get" name="formaction-test" type="submit">
formtarget
<input formtarget="_blank" name="formaction-test" type="submit">
formenctype
<input formenctype="application/x-www-form-urlencoded" name="formaction-test" type="submit">
spellcheck
<input spellcheck="true" type="text">
<br>
<input spellcheck="false" type="text">
<br>
<input spellcheck="false" type="text">
Kaynak
Yorumunuzu Ekleyin