Abbr Tag Example – HTML Syntax – Abbr Examples

Abbr Tag Example – HTML Syntax – Abbr Examples

Summary: – Illustrates the for the .
Prerequistes:

Syntax: abbr – Abbr indicates that the enclosed text is an abbreviation. This has no effect on how the text is displayed, but you can use the tag as an element selector in a style sheet to make abbreviations have a certain style.

Restrictions: None

Notes:

  • You can build your own library of syntax examples by using same web site over and over and just add new files to it.

Instructions:

  1. Use Visual Web Developer 2008
  2. Create new web site;
    • Click File/New Web Site
    • Select ASP.NET Website Template
    • Select C-Sharp for Language
    • name of Web Site could be HTML_Syntax.
  3. Add New folder named “BasicTags”
    • Right-click project name in solution explorer;
    • add new folder;
    • name of folder could be: BasicTags
  4. Add HTML Page Named Abbr to BasicTags folder
    • Right-click BasicTags folder;
    • add new item;
    • Select HTML Page
    • HTML Page name could be Abbr
  5. Click on copy code in code below to copy code into HTML Page Abbr.htm
  6. Right-click on HTML page Abbr and select view in browser
  7. View Example In Browser

     
    < !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
      <meta content="text/html; charset=ISO-8859-1"
     http-equiv="content-type"/>
      <title>Abbr Tag Example</title>
    <style type="text/css">
    ABBR {
    background: gray;
    color: white;
    }
      </style>
    </head>
    <body>
    <!--
    Abbr indicates that the enclosed text is an abbreviation. 
    This has no effect on how the text is displayed, 
    but you can use the tag as an element selector in a style sheet 
    to make abbreviations have a certain style.
    -->
    <abbr title="Tennessee">TN</abbr>
    </body>
    </html>