在HTML中可以設(shè)置字體大小。下面,我們來看看html如何設(shè)置字體大小吧。
font
在HTML中,通常使用font標(biāo)簽來設(shè)置字體的樣式,而用size屬性來設(shè)置字體大小,如下圖所示:

size的值
隨著size的值越大,那么顯示的字體就會(huì)越大,如下圖所示:


h標(biāo)簽
使用h標(biāo)簽一般是用來設(shè)置標(biāo)題字體大小的,如下圖所示:

預(yù)覽效果
預(yù)覽效果如下,隨著h的值越大,那么字體就會(huì)越小。
