Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
accept は HTMLInputElement インターフェイスのプロパティで、<input> 要素の accept 属性を反映し、一般にカンマで区切られた固有ファイル型指定子のリストで、<input> の file 型に期待されるファイル型のヒントを提供します。この属性が明示的に設定されていない場合、accept 属性は空文字列になります。
要素の accept 値を表す文字列、または accept が明示的に設定されていない場合は空文字列。
| HTML # dom-input-accept |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年4月12日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.