Formater: write attributes and openning tags