Home >Web Front-end >HTML Tutorial >How to use quotes in HTML?

How to use quotes in HTML?

WBOY
WBOYforward
2023-09-17 15:09:031066browse

How to use quotes in HTML?

We use the tag to add short quotes in the HTML. If we want to quote multiple lines, use

tags.

We can also use the cite attribute within the

tag to indicate the source of the citation in the form of a URL.

grammar

The following is the syntax of the tag.

<q>The content to be quoted</q>

Example

The following is a sample program for the tag.

<!DOCTYPE html>
<html>
<head>
</head>
<body>
   <p>DLF stands for <q>Delhi Land and Finance</q></p>
   <p>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p>
</body>
</html>

Example

In the example below, we are using the

tag on specific text within the tag.
<!DOCTYPE html>
<html>
<head>
   <title>HTML u tag</title>
</head>
<body>
   <h1>Welcome to <q> INDIA </q> Kids.</h1>
</body>
</html>

Use block quote tags

The

tag in HTML is used to display long quotes.

grammar

The following is the syntax of the

tag.
<blockquote>The multiple line content to be quoted </blockquote>

Example

The following is a sample program for the

tag.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
   <p>DLF stands for Delhi Land and Finance</p>
   <blockquote>Delhi Land and Finance is one of the largest commercial real estate developer in India.</blockquote>
</body>
</html>

The above is the detailed content of How to use quotes in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete