These two elements are used to define a quoted text.
<Blockquote> is used for longer quotations, block level content, while <q> is used for inline, shorter quotes.
Syntax:
<blockquote></blockquote>, <q></q>
Attributes:
- id, class (document-wide identifiers)
- lang (language information), dir (text direction)
- title (element title)
- style (inline style information)
- cite (citation URI)
- onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)
Example
HTML quotation elements:
x
<html>
<head>
<title>HTML tutorial</title>
</head>
<body>
<blockquote>
Blockquote element should wrap up a larger size quotes, that often stretch through multiple lines of text.
They are used, as said, for <q>inline content quotation</q> to visualize <q>inner or nested text</q>.
</blockquote>
</body>
</html>
Comments
No comments have been made yet.
Please login to leave a comment. Login now