|
|
The Definition and UsageThe Browsers normally insert quotation marks around the quotation. Tip: Use <blockquote> for long quotations. Browser Support
Attributes
Global AttributesThe Event AttributesThe |
It marks up a short quotation.
<p>WWF's goal is to:
<q>Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>
See the Example.
<!DOCTYPE html>
<html>
<head>
<style>
q {
color: gray;
font-style: italic;
}
</style>
</head>
<body>
<h1>The q element + CSS</h1>
<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>
Most browsers will display the <q> element with the following default values.
<style>
q {
display: inline;
}
q:before {
content: open-quote;
}
q:after {
content: close-quote;
}
</style>
The cite attribute specifies the source URL of a quote.

Note: The cite attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
<q cite="URL">
| Value | Description |
|---|---|
| URL | Specifies the source URL of the quote.
Possible values:
|
It specify the source URL of a quote.
<p>WWF's goal is to:
<q cite="http://www.wwf.org">
Build a future where people live in harmony with nature.</q>
We hope they succeed.
</p>
| html q tag |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |
Read Articlehttps://develop.horje.com/learn/1434/reference