Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2025, 06:11 PM   #1
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Question Header tags in html

All that talk and EPUB format still has no means to make a proper heading in the end of 2025.
Sarmat89 is offline   Reply With Quote
Old 09-04-2025, 06:31 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,250
Karma: 171291590
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sarmat89 View Post
All that talk and EPUB format still has no means to make a proper heading in the end of 2025.
What exactly do you mean by a "proper heading"?
DNSB is offline   Reply With Quote
Old 09-04-2025, 06:58 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,734
Karma: 206739468
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DNSB View Post
What exactly do you mean by a "proper heading"?
I don't recommend engaging. Their answer will only leave you with more questions.
DiapDealer is offline   Reply With Quote
Old 09-06-2025, 12:09 AM   #4
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by DNSB View Post
What exactly do you mean by a "proper heading"?
A heading like you see in book, or Latex. The HTML 'h' elements were intended for manuals, where the headings are numbered and consist of a single line.
Sarmat89 is offline   Reply With Quote
Old 09-06-2025, 05:18 AM   #5
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,167
Karma: 315558334
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Sarmat89 View Post
A heading like you see in book, or Latex. The HTML 'h' elements were intended for manuals, where the headings are numbered and consist of a single line.
Umm.... no.

1. <hn> tags do not force text onto a single line
2. <hn> tags do not imply any kind of numbering on the headers

<hn> tags are just like paragraph tags really, except that most (all?) renderers choose to have them in a different default format to <p>
pdurrant is offline   Reply With Quote
Old 09-06-2025, 06:25 AM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,487
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Multiline headers in Word/LO Writer are trivial to do and automatically translate to
<h2 class="docx-heading-style">A heading<br />
Heading continued</h2>
.

Headings were not for manuals. By default they are bolded, but the CSS of docx-heading-style can over-ride that if it uses an already bold/heavy font.

In many applications Shift Enter creates a soft carriage return which translated to <br />
Typing Enter alone ends a paragraph or heading and starts a new one in the default style or current style or the style defined to follow a style.

A soft carriage return never starts a new style/paragraph.
Quoth is offline   Reply With Quote
Old 09-06-2025, 09:48 AM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,852
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Sarmat89 View Post
A heading like you see in book, or Latex. The HTML 'h' elements were intended for manuals, where the headings are numbered and consist of a single line.


You seem to have a very limited idea of what's possible in ePub. But could you post a screenshot or picture of a heading that you claim can't be duplicated in ePub?
RbnJrg is offline   Reply With Quote
Old Yesterday, 03:03 AM   #8
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by pdurrant View Post
<hn> tags are just like paragraph tags really
That's the problem; the headings are not paragraphs. A common header has from two to 4 parts. Only in manuals they write the header and the number in a single paragraph.

There is no provision in HTML for headers consisting of multiple parts.

Quote:
Originally Posted by Quoth View Post
Multiline headers in Word/LO Writer are trivial to do
...
Headings were not for manuals.
They are from the original HTML specification, which was made for man pages. Also, only American-style technical manuals can be adequately formatted with <h> tags.
Sarmat89 is offline   Reply With Quote
Old Yesterday, 08:36 AM   #9
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,487
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Sarmat89 View Post
That's the problem; the headings are not paragraphs. A common header has from two to 4 parts. Only in manuals they write the header and the number in a single paragraph.

There is no provision in HTML for headers consisting of multiple parts.


They are from the original HTML specification, which was made for man pages. Also, only American-style technical manuals can be adequately formatted with <h> tags.
Sorry, but this is nonsense.

Headings work just like paragraphs with <hn (where n is 1 to 10, but ebooks are best limited to any 3 levels) instead of <p.

Headers can have as many parts as you want.

Original HTML was not for "man" pages. Original HTML spec was about 1998 or 1999 and websites using it from about 1992. It had no CSS. The Mobi format was already obsolete in 2015 when Amazon bought Mobipocket and more so on first Kindle in 2017. It uses HTML3 and there is no difficultly simulating any paper book multi-line headings.

"American style manuals"? HTML wasn't even an American design. It was by a British guy in Switzerland.

Edit:
In fact now with CSS and HTML you can interchange h and p tags and the appearance is identical if font-weight is specified. The only differences are automatic ToC building using <h tags and semantic (maybe some screen readers).

Last edited by Quoth; Yesterday at 08:40 AM.
Quoth is offline   Reply With Quote
Old Yesterday, 09:15 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,143
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Quoth View Post
Edit:
In fact now with CSS and HTML you can interchange h and p tags and the appearance is identical if font-weight is specified. The only differences are automatic ToC building using <h tags and semantic (maybe some screen readers).
But in two of yhe most popular ePub editors, h tags are used for automatic ToC generation. a p will not work for that.
JSWolf is offline   Reply With Quote
Old Yesterday, 10:03 AM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,734
Karma: 206739468
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
What html header tags might have been originally created to do could not be more irrelevant to what can be accomplished with them today. Silly Putty was created to clean wallpaper.
DiapDealer is offline   Reply With Quote
Old Yesterday, 10:12 AM   #12
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 480
Karma: 4113712
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
Quote:
Originally Posted by DiapDealer View Post
Silly Putty was created to clean wallpaper.

Actually, it was Play-Doh,
slm is offline   Reply With Quote
Old Yesterday, 10:44 AM   #13
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 2268308
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by Quoth View Post
In fact now with CSS and HTML you can interchange h and p tags and the appearance is identical
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.
Sarmat89 is offline   Reply With Quote
Old Yesterday, 10:58 AM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,932
Karma: 6361444
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Sarmat89 View Post
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.
It seems you do not understand CSS or html. So why are you attempting to post this here and derail this thread?

Moderators, perhaps we can move this discussion of html, css, and headers to its own thread? It is not relevant to this thread's topic.
KevinH is online now   Reply With Quote
Old Yesterday, 12:19 PM   #15
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,487
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Sarmat89 View Post
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)?
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to see all HTML tags used in an ebook? Urnoev Editor 16 04-13-2025 08:55 AM
Detecting tags in header gonzalo_diaz Conversion 2 05-22-2023 09:22 PM
Abby Finereader 12 saving only 1st header or footer in HTML? nsyst Workshop 0 11-03-2014 12:50 AM
HTML input plugin stripping text within toc tags in child html file nimblebooks Conversion 3 02-21-2012 03:24 PM
Problem with html -> Mobi conversion - html tags visible. khromov Calibre 9 08-06-2011 11:25 AM


All times are GMT -4. The time now is 06:10 PM.


MobileRead.com is a privately owned, operated and funded community.