Nested HTML 'blockquote' Elements


Can XHTML "blockquote" Elements Be Nested?



Yes. Blockquote elements can be directly nested. This allows you to include one quote inside another quote. Below is a good example of nested blockquote elements:

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  <title>Nested BLOCKQUOTE Elements</title>

 <p>William Shakespeare was an English poet and playwright
 widely regarded as the greatest writer of the English 
 language. One of his best-known and most quoted plays is:</p>
 <p>Hamlet - The revenge of Prince Hamlet, 
 whose father, the late King of Denmark, victor over 
 the Polish army, died suddenly while Hamlet was away 
 from home at Wittenberg University. The most famous
 quote of the play:</p>

 "To be or not to be, that is the question."


If you save the above document as nest_quotes.html, and view it with Internet Explorer, you will see that nest blockquote elements work nicely giving double extra margins to the inner blockquote element as shown below:
HTML blockquote Element - Nested Quote Blocks


HTML Body Tag and Block Level Tags

⇒⇒HTML Tutorials

2017-02-20, 176👍, 0💬