blockquote tag
cite tag
pre tag
TAG: q
<q> ... </q>
The
q
tag takes the selected block of text and displays it as a quote which is enclosed by a pair of double quotes. Unlike the
blockquote
tag, the
q
quote is not preceded or followed by paragraph breaks. So the quote remains inline. You may still need to use other HTML tags to effect the textual display and appearance that you desire.
It is recommended that you use the
blockquote
tag for long citations and the
cite
tag for short citations.
The separate closing tag is mandatory.
Attributes and Events
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
cite
The
cite
attribute is used to provide a reference to the URL that is the source of the quote.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="eng">
<head>
<title>DevGuru XHTML q Tag Example</title>
</head>
<body>
<
q
>His enthusiasm was only exceeded by his lack of enthusiasm!<
/q
>
</body>
</html>
Output:
His enthusiasm was only exceeded by his lack of enthusiasm!
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information