This is unreadable without scrolling.
Can you output each element on a new line as per https://qa.test.moneyadviceservice.org.uk/en/styleguide/html