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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <samp> Tag

Das HTML <samp>-Element wird verwendet, um Ausgaben von Computerprogrammen zu kennzeichnen und verwendet in der Regel die Standardschriftart des Browsers (z.B. Lucida Console).

Online-Beispiel

Text im Dokument formatieren:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Verwendung des HTML <samp>-Tags (Grund教程网 oldtoolbag.com)</title>
</head>
<body>
<p> Normales Text. <samp> Dies ist ein Beispieltext. </samp>/samp> Normales Text./p>
</body>
</html>
Testen Sie, ob ‹/›

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

All major browsers support the <samp> tag.

Tag Definition and Usage Instructions

<samp> Tag is a phrase tag used to define the sample text of a computer program.

Note: Neither the opening tag nor the closing tag can be omitted.

Hint: We are not against using this tag, but if you use this tag only to achieve a certain visual effect, we recommend using CSS, which may produce more rich effects.

All phrase tags:

TagDescription
<em>Present 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 was typed on 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.

Global Attributes

<samp> Tag Supported HTML Global Attributes.

Event Attributes

<samp> Tag Supported HTML Event Attributes.

Related Articles

HTML Tutorial:HTML Text Formatting