![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 447
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
<div> instead of <p>?
This may be recency bias, but i feel like I've been seeing more and more epubs that use <div> to enclose basic text instead of <p>. That is, narry a <p> to be found throughout the whole book.
To my untrained eye this seems... kinda puzzling. Is there a good reason for this kind of substitution? Does <p> have outlier cases where it fails and <div> doesn't? |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Probably generated with some software that creates only <div>s and <span>s?
|
![]() |
![]() |
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Replacing p with div is just horrible from a semantic meaning basis. Code like that is broken imho, and as Jellby stated ... probably machine generated.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using <p> instead of <div> | goderic | Sigil | 4 | 09-25-2024 11:12 AM |
A tag that's new to me <div/> | DyckBook | Editor | 7 | 11-13-2021 02:30 AM |
<div> problem | alheva | Marvin | 30 | 08-23-2016 09:13 PM |
duplicate div id's | thiefwriter | ePub | 6 | 09-17-2011 11:00 AM |
Center a div | marcelo2605 | ePub | 4 | 05-13-2011 07:39 AM |