generated code now passes HTML validation