08-21-2019, 03:44 PM | #1 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Paperwhite
|
<Blockquote> problems
I am trying to use blockquote, which seems to be allowed, but I am getting an error around the closing tag.
Example code: Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Bacon Addicts Anonymous</title> <link href="centercut-style.css" rel="stylesheet" type="text/css"/> </head> <body> <h1 class="title">Bacon Addicts Anonymous</h1> <h2 class="subtitle">Pro/Con: Must all bacon be pork?</h2> <h3 class="subheading">Pro: Real bacon comes from pigs!</h3> <p class="primary2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> <blockquote>Cras ornare massa odio.</blockquote> </body> </html> Quote:
I know that there's ways to do what I want without using blockquote, but it bugs me that I can't figure out what's wrong. It seems to have a problem with the closing tag itself. The first error looks like it think it's text outside of a tag, and the second looks like the tag's not even there. What am I missing here? -- EDIT: Epub, of course, on Calibre. Last edited by codys; 08-21-2019 at 03:44 PM. Reason: Details |
|
08-21-2019, 04:41 PM | #2 |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
You can’t have bare text inside of the blockquote. Use something like:
<blockquote><p>Cras ornare massa odio.</p></blockquote> |
Advert | |
|
08-22-2019, 03:15 AM | #3 |
Banned
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Hi,
to be honest i never used blockquote cause it doesnt make sense to me. I prefer divs as a container or adding classes to the paragrafs if needed. Blockquota just adds some indentation/margins/paddings around some other elements an d you never know what the target renderer will do with it. |
08-22-2019, 09:31 AM | #4 | ||
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Paperwhite
|
Quote:
Quote:
|
||
08-22-2019, 12:35 PM | #5 |
A Hairy Wizard
Posts: 3,099
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
It isn't that there are 'better ways'...just different.
The use of <blockquote> is more semantically correct when creating a block quote, whereas a <div> is a simple division, and classed paragraphs are just formatting the paragraph. Yes, you can make them look the same, but using a blockquote when you have a long quote (usually of multiple paragraphs) sets up your document properly. P.S. You can style blockquotes to look any way you want with CSS and the target renderer will treat it just as well/badly as it would treat any other CSS. example: Spoiler:
Last edited by Turtle91; 08-22-2019 at 01:28 PM. |
Advert | |
|
08-22-2019, 12:55 PM | #6 |
Banned
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Nonsens deleted
|
08-22-2019, 04:14 PM | #7 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
Quote:
It's just like you marking <h1> for headings instead of <div class="heading">... it's not "just bigger bold font". And if you follow standards, everyone is better off because of higher-level functionality. Here's a few simple examples I could think of off the top of my head:
Just like marking <h1-h6>, you can then easily generate TOCs, or have a floating TOC at the side. Using standard tags allows much more robust handling across all types of use-cases (even many future ones). Last edited by Tex2002ans; 08-22-2019 at 05:30 PM. |
|||
08-22-2019, 06:48 PM | #8 | |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blockquote Tab | Cyberseeker | Sigil | 10 | 05-19-2017 11:26 AM |
<blockquote> help, please | phossler | Sigil | 31 | 06-11-2013 09:28 PM |
EPUB to MOBI blockquote problems | GOGGS75 | Conversion | 6 | 07-22-2012 09:45 AM |
blockquote over ride | dicknskip | Sigil | 3 | 03-21-2011 04:44 PM |
FBReader blockquote | minigrrl | PocketBook | 3 | 03-09-2010 08:09 PM |