formatting html5 for validation