728x90
SMALL
#HTML
#q, blockquote/quote
q, blockquote
Tags that indicate a quote are q and blockquote. q is an inline element and blockquote is a block element.
Grammar
<q cite="xxx">...</q>
<blockquote cite="xxx">...</blockquote>
The source of the citation is represented by the cite attribute. Entering the cite attribute is optional and not visible in web browsers.
example 1
The basic form of the q element is to enclose the quoted phrase in double quotes.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
</head>
<body>
<p>
Lorem ipsum dolor sit amet
<q cite="https://www.codingfactory.net/">consectetur adipiscing</q>
elit.
</p>
</body>
</html>
example 2
The basic shape of the blockquote element is that it has white space on both sides.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
</head>
<body>
<p>blockquote</p>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nec mollis nulla.</p>
</blockquote>
</body>
</html>
728x90
LIST
'HTML' 카테고리의 다른 글
[HTML] HTML / pre / tag to output as you type (0) | 2022.08.12 |
---|---|
[HTML] HTML/em, strong/highlight text, important text (0) | 2022.08.12 |
[HTML] HTML/ol, ul, dl/sorted list, unsorted list, definition list (0) | 2022.08.04 |
[HTML] HTML/br/line break tag (0) | 2022.08.04 |
[HTML] HTML/h1, h2, h3, h4, h5, h6, p/ title and paragraph (0) | 2022.08.04 |