HTML event handlers considered bad practice?

I usually bind events to an element using JavaScript/jQuery. However, this project I'm working on is going to generate lots of HTML content via PHP. For this purpose it seems to make much more sense (and uses a lot less code) to add the key event handlers on the HTML side with the required arguments. I searched online and didn't see any hints of this being deprecated. Are binding events in HTML still common?

Putting event handlers in the HTML is not encouraged because it makes the code a lot harder to read, understand, and maintain. There's no technical reason not to do it, it's just a bad code smell.

That's fine, I'll just bind the events externally. Is there any use-case scenario where it makes sense to bind them in the markup?

No, there's really no good reason to ever do it instead of binding the event handlers programatically.

Point well made. Thanks.

The issue I'm facing is being able to provide the correct arguments, which will be dependent on what data is being pulled from the database. Originally I found it to be a lot easier to hardcode the arguments inside the HTML at the time the markup is being created via PHP. For example, if a client wants to query all account holders with a common denominator, then I want to display the results with a 'quick link' hardcoded that will enable them pull up that account holder's information by clicking on that link. However, I figured out a way to keep the logic separate from the HTML that won't require much code.

I don't believe I'll need to use AJAX. The way it's setup I'll only have one code block to edit if something goes awry.

I think it sounds easier now but in the long term, I suspect it will harm maintainability and readability.