finished html generation

html generation is complete and it can be used for both <ul> and <div>
type lists.