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

How to use quotes in HTML?

WBOY
Release: 2023-09-17 15:09:03
forward
1085 people have browsed it

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template