Splitting HTML into tags

I have started with trying to split the HTML into its tags, i am going
to have it as a tree structure
HTML Splitting

Made changes to how i am splitting the HTML but still have some bugs
HTML Splitting

Continued work on the html splitting