Référence HTML : accept
L'attribut accept
- Type : %ContentTypes;
- Valeur par défaut : #IMPLIED
Description de l'attribut accept
L'attribut accept nous permet de spécifier la liste de types de contenu, séparés par des virgules, que le serveur est capable de prendre en charge.Ceci nous permet de traiter par l'agent utilisateur les fichiers non conformes avant même de les envoyer vers le serveur.
Voir : balise input avec l'attribut type="file"
Eléments qui peuvent utiliser cet attribut :
| form | input |Liste des attributs et évènements
- abbr
- accept
- accept-charset
- accesskey
- action
- align
- alink
- alt
- archive
- axis
- background
- bgcolor
- border
- cellpadding
- cellspacing
- char
- charoff
- charset
- checked
- cite
- class
- classid
- clear
- code
- codebase
- codetype
- color
- cols
- colspan
- compact
- content
- coords
- data
- datetime
- declare
- defer
- dir
- disabled
- enctype
- face
- for
- frame
- frameborder
- headers
- height
- href
- hreflang
- hspace
- http-equiv
- id
- ismap
- label
- lang
- language
- link
- longdesc
- marginheight
- marginwidth
- maxlength
- media
- method
- multiple
- name
- nohref
- noresize
- noshade
- nowrap
- object
- onblur
- onchange
- onclick
- ondblclick
- onfocus
- onkeydown
- onkeypress
- onkeyup
- onload
- onmousedown
- onmousemove
- onmouseout
- onmouseover
- onmouseup
- onreset
- onselect
- onsubmit
- onunload
- profile
- prompt
- readonly
- rel
- rev
- rows
- rowspan
- rules
- scheme
- scope
- scrolling
- selected
- shape
- size
- span
- src
- standby
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 14/08/2006, last modified the 29/07/2022
Source of the printed document:https://www.gaudry.be/en/xhtml-rf-attribut/accept.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.