目录

缩写和代码(Abbreviations and Code)

描述 (Description)

缩写定义了单词或短语的缩写术语, Code表示一段代码。

例子 (Example)

以下示例演示了在Foundation中使用abbreviations and code -

<!doctype html>
   <head>
      <meta charset = "utf-8" />
      <meta http-equiv = "x-ua-compatible" content = "ie = edge" />
      <meta name = "viewport" content = "width = device-width, initial-scale = 1.0" />
      <title>Base Typography Abbreviations and Code</title>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script>
   </head>
   <body>
      <h2>Example of Abbreviations</h2>
      <blockquote>
         <p><abbr title = "Hyper Text Markup Language">HTML</abbr> 
         which is the most widely used language  on Web to develop web pages.</p>
      </blockquote>
      <h2>Example of Code</h2>
      <p>You can use break between the sections by using<code><hr></code> tag.</p>
   </body>
</html>

输出 (Output)

让我们执行以下步骤,看看上面给出的代码是如何工作的 -

  • 保存上面给出的html代码abbreviations_code.html文件。

  • 在浏览器中打开此HTML文件,输出显示如下。

新页面打开
↑回到顶部↑
WIKI教程 @2018