在<code> or <pre>

时间:2015-05-04 19:20:33

标签: html

How can I get <link href="css/file.css"/> to show as plain text within a <code> or <pre> tag?

For example: <code><link href="css/file.css"/></code>

When I do it as shown in my example, the browser actually includes the CSS file within the page!

1 个答案:

答案 0 :(得分:3)

Replace < with &lt; and > with &gt;.

相关问题