In HTML5, pre is used to represent pre-formatted text. The text enclosed in the pre tag usually retains spaces and line breaks, that is, the text layout and format are presented intact. A common application is to represent computer source code, with the syntax "
".source codeCopy after login
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What does pre mean in HTML5?
##tag can define pre-formatted text. <p></p>Text enclosed in <pre class="brush:php;toolbar:false"> tag elements usually preserves spaces and newlines. <p></p>Use the <pre class="brush:php;toolbar:false">
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <pre class="brush:php;toolbar:false"> 此例演示如何使用 pre 标签 对空行和 空格 进行控制
此例演示如何使用 pre 标签 对空行和 空格 进行控制