What's the best practice: divs or custom html tags?

I’m doing the Full Stack development course and began working on my first challenge project. While working on my project, I wondered if it was possible to use custom HTML tags and came across this blog: https://www.bridgetownrb.com/showcase/custom-html-elements-everywhere-for-page-layout/

This leads me to wonder what the best practice is: should I be using divs/spans or just custom html tags? Or is it situational?

1 Like