Thread: Blockquote Tab
View Single Post
Old 05-19-2017, 09:29 AM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,149
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JustinThought View Post
Okay, brace yourself(-ves) for a N00B question. All right, ready?

First off, Turtle, I also copied your code, and it solved a number of problems I had encountered. So thanks for sharing it.

But I like to know "why?". So I went out there to investigate, and every reference I could find states that the <blockquote> tag is specifically designed to...well, quote blocks of text. Being a curious sort, I did a little S&R on the epub containing your code, replacing "blockquote" with "div". And I couldn't see any difference in what it was doing--at least within Sigil.

So, I have to ask--is there any advantage to using one over the other? --not criticizing, just really want to know. Thanks in advance!
A Blockquote is just that: a predefined function. You can use it as-is and get the effect.

OTOH A Div is just a 'container'. You have to define what that container will do.
Code:
<div class="inabox">
<p> stuff</>
<p> stuff</>
<p> stuff</>
</div>
.inabox defines what the 'box' will look like (background color, border, padding), the <p> still does the rest of the work.

W3Schools is a great tutorial site
theducks is offline   Reply With Quote