Posts in current category
May 03, 2021 18:00 HTML5
HTML5 labels preformat text in a document. Please refer to the following example:
Try it out . . .
<pre> 此例演示如何使用 pre 标签 对空行和 空格 进行控制 </pre>
Most browsers currently support the hashtag.
Labels define pre-formatted text.
Text that is surrounded by the label element usually retains spaces and line breaks. The text is rendered as an equal width font.
Tip: A common application of tags is to represent the source code of your computer.
In HTML 4.01, the "width" property is obsolete and unavailable. HTML5 does not support the "width" property.
|width||number||HTML5 does not support this property. H TML 4.01 has discarded the property. Defines the maximum number of characters per line (usually 40, 80, or 132).|
The label supports global properties and views the full property sheet HTML global properties.
The label supports all HTML event properties.