Assignment6 - Html renderer submission

Given the number of times you've re-typed this same three lines of code, perhaps a support method in the element class that was responsible for putting attributes into a tag might be in order?