how to input accept file types

Hello everyone,

We use input tag to text, file etc. We want some file types select and some file types input for these situations use accept feature.

Exams:

<input type="file" id="imageFile" accept="application/msword">
<input type="file" id="imageFile" accept="application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document">