mozilla

Revision 141514 of The tag microformat

  • Revision slug: The_tag_microformat
  • Revision title: The tag microformat
  • Revision id: 141514
  • Created:
  • Creator: Dikrib
  • Is current revision? No
  • Comment 14 words added, 64 words removed

Revision Content

{{ Fx_minversion_header("3") }} The tag microformat is used to add tags to other microformats.

Properties

The value of each property is a string.

Property Description
tag The name of the tag. This is the text after the last forward slash in the link. Required.
link A URL associated with the tag. Required.
text The text associated with the tag. Required.

 

Methods

toString()

Returns the tag as a string.

tagString = tag.toString();
Parameters

None.

Return value

The tag as a single string. This is currently simply the value of the tag property.

See also

{{ languages( { "es": "es/El_Microformato_tag", "ja": "ja/The_tag_microformat" } ) }}

Revision Source

<p>{{ Fx_minversion_header("3") }} The <code>tag</code> microformat is used to add tags to other microformats.</p>
<h2 id="Properties" name="Properties">Properties</h2>
<p>The value of each property is a <a class="internal" href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core JavaScript 1.5 Reference/Global Objects/String">string</a>.</p>
<table class="standard-table"> <tbody> <tr> <th>Property</th> <th>Description</th> </tr> <tr> <td><code>tag</code></td> <td>The name of the tag. This is the text after the last forward slash in the link. <strong>Required.</strong></td> </tr> <tr> <td><code>link</code></td> <td>A URL associated with the tag. <strong>Required.</strong></td> </tr> <tr> <td><code>text</code></td> <td>The text associated with the tag. <strong>Required.</strong></td> </tr> </tbody>
</table>
<p> </p><h2 id="Methods" name="Methods">Methods</h2>
<h3 id="toString.28.29" name="toString.28.29">toString()</h3>
<p>Returns the tag as a string.</p>
<pre class="eval">tagString = tag.toString();
</pre>
<h6 id="Parameters" name="Parameters">Parameters</h6>
<p>None.</p>
<h6 id="Return_value" name="Return_value">Return value</h6>
<p>The tag as a single string. This is currently simply the value of the <code>tag</code> property.</p>
<h2 id="See_also" name="See_also">See also</h2>
<ul> <li><a href="/en/The_hCard_microformat" title="en/The_hCard_microformat">The hCard microformat</a></li> <li><a href="/en/The_hCalendar_microformat" title="en/The_hCalendar_microformat">The hCalendar microformat</a></li> <li><a href="/en/Using_microformats" title="en/Using_microformats">Using microformats</a></li> <li><a href="/en/Parsing_microformats_in_JavaScript" title="en/Parsing_microformats_in_JavaScript">Parsing microformats in JavaScript</a></li> <li><a href="/en/Describing_microformats_in_JavaScript" title="en/Describing_microformats_in_JavaScript">Describing microformats in JavaScript</a></li>
</ul> <p>{{ languages( { "es": "es/El_Microformato_tag", "ja": "ja/The_tag_microformat" } ) }}</p>
Revert to this revision