![]() |
#61 |
Connoisseur
![]() Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
|
|
![]() |
![]() |
![]() |
#62 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
![]() |
![]() |
![]() |
#63 |
Connoisseur
![]() Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
|
Divs are a good fit for dividing sections of an Xhtml document. Heading tags are a good fit for producing headings.
Last edited by awx; 04-28-2010 at 10:01 AM. |
![]() |
![]() |
![]() |
#64 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
#65 | ||
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Quote:
That's what the heading tags should be used for since that's what they were created for. Even if you further separate chapters with div tags, you will still have such a heading text (in a heading element or not) at the beginning. So why not use that? But your idea of wrapping every chapter in a special div... I have nothing against that. It adds more semantic information, so I say go for it. |
||
![]() |
![]() |
![]() |
#66 |
Connoisseur
![]() Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
|
And that's what I'm saying is a bad idea and not a good fit. It's making assumptions about structure based on presentation. That method might work sometimes, even most of the time, but it's inherently flawed.
|
![]() |
![]() |
![]() |
#67 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Actually heading tags are semantic, not presentational. They don't imply a particular mode of presentation, unlike say the <b> and <i> tags. ANd given that they automatically support levels as opposed to divs I'd argue taht they are more semantic than divs
|
![]() |
![]() |
![]() |
#68 |
Connoisseur
![]() Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
|
OK, but they still don't imply chapter breaks.
|
![]() |
![]() |
![]() |
#69 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
They imply the start of a chapter, or section, or subsection... The problem is there's nothing to imply the end of it (other than the start of the next). It's the same thing with the LaTeX \chapter, \section, etc. Using the <hX> tags when there is no part/chapter/section to start is misusing them.
Wrapping the whole chapter in a <div> can be useful, but in addition to using <h2> (say) for the heading, either inside or outside the <div>. |
![]() |
![]() |
![]() |
#70 | |
Connoisseur
![]() Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
|
Quote:
I agree that authors should use them at the top of pages where appropriate but that's really up to them. |
|
![]() |
![]() |
![]() |
#71 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#72 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
![]() |
![]() |
![]() |
#73 |
Connoisseur
![]() Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
|
I haven't seen anything that agrees with that. There is nothing in the Ncx or Opf files that in any way relates to the h tags.
|
![]() |
![]() |
![]() |
#74 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
where it says that: A heading element briefly describes the topic of the section it introduces. Heading information may be used by user agents, for example, to construct a table of contents for a document automatically. That is pretty clear and it has never changed. You can do what you want, of course, but to say that something is not suitable when it is exactly what it is designed to do, seems like you think you have to redesign the whole thing from scratch. Dale |
|
![]() |
![]() |
![]() |
#75 | |
Connoisseur
![]() Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
|
Quote:
"The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents." Followed by: "Suppose, for example, that we wanted to generate an HTML document based on a database of client information. Since HTML does not include elements that identify objects such as "client", "telephone number", "email address", etc., we use DIV and SPAN to achieve the desired structural and presentational effects." This is definitely what I'm after. Last edited by awx; 04-28-2010 at 08:12 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc | kovidgoyal | Calibre | 68 | 05-30-2011 08:46 PM |
any open source ebook reader apps? | kennyc | Android Developer's Corner | 15 | 12-23-2010 01:38 PM |
EPUB generated by ebook-convert does not open gracefully on windows | Heritage History | Calibre | 4 | 07-08-2010 01:37 PM |
OpenInkpot (open source ebook firmware) | davidw89 | Sony Reader | 9 | 11-15-2008 09:59 AM |
Proposal for an open source multi-format ebook authoring tool | Jon Noring | News | 15 | 09-12-2008 12:17 PM |