Created HTML for posts and sending posts to the server