Home > Web Front-end > HTML Tutorial > How to mark abbreviations or acronyms in HTML?

How to mark abbreviations or acronyms in HTML?

王林
Release: 2023-08-25 14:09:09
forward
935 people have browsed it

How to mark abbreviations or acronyms in HTML?

We use the abbreviated version to represent a sequence of letters.

HTML Tags used to define abbreviations or acronyms, such as "HTML", "CSS", "Mr.", etc.

grammar

The following is the syntax of the tag.

<abbr title="Delhi Land and Finance">DLF</abbr>
Copy after login

Example

The following is a sample program marked .

<!DOCTYPE html>
<html>
<head>
   <title>HTML abbr tag</title>
</head>
<body>
   <h1>Timings</h1>
   <p>
      We follow <abbr title="Artificial intelligence">AI</abbr> for our webinars.
   </p>
</body>
</html>
Copy after login

Example

The following is another example program marked with .

<!DOCTYPE html>
<html>
<head>
</head>
<body>
   <p>DLF stands for <abbr title="Delhi Land and Finance">DLF</abbr></p>
   <p>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p>
</body>
</html>
Copy after login

Example

The following is another example program marked with .

<!DOCTYPE html>
<html>
<head>
   <title>HTML abbr tag</title>
</head>
<body>
   <abbr title = "Ante Meridiem">AM</abbr> <br>
   <abbr title = "Post Meridiem">PM</abbr> <br>
   <abbr title = "Indian Standarad Time">IST</abbr>
</body>
</html>
Copy after login

When we place the mouse cursor on the specified text and hold it down, the abbreviation of the text will be displayed.

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

Related labels:
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