Span are inline element, block element like
can not be a child to inline element, that's the reason for the error.