<blockquote> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:blockquote

Introduction

The blockquote element marks a block of content that is quoted from another source.

This element is similar to the q element, but is generally applied to larger amounts of quoted content.

The blockquote Element summary

Item Value
Element blockquote
Local Attributes cite
Tag StyleStart and end tag required
New in HTML5 No
Changes in HTML5 None

Style Convention

blockquote {
   display: block;
   margin-before: 1em;
   margin-after: 1em;
   margin-start: 40px;
   margin-end: 40px;
}

The cite attribute can be used to supply a URL for the original source of the content.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <blockquote cite="http://en.wikipedia.org/wiki/CSS">
          CSS is cool.<!-- www  .  ja v a  2 s . c  o  m-->
      </blockquote>  
   </body>
</html>

Related Tutorials