HTML键盘输入元素()用于表示用户输入,它将产生一个行内元素,以浏览器的默认monospace字体显示。
浏览器支持
示例
type the following in the run dialog: cmdthen click the ok button.
save the document by pressing ctrl + s
结果:此显示效果为 MDN 特殊显示效果,无法更改。具体显示效果请自行测试。
type the following in the run dialog:cmdthen click the ok button.

save the document by pressing ctrl+s