Filter files by extension of input file

The accept attribute on <input type="file"> sets the filter for file types in the file selection window. The value can be the resolution of files or their MIME types (for example: image/jpeg).

Examples of using:

11.01.2021, updated 21.02.2021
697

Comments

to add a comment.

Other publications

Links to messengers from the site
HTML links to open chat and other functions of popular instant messengers.
47
0
CSS styles for horizontal lines
Collection of horizontal lines with hr tag of different types and styles.
62
0
Vertical alignment of text in a block
A way to vertically align text in blocks of fixed height. The text is wrapped in a tag with a .child class, followed by...
32
0
Heading with a horizontal line in the middle
One way to make a heading with a horizontal line in the center without an image (background-image).
53
0
The viewport meta tag
Initially, the viewport meta tag appeared in the mobile version of Safari, then it was picked up by other developers and mobile browsers, although it is not part of the W3C standard.
34
0
Styling Checkbox
Here are some examples of how to change the look of checkboxes using CSS, images and some JS.
174
0