Quote:
Originally Posted by JustinThought
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