Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Foundation Text

Foundation Text

Foundation Default Settings

Foundation uses the browser's default font size (font-size:100%"). For most desktop browsers, the default font size is 16px. For most mobile browsers, the default font size is 12px. The default font is "Helvetica Neue", and line-height defaults to 1.5。

All the above default settings are for .


Foundation Text Arrangement Design

In this chapter we will discuss Foundation's text arrangement design.

To see the real styles of the following examples, please click the "Try it" button.


-

HTML headings rendered by Foundation (

to
) are as follows:

Example

<

h1

h1 heading

h1

<

h2

h2 heading

h2

<

h3

h3 heading

h3

<

h4

h4 heading

h4

<

h5

h5 heading

h5

<

h6

h6 heading

h6

Try it »

Tip: To create a light-colored heading, you can add a .subheader class:

Example

<h1 class="subheader" h1.subheader h1>
<h2 class="subheader" h2.subheader h2>
<h3 class="subheader" h3.subheader h3>
<h4 class="subheader" h4.subheader h4>
<h5 class="subheader" h5.subheader h5>
<h6 class="subheader" h6.subheader h6>

Try it »


In Foundation, the HTML element is used to create a light-colored subheading:

Example

<

h1

h1 heading

<

small

secondary text

small

h1

<

h2

h2 heading

<

small

secondary text

small

h2

<

h3

h3 heading

<

small

secondary text

small

h3

<

h4

h4 heading

<

small

secondary text

small

h4

<

h5

h5 heading

<

small

secondary text

small

h5

<

h6

h6 heading

<

small

secondary text

small

h6

Try it »


Foundation The element is styled as follows:

Example

<

p

This is a

<a class="a" href="" link a>

。

p

Try it »


Foundation The element is styled as follows:

Example

<p The>
<abbr title=">

World Health Organization

"

WHO

abbr

was founded in 1948.

p

Try it »


Foundation

The element is styled as follows:

Example

<

blockquote

<

p

What you learn is not only technology, but also a dream!

p

<

cite

Runoob Tutorial

cite

blockquote

Try it »


Foundation

The element is styled as follows:

Example

<

dl

<

dt

Coffee

dt

<

dd

dd

<

dt

Milk

dt

<

dd

dd

dl

Try it »


Foundation The element styles are as follows:

Example

<

p

The following HTML elements:

<

code

span

code

,

<

code

section

code

, and

<

code

div

code

are part of the document.

p

Try it »


Foundation The element styles are as follows:

Example

<

p

Press

<

kbd

ctrl + p

kbd

to open the print window.

p

Try it »



Foundation


The element styles are as follows:

Example

<

hr

Try it »