I am not sure OverLeaf creates structured files. TeX is 35 years old, invented before structure was a "thing". LaTeX made TeX a bit more structured. At the risk of advertising my age, my review of new thing called "LaTeX" in 1987