缩写和代码(Abbreviations and Code)
优质
小牛编辑
137浏览
2023-12-01
描述 (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>