DLFExample The following is a tagged sample program. HTMLabbrtag DLFExample The following is a tagged sample program. HTMLabbrtag

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

How to mark abbreviations or acronyms in HTML?

王林
王林forward
2023-08-25 14:09:09967browse

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>

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>

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>

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>

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!

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