Miscellaneous
The miscellaneous grouping of attributes will have no hierarchy as they can be used on many different elements.
accept
The accept
attribute gives the list of types for the server:
<element accept></element>
Elements
The elements used in the accept
attribute are form
and input
.
Description
The accept
attribute allows you to suggest the file type that this form or input should accept. You can use audio/*
, video/*
, image/*
, a MIME type, or the extension.
Here is an example looking for PNG files:
<input type="file" accept=".png, image/png"/>
accept-charset
The accept-charset
attribute gives the list of support charsets:
<element accept-charset></element>
Elements
The form
element is used in the accept-charset
attribute.
Description
The accept-charset ...
Get Web Developer's Reference Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.