#HTML 的 <tt>
标签
HTML 的 <tt> 元素用于标识电传打字机的输出文本,通常使用浏览器缺省的等宽字体(例如 Lucida Console)。
#属性
<p>当你输入命令 <tt>ping example.com</tt> 时,系统会返回类似这样的响应:</p>
<pre><tt>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</tt></pre>
<tt>
当你输入命令 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
- 废弃元素的演示可能不会生效