The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Blockquote surrounded by paragraph
nightoul
post Mar 19 2020, 04:02 AM
Post #1





Group: Members
Posts: 3
Joined: 19-March 20
Member No.: 27,239



How would you resolve the following? I want to put up an essay where there is a blockquote surrounded by a normal paragraph. This is how it looks in Word:

https://imgur.com/lBWGa0s

However, the very thing that I need in this situation, that is, to nest a blockquote inside a paragraph, is not allowed. I understand that it's not logical to nest a paragraph inside a paragraph, but why not a blockquote?
How would you resolve this? Would you nest a blockquote inside a section instead of a paragraph?
Thank you!

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 19 2020, 07:13 AM
Post #2


.
********

Group: WDG Moderators
Posts: 8,355
Joined: 10-August 06
Member No.: 7



QUOTE(nightoul @ Mar 19 2020, 10:02 AM) *

I understand that it's not logical to nest a paragraph inside a paragraph, but why not a blockquote?

My guess is that it's because the BLOCKQUOTE element itself may contain P elements.

QUOTE
How would you resolve this? Would you nest a blockquote inside a section instead of a paragraph?

The last example at https://www.w3.org/TR/2014/REC-html5-201410...ckquote-element suggests ending the P element when the BLOCKQUOTE begins, and the begin a new P after:

CODE
<p>He began his list of "lessons" with the following:</p>
<blockquote>One should never assume that his side of
the issue will be recognized, let alone that it will
be conceded to have merits.</blockquote>
<p>He continued with a number of similar points, ending with:</p>
<blockquote>Finally, one should be prepared for the threat
of breakdown in negotiations at any given moment and not
be cowed by the possibility.</blockquote>
<p>We shall now discuss these points...


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 19 2020, 07:36 AM
Post #3


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,645
Joined: 9-August 06
Member No.: 6



Also, from the context and purely linguistical, I don't think all that text should be one para anyway. Isn't it pretty natural and logical that the explanation after the quote is a new paragraph?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
nightoul
post Mar 19 2020, 08:00 AM
Post #4





Group: Members
Posts: 3
Joined: 19-March 20
Member No.: 27,239



QUOTE(pandy @ Mar 19 2020, 07:36 AM) *

Also, from the context and purely linguistical, I dont' think all that text should be one para. Isn't it pretty natural and logical that the explanation after the quote is a new paragraph?


They taught us at the faculty not to make the "explaining paragraph" a new paragraph biggrin.gif But yes, why not just make it a new para. Is there a way afterwards to add an expection to only this one paragraph when I will indent all of the paragraphs with CSS?
Sorry if it's easy, I'm just starting with HTML.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 19 2020, 12:05 PM
Post #5


.
********

Group: WDG Moderators
Posts: 8,355
Joined: 10-August 06
Member No.: 7



Did the teacher explicitly require BLOCKQUOTE for the quotation? Another idea might be to use the inline Q element in one large paragraph, then style the Q with CSS to look like a block quote. Not sure if the length of your quoted text warrants a Q or a BLOCKQUOTE though.

https://html.spec.whatwg.org/multipage/text...l#the-q-element
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 9th April 2020 - 05:57 PM