Please try to use a search engine for these kind of questions before asking them here or on any other platform.
First of all it is important to know about autocomplete and then you can use a trick to make it impossible for a browser to insert credentials
That's about what you can do if you do not want to enforce JS on your page. Else you could use JS to emulate a password field with a text field and use autocomplete=off on it.
A browser storing a password does not affect security. It is a normal browser control users already know and love. Users can decide by themselves if they want to enable the feature in their browser control and if they want to store the credentials on your site. By crippling regular browser features, you make users angry. It is no good UX.