HTML Quote
Quoting an article is very simple. All you need is two HTML quote tags between the quoted text. Beware that not all browsers will display them the same way. Most modern browsers will display the quotes by adding a left and right margin to the text. The HTML quote tags are <blockquote> and </blockquote>. You need to insert them before and after the quoted text.
Here's an example:
|
<html> <head> <title>HTML quote</title> </head> <body> <blockquote>This text is is a quote. It will have a left and right margin so your visitors will see the demarkation between it and the rest of your content</blockquote> </body> </html> |
Adding a source to the quote
To cite a source for the quoted text, you need to add cite="url" in the opening HTML quote tag. Your first tag would look something like <blockquote cite="http://www.computing4all.com">. Most browsers ignore the cite tag but the code exists. Because of that, it's a good idea to cite your source manually to your website if you quote someone else's work.
Double Quotes
Double quotes are a quote inside another quote. To use them, use the regular HTML quote tags for the first quote. For the "inside" quote, use <q> and </q>.
Here's a double quote example:
|
<html> <head> <title>HTML quote</title> </head> <body> <blockquote>This is the original quote. <q>This is the second quote inside the original one.</q> This is the rest of the original quote.</blockquote> </body> </html> |
| Back HTML Alignment Tag | Next HTML Code For Image |