-
Book Overview & Buying
-
Table Of Contents
Web Developer's Reference Guide
By :
The miscellaneous grouping of attributes will have no hierarchy as they can be used on many different elements.
The accept attribute gives the list of types for the server:
<element accept></element>
The elements used in the accept attribute are form and input.
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"/>
The accept-charset attribute gives the list of support charsets:
<element accept-charset></element>
The form element is used in the accept-charset attribute.
The accept-charset attribute sets the charset that the form will accept. UTF-8 is most commonly used as it accepts many characters from many languages.
Here is an example of using the charset attribute:
<form accept...
Change the font size
Change margin width
Change background colour