What was the tag used for?</h1> <div class="fly-detail-info"> <a href="https://www.e-learn.cn/qa/c-1"><span class="layui-badge layui-bg-green fly-detail-column">前端</span></a> <span class="layui-badge" style="background-color: #999;">未结</span> <div class="fly-admin-box" data-id="123"> <a href="https://www.e-learn.cn/qa/question/attentto/124799.html"><span class="layui-badge layui-bg-blue fly-detail-column">关注</span></a> </div> <span class="fly-list-nums"> <a href="#comment"><i class="iconfont" title="回答">&#xe60c;</i> 8</a> <i class="iconfont" title="人气">&#xe60b;</i> 1802 </span> </div> <div class="detail-about"> <a class="fly-avatar" href="https://www.e-learn.cn/qa/u-7.html" style="top:3px;"> <img src="https://www.e-learn.cn/qa/data/avatar/000/00/00/small_000000007.jpg" alt="清酒与你" > </a> <div class="fly-detail-user"> <a href="https://www.e-learn.cn/qa/u-7.html" class="fly-link"> <cite>清酒与你</cite> </a> <span>2020-11-28 08:44</span> </div> <div class="detail-hits" data-id="123"> </div> </div> <div class="detail-body photos"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5408099190056760" data-ad-slot="7305827575" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <p>Does anyone remember the <code>XMP</code> tag?</p> <p>What was it used for and why was it deprecated?</p> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5408099190056760" data-ad-slot="7305827575" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="fly-panel detail-box" id="flyReply"> <fieldset class="layui-elem-field layui-field-title" style="text-align: center;"> <legend>8条回答</legend> </fieldset> <ul class="jieda" id="jieda"> <li data-id="111" class="jieda-daan"> <a name="item-1111111111"></a> <div class="detail-about detail-about-reply"> <a class="fly-avatar" href=""> <img src="https://www.e-learn.cn/qa/data/avatar/000/00/00/small_000000020.jpg" alt=" 旧时难觅i "> </a> <div class="fly-detail-user"> <a href="" class="fly-link"> <cite> 旧时难觅i</cite> </a> <span>(楼主)</span> </div> <div class="detail-hits"> <span>2020-11-28 09:34</span> </div> </div> <div class="detail-body jieda-body photos"> <p> <p><code>XMP</code> and <code>PRE</code> differ. Content within <code>PRE</code> tags is formatted as follows:</p> <ul> <li>Content is shown with a fixed font,</li> <li>All whitespace is preserved, and</li> <li>Each line break begins a new line.</li> </ul> <p>If you want to include special characters such as <code><</code>, <code>></code> and <code>&</code> within <code>PRE</code> tags, they must be escaped so that they are not subject to special interpretation by the browser.</p> <p>In contrast, content within <code>XMP</code> tags does <em>not</em> need to be escaped.</p> <p>The only character sequence that cannot be included within <code>XMP</code> tags is the <code>XMP</code> end tag (<code>).

XMP is still supported by the browsers I have tested. You can try it with xmp.html. View the source to see the tags.

提交回复
热议问题