【发布时间】:2021-09-02 01:12:11
【问题描述】:
假设我需要编写一个网站,提供有关 html 或代码的教程。
<html><h1>Hello World</h1></html>
那么我如何在其中编写此代码。 我尝试使用<code></code> 甚至<pre></pre> 来封装 html 代码,这样它就不会被解释,而是被浏览器解释。那么如何在浏览器中的 html 文件中显示 html 代码,就像代码示例一样..
【问题讨论】:
标签: javascript html web xhtml