Div not working in WordPress post

End-of-line has no meaning in HTML, except if it separates text,
where it is taken as one blank.

If WordPress is eliminating blank lines, it’s only optimizing your code.

To add a blank line, use the
HTML br Tag:

<br>

Or the more syntactically correct (but equivalent):

<br/>