font

英[fɒnt] 美[fɑ:nt]

n. Font; font; baptistery (located in a church, often made of stone ); (same font and size) a pair of typefaces

Plural: fonts

size

英[saɪz] 美[saɪz]

n. Scale; size, size; glue, paste; huge, large number

vt. Arrange by size; change the size of…; glue, sizing; paint

adj.A certain size

Third person singular: sizes Plural: sizes Present participle: sizing Past tense: sized Past participle: sized

css font-size property syntax

Function:Set the font size.

Description: This attribute sets the font size of the element. Note that this actually sets the height of the character boxes in the font; the actual character glyph may be taller or shorter than these boxes (usually shorter). The font corresponding to each keyword must be taller than the font corresponding to the smallest keyword and smaller than the font corresponding to the next largest keyword.

Note: All major browsers support the font-size attribute.

css font-size property example

<html>
<head>
<style type="text/css">
h1 {font-size: 300%}
h2 {font-size: 200%}
p {font-size: 100%}
</style>
</head>

<body>
<h1>php中文网</h1>
<h2>php视频教程</h2>
<p>php程序员词典</p>
</body>

</html>

Run instance »

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