function that prints out all html elements