Earlier quoted context omitted.
You mean by piling up , , CSS and JavaScript?
Yes, why not? That's no different than piling objects in a GUI widget library to build a tree structure for the layout of a window; except that it has a human-readable string representation.
Also there is big performance impact, where piling up divs with CCS requires the right incantations, some browser version specific, for hardware acceleration to kick in.
And in any case, it is impossible to fully replicate the UX of the host platform.