Last active
December 29, 2015 02:18
-
-
Save abdullahbutt/7599212 to your computer and use it in GitHub Desktop.
HTML <blockquote> Tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <h1>About WWF</h1> | |
| <p>Here is a quote from WWF's website:</p> | |
| <blockquote cite="http://www.worldwildlife.org/who/index.html"> | |
| For 50 years, WWF has been protecting the future of nature. The world’s leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. | |
| </blockquote> | |
| </body> | |
| </html> | |
| <!-- | |
| http://www.w3schools.com/tags/tag_blockquote.asp | |
| Definition and Usage | |
| The <blockquote> tag specifies a section that is quoted from another source. | |
| Browsers usually indent <blockquote> elements. | |
| Tips and Notes | |
| Tip: Use <q> for inline (short) quotations. | |
| Differences Between HTML 4.01 and HTML5 | |
| In HTML 4.01, the <blockquote> tag defines a long quotation. | |
| In HTML5, the <blockquote> tag specifies a section that is quoted from another source. | |
| Differences Between HTML and XHTML | |
| Note: To validate a <blockquote> element as XHTML, it must contain only other block-level elements, like this: | |
| <blockquote> | |
| <p>Here is a long quotation here is a long quotation.</p> | |
| </blockquote> | |
| Attributes | |
| Attribute Value Description | |
| cite URL Specifies the source of the quotation | |
| Global Attributes | |
| The <blockquote> tag also supports the Global Attributes in HTML. | |
| Event Attributes | |
| The <blockquote> tag also supports the Event Attributes in HTML. | |
| !--> | |
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <p>WWF's goal is to: | |
| <q>Build a future where people live in harmony with nature.</q> | |
| We hope they succeed.</p> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment