English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

HTML-Tagverzeichnis

HTML: <var> Tag

<var> Tag steht für den Namen des Variablen oder den Wert, der vom Benutzer bereitgestellt wird.

Online Beispiel

var in math equations demonstrate usage:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML var-Tagverwendung (Grund教程网 oldtoolbag.com)</title>
</head>
<body>
<p> Eine einfache Gleichung: <var>x</var> = <var>y</var> + 2 </p>
</body>
</html>
Testen wir ›/›
Eine einfache Gleichung: x = y + 2

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

All Major Browsers Support <var> Tag

Tag Definition and Usage Instructions

<var> Tag is a Phrase Tag used to define variables.

Tip: We are not against using this tag, but if you use it only to achieve a certain visual effect, we recommend using CSS, which may achieve richer effects.

All Phrase Tags:

TagDescription
<em>Presented as emphasized text.
<strong>Define Important Text.
<dfn>Define a Definition Item.
<code>Define Computer Code Text.
<samp>Define Sample Text.
<kbd>Define Keyboard Text. It indicates that the text is typed from the keyboard. It is often used in documents or manuals related to computers.
<var>Define Variables. You can use this tag in conjunction with <pre> and <code> tags.

HTML 4.01 and HTML5Differences Between

None.

Global Attributes

<var> Tag Supported Global Attributes of HTML.

Event Attributes

<var> Tag Supported HTML Event Attributes.

Related Articles

HTML Tutorial:HTML Text Formatting