blob: 109ea376a2f0ed3ae98a733455f94437326ee86a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
---
title: var
slug: Web/HTML/Element/var
tags:
- HTML
- HTML Elemente
- HTML Referenz
translation_of: Web/HTML/Element/var
---
<h2 id="Summary" name="Summary">Übersicht</h2>
<p>Das HTML <code><var></code> Element repräsentiert eine Variable. Es kann sich dabei um eine mathematischen Ausdruck handeln oder um eine Variable in einem Quellcode.</p>
<h2 id="DOM_Interface">DOM Interface</h2>
<p>Dieses Element implementiert das <code><a href="/de/DOM/element" title="de/DOM/element">HTMLElement</a></code> Interface.</p>
<div class="note">
<p><strong>Implementationshinweis:</strong> Bis einschließlich Gecko 1.9.2 implementiert Firefox das <a href="/de/DOM/span" title="de/DOM/span"><span style="font-family: Courier New;">HTMLSpanElement</span></a> Interface für dieses Element.</p>
</div>
<h2 id="Attribute">Attribute</h2>
<p>Keine speziellen vorhanden, nur Universalattribute.</p>
<h3 id="Standardmäßige_Style-Eigenschaften">Standardmäßige Style-Eigenschaften</h3>
<pre class="brush:css">var {
font-style: italic;
}</pre>
<h2 id="Beispiel">Beispiel</h2>
<pre class="brush:xml"><p> Eine einfache Gleichung: <var>x</var> = <var>y</var> + 2 </p>
</pre>
<p>Eine einfache Gleichung: <var>x</var> = <var>y</var> + 2</p>
<h2 id="Spezifikationen">Spezifikationen</h2>
<ul>
<li><a class="external" href="http://www.w3.org/TR/html401/struct/text.html#edef-VAR">HTML 4.01 var</a></li>
<li><a class="external" href="http://dev.w3.org/html5/markup/var.html">HTML5 var</a></li>
</ul>
<div>{{HTMLRef}}</div>
|