Focus state question

Hey everyone. Got a quick question about accessibility.

Let’s say I want to style a div and use it as a button. If I stylize the div’s focus state, is that the same as giving it tabindex=“0”, or do I need to specify this in the settings?

Thank you so much.