Foundation is used to develop responsive HTML, CSS and JavaScript frameworks.

Foundation is an easy-to-use, powerful and flexible framework for building web applications on any device.

Foundation is a popular mobile-first framework.

Foundation text syntax

Note: Foundation uses the browser's default font size (font-size:100%). For most desktop browsers, the font defaults to 16px. For most mobile browsers, the font defaults to 12px. The default font is "Helvetica Neue" and the line-height defaults to 1.5. The above default settings are all for the <body> element.

Foundation text example

<!DOCTYPE html>
<html>
<head>
  <title>Foundation 实例</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css">
  <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/foundation/5.5.3/js/foundation.min.js"></script>
  <script src="https://cdn.bootcss.com/foundation/5.5.3/js/vendor/modernizr.js"></script>
</head>
<body>
 
<div style="padding:20px;">
  <h2>标题</h2>
  <p>标题不同元素字体大小不一样。以下字体默认加粗,不同设备尺寸显示的字体也是不一样的,你可以通过重置浏览器窗口大小查看效果。</p>
  <h1>h1 标题 (<strong>2.125rem</strong> - 2.75rem)</h1>
  <h2>h2 标题 (<strong>1.6875rem</strong> - 2.3125rem)</h2>
  <h3>h3 标题 (<strong>1.375rem</strong> - 1.6875rem)</h3>
  <h4>h4 标题 (<strong>1.125rem</strong> - 1.4375rem)</h4>
  <h5>h5 标题 (1.125rem)</h5>
  <h6>h6 标题 (1rem)</h6>
</div>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance