This looks very complicated to me. HTML and CSS have separate structures because they do different things. It's like roads and the lines on a road.
I took a look at the examples and I'm sure that this style of coding would solve some problems. But how many would it create ?