html and css generation by functions