Html compile functions