Abbr Tag Example – HTML Syntax – Abbr Examples
Abbr Tag Example – HTML Syntax – Abbr Examples
Summary: – Illustrates the HTML syntax for the abbr tag.
Prerequistes:
- Install Visual Web Developer 2008
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:
- Use Visual Web Developer 2008
- 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.
- Add New folder named “BasicTags”
- Right-click project name in solution explorer;
- add new folder;
- name of folder could be: BasicTags
- Add HTML Page Named Abbr to BasicTags folder
- Right-click BasicTags folder;
- add new item;
- Select HTML Page
- HTML Page name could be Abbr
- Click on copy code in code below to copy code into HTML Page Abbr.htm
- Right-click on HTML page Abbr and select view 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> |
