FCC Sample project compliance?

Hi, I’m doing Responsive Web Design Certification from the Curriculum. Currently building the last project, a Personal Portfolio Webpage. I note that in your example your “a” elements contain “div” elements. I’m confused, as this is invalid HTML according to MDN (https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements):

“inline elements may contain only data and other inline elements. You can’t put block elements inside inline elements”

Of course practical coding sometimes requires hacks, but I was thinking perhaps example projects should comply to standards? Just an idea. Otherwise the curriculum has been great help, and great material, thanks!

You can wrap any element in an anchor tag, it’s part of the HTML spec.

Thank you for your answer