Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

3. Building Blocks: Web Page Constructio... > The real truth behind the <q> and <b...

The real truth behind the <q> and <blockquote> mystery

Okay, it’s time to stop the charade: <blockquote> and <q> are actually different types of elements. The <blockquote> element is a block element and the <q> element is an inline element. What’s the difference? Block elements are always displayed as if they have a linebreak before and after them, while inline elements appear “in line” within the flow of the text in your page.

image with no caption

Block: stands on its own

image with no caption

Inline: goes with the flow

image with no caption

Remember: block elements stand on their own; inline elements go with the flow.

There are no Dumb Questions

Q:

Q: I think I know what a linebreak is; it’s like hitting the carriage return on a typewriter or the return key on a computer keyboard. Right?


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial