English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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).
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 ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the <samp> tag.
<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:
Tag | Description |
---|---|
<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. |
<samp> Tag Supported HTML Global Attributes.
<samp> Tag Supported HTML Event Attributes.
HTML Tutorial:HTML Text Formatting