October 22, 2024
Chicago 12, Melborne City, USA
HTML

Why does Youtube have elements inside of a element


I have been learning how to structure HTML documents and want to understand best practices. From what I have read, it has been stated that div elements cannot be declared inside of span elements. In the picture there is clearly a div inside of the span. Youtube search bar html

I tried to find out why Youtube would have such a reverse practice such as this where it is not recommended. Possibly someone can explain this to me.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video