Expand description
Common attributes
Note that you may create your own attribute by using Attribute::new or Attribute::new_flag
Or by leveraging on of the From implementation on Attribute
Enums§
- Anchor
Target - Represent an anchor target
Functions§
- action
actionattribute- alt
altattribute- async_
asyncattribute- autocomplete
autocompleteattribute- autocomplete_
off autocomplete="on"attribute- autocomplete_
on autocomplete="on"attribute- autofocus
autofocusattribute- charset
charsetattribute- charset_
utf8 - Alias for
charset("UTF-8") - charset_
utf_ 8 Deprecated - Alias for
charset("UTF-8") - class
classattribute- cols
colsattribute- content
contentattribute- crossorigin_
anonymous crossorigin="anonymous"- crossorigin_
use_ credentials crossorigin="use-credentials"- defer
deferattribute- disabled
disabledattribute- download
downloadflag attribute- download_
with_ name downloadattribute with a file name argument- for_
forattribute- height
heightattribute- height_
int heightattribute with ani32value- href
hrefattribute- id
idattribute- integrity
integrityattribute- lang
langattribute (usually onhtmlelement)- max
maxattribute- maxlength
maxlengthattribute- maxlength_
u16 maxlengthattribute using au16value- method_
get method_getattribute- method_
post method_getattribute- min
minattribute- minlength
minlengthattribute- minlength_
u16 minlengthattribute using au16value- multiple
multipleattribute- name
nameattribute- none
- Do not render any attribute. Useful for conditional rendering.
- pattern
patternattribute- placeholder
placeholderattribute- rel
relattribute- required
requiredattribute- role_
str roleattribute with an aribtrary string value- rows
rowsattribute- src
srcattribute- style
styleattribute- target
targetattribute for<a>- target_
blank - Alias for
target(Target::Blank) - type_
typeattribute- type_
checkbox type="checkbox"(checkbox input)- type_
date type="date"(date input)- type_
email type="email"(email input)- type_
file type="file"(file input)- type_
hidden type="hidden"(hidden input)- type_
month type="month"(month input)- type_
number type="number"(number input)- type_
password type="password"(password input)- type_
radio type="radio"(radio input)- type_
range type="range"(range input)- type_
reset type="reset"(reset button)- type_
submit type="submit"(reset button)- type_
tel type="tel"(phone number input)- type_
text type="text"(text input)- value
valueattribute- width
widthattribute- width_
int widthattribute with ani32value