FCC Sample project compliance?

FCC Sample project compliance?
0

#1

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!


#2

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


#3

Thank you for your answer