Web速查-索引

定义

<pre> 标签用于定义预格式化的文本。

pre 元素中的文本通常会保留空格和换行符,而文本自身也会呈现为等宽字体。

实例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>鱼C-零基础入门学习Web(Html5+Css3)</title>
</head>
<body>
<pre>
pre 元素中的文本通常会保留空格 和
换行符,而文本自身也会呈现为等宽字体。
</pre>
</body>
</html>
    pre 元素中的文本通常会保留空格   和

换行符,而文本自身也会呈现为等宽字体。
    

视频讲解