#HTML 的 <samp>
标签
HTML 的 <samp> 元素用于标识计算机程序输出,通常使用浏览器缺省的等宽字体(例如 Lucida Console)。
#属性
#示例
<p>当你输入命令 <samp>ping example.com</samp> 时,系统会返回类似这样的响应:</p>
<pre><samp>PING example.com (93.184.216.34): 56 data bytes
64 bytes from 93.184.216.34: icmp_seq=0 ttl=56 time=11.632 ms
64 bytes from 93.184.216.34: icmp_seq=1 ttl=56 time=11.726 ms</samp></pre>
<samp>
当你输入命令 ping example.com 时,系统会返回类似这样的响应:
PING example.com (93.184.216.34): 56 data bytes 64 bytes from 93.184.216.34: icmp_seq=0 ttl=56 time=11.632 ms 64 bytes from 93.184.216.34: icmp_seq=1 ttl=56 time=11.726 ms