html pre tag
Translation results:
abbr.prefix prefix (computer characters); (Latin prefix=before) (Latin prefix) before...;precursor precursor cells; partial reinforcement effect local reinforcement effect
html pre tagsyntax
Function:Define preformatted text.
Note: Text enclosed in pre elements usually retains spaces and newlines. The text will also be rendered as a fixed-width font. A common application of the <pre> tag is to represent computer source code. Tags that can cause paragraph breaks (such as headings, <p> and <address> tags) must not be included in a block defined by <pre>. Although some browsers will interpret the paragraph end tag as a simple line break, this behavior is not the same in all browsers. Allowed text in pre elements can include physical styles and content-based style variations, as well as links, images, and horizontal dividers.
Note: If you want to use the <pre> tag to define computer source code, such as HTML source code, please use symbol entities to represent special characters, such as "<" represents " <", ">" represents ">", "&" represents "&".
html pre tagexample
<html> <meta charset="utf-8"> <body> <pre> 离离原上草,一岁一枯荣。 野火烧不尽,春风吹又生。 </pre> <p>可以看到上面我们没有做任何的CSS渲染,文字依然按照我们排列好的形式格式化输出</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance
Popular Recommendations
- Stabull Finance Announces $STABUL Token Pre-Sale on GemPad
- Bitget Lists RabBitcoin (RBTC) Token on Its Pre-Market Trading Platform
- OKX Announces Pre-Market Futures Feature Launch for Catizen (CATI) Token
- Samsung opens pre-order for Galaxy Watch FE LTE edition in the US
- Leakers reveal Nothing Ear (open) before launch day in substantial pre-release leak
- Top 5 Altcoins Set to Explode: Pre-Sale Gems and Post-Listing Moonshots