Quote:
	
	
		
			
				
					Originally Posted by  Sarmat89
					 
				 
				That's what I'm talking about: It is 2025, but you still have to build stupid CSS rules and write several paragraphs and ton of attributes manually just to make a simple chapter heading and make it to the TOC automatically. That's ridiculous. 
			
		 | 
	
	
 CSS replaces inline styles. That works on HTML3 without CSS. It's much easier to use and edit CSS as the multiple Style strings need repeat on each instance  and CSS replaces three to eight styles with one sensibly named class. The docx styles from LO Writer or MS Word usually map 1:1 to CSS classes for epub but have to be styles on mobi as it's HTML3. Thankfully old mobi is nearl gone now.
There are many ways to automatically do the ToC and at least 2 work with "headings" done using 
<p tags, though sematically that's wrong, even though it looks perfect.
You don't have to build anything, unless for some mad reason you are writing an entire novel directly in HTML. I've not done even websites that way for nearly 30 years.  I do sometimes edit epubs or web content, but I'd not dream of writing them from scratch.
Do you use "Styles" in MS Word / LO Writer (=CSS), or use direct formatting (= HTML3 styles)?