基礎排版縮寫和程式碼



說明

縮寫定義了單詞或短語的簡短術語,而程式碼表示一段程式碼。

示例

以下示例演示了在 Foundation 中使用縮寫和程式碼——

<!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://cdn.jsdelivr.net/npm/foundation-sites@6.5.1/dist/css/foundation.min.css" crossorigin="anonymous">

      <!-- Compressed JavaScript -->
      <script src="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.1/dist/js/foundation.min.js" crossorigin="anonymous"></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>

輸出

我們執行以下步驟檢視上面給出的程式碼是如何工作的——

  • 儲存上面給出的 HTML 程式碼abbreviations_code.html 檔案。

  • 在瀏覽器中開啟這個 HTML 檔案,顯示輸出如下所示。

foundation_base_typography.htm
廣告
© . All rights reserved.