How we work on the web is constantly changing. "Best practice" means something entirely different every 5 years or so (depending on who you ask 😉).
@stegrainer has written a wonderful post on how things have shifted over the decades: "The Wax and Wane of the Web" 💯
https://alistapart.com/article/the-wax-and-the-wane-of-the-web/