|
|
|||
How the Code for Disambiguation of an Acronym Works |
|||
| Acronym Finder | Acronyms | Terms | Keywords | About | Usage | Links |
|
Get information on your favorite TV Shows at
Printer-friendly PDF* format: |
How the Code for Disambiguation of an Acronym WorksHow the plain HTML links workThe easy way to create HTML code indicating the acronym meaning is to simply include the acronym in an HTML <a> tag and an abbreviation tag (not an acronym-tag):
<a href="http://www.Acronyms.net/terms/t/Three-Letter-Acronym/" title="Three Letter Acronym" onclick="javascript:if (confirm('TLA stands for Three Letter Acronym')) return false;">
This is the recommended code for both HTML 4 browsers and HTML 5 browsers. Some browsers, most notably IE, do not activate help when the title attribute is coded on the <abbr> tag, but they do work as expected for titles on the <a> tag. The <abbr> tag inherits its title attribute from the parent <a> tag. When the acronym is followed by a definition or description, how the title attribute is coded depends on whether the description following the acronym or initialism is a definition of what the acronym represents or is just the expanded meaning of the acronym. When creating HTML code for the definition of what the acronym represents the title attribute on the HTML <abbr> tag can be used for both the expanded meaning of the acronym and to identify the term that is being defined by the <dfn> tag:
<p><a>A <a xlink:type="extended" href="http://www.Acronyms.net/terms/t/Three-Letter-Acronym/" title="TLA" onclick="javascript:if (confirm('TLA stands for Three Letter Acronym')) return false;">
Note that for proper association of the <dfn> tag with the attributes of the <abbr> tag, the HTML 5 specification requires that the <dfn> tag must contain nothing other than the <abbr> tag. There can be no other element nodes (HTML tags) or text nodes in its content. See the HTML 5 <dfn> tag. If you are creating HTML code that simply expands the acronym then indicate that it is the acronymn which is being defined using an HTML <dfn> tag with a title attribute around the <abbr> tag and follow the HTML for the hypertext link with the acronym definition:
<p><a>When we use the acronym <a href="http://www.Acronyms.net/terms/r/Really-Simple-Syndication/" title="Really Simple Syndication" onclick="javascript:if (confirm('RSS stands for Really Simple Syndication')) return false;">
Advantages
Disadvantages
How the XLink simple links workThe code for an XLink simple link for the acronym
TLA
is shown below.
In
HTML
, the
<a href="http://www.Acronyms.net/terms/t/Three-Letter-Acronym/" title="Three Letter Acronym"
A simple link associates a local resource, which is the content of the element,
with a remote resource, specified by the
<a xlink:type="extended" href="http://www.Acronyms.net/terms/t/Three-Letter-Acronym/" title="Three Letter Acronym">
Advantages
Disadvantages
How the XLink extended links workExtended links allow references to local resources in addition to remote ones. For example, the pronunciation of an acronym can be included as a local resource (see Pronunciation of Acronyms).
<a xlink:type="extended" href="http://www.Acronyms.net/terms/t/Three-Letter-Acronym/" title="Three Letter Acronym">
This example includes three local resource and three remote ones.
The
Advantages
How the embedded RDF metadata worksWhen possible, the XLink syntax is preferred to RDF due to its flexibility in assigning types to elements in markup code. The RDF syntax, which requires node elements and property elements to be striped, is included for use where RDF data is required. Advantages
Disadvantages
Last updated Saturday February 21, 2009 |
You are currently viewing this page in HTML 5 XML* format (* see Clicklets for more infomation). This document is also available in HTML 5 Style Sheet*XML* HTML 5 non-XML*XHTML Style Sheet* XHTML* HTML 4* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.
Copyright © 2009 Acronyms .net. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.
DISCLAIMER: All information, links, forms, applications and other items on this site or obtained from it are provided AS IS, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.