当前位置: 动力学知识库 > 问答 > 编程问答 >

html - Webpage display same as code

问题描述:

I'm very new to Javascript and HTML but I wondered if there was a way you could make your webpage display the same way as your code. Such as if you had something like this:

<html>

<body>

<input type="button" value="Text">

<b>Hello world Hello<b>

</body>

</html>

Is there some sort of code I can put in to make it display just like that on the webpage. When I try it there aren't that many spaces between the world and Hello.

网友答案:

Put that in a pre tag

<pre>hello           hello</pre>

pre tags keep spacing

分享给朋友:
您可能感兴趣的文章:
随机阅读: