您好,登錄后才能下訂單哦!
這篇文章主要介紹html中<font>標簽怎么用,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
HTML<font>標簽的定義和用法:
HTML中<font>標簽意思是:規(guī)定文本的字體、字體尺寸、字體顏色。
<font>標簽常用的屬性有:color(文本顏色)、size(文本大?。ace(文本字體)等
html font標簽的實例
規(guī)定文本字體、大小和顏色:
<font size="3" color="red">This is some text!</font> <font size="2" color="blue">This is some text!</font> <font face="verdana" color="green">This is some text!</font>
html font標簽的標準屬性:
id, class, title, style, dir, lang, xml:lang
HTML <font> 標簽的 color 屬性
html font標簽的color屬性的定義和用法:
color 屬性規(guī)定 font 元素中文本的顏色。
HTML <font> 標簽實例:
規(guī)定文本的顏色:
<font color="red">This is some text!</font>
html font標簽的color屬性的語法
<font color="value">
HTML <font> 標簽的 size 屬性
html font標簽的size屬性的定義和用法:
size 屬性規(guī)定 font 元素中文本的尺寸大小。
HTML <font> 標簽實例
規(guī)定文本的大?。?/p>
<font size="5">This is some text!</font>
html font標簽的size屬性的語法:
<font size="value">
html font標簽的size屬性的屬性值:
number : 規(guī)定文本的尺寸大小??赡艿闹担簭?1 到 7 的數(shù)字。瀏覽器默認值是 3。
HTML <font> 標簽的 face 屬性
html font標簽的size屬性的定義和用法:
face 屬性規(guī)定 font 元素中文本的字體。
HTML <font> 標簽實例
規(guī)定文本的字體:
<font face="verdana">This is some text!</font>
html font標簽的size屬性的語法:
<font face="value">
html font標簽的size屬性的屬性值:
font_family : 規(guī)定文本的字體。如需規(guī)定若干字體的優(yōu)先表,請使用逗號將字體名稱分開(比如 <basefont face="verdana,arial,sans-serif" />)。
與font標簽有關(guān)的css樣式屬性:
1、font-family 定義字體
font-family:"微軟雅黑","arial";
2、font-size 字體大小
font-size:18px; font-size:150%; font-size:xx-small,x-small,small,medium,large,x-large,xx-large; font-size:smaller,larger;
3、font-style 字體樣式
font-style:normal,italic,oblique;
4、font-weight 字體粗細
font-weight:normal,bold,bolder,lighter,100-900;
5、font-variant 使輸入不受大小寫限制
font-variant: normal,small-caps;
最后,font屬性的簡寫
font: bold italic 18px arial ;
HTML 與 XHTML 之間的差異
在 HTML 4.01 中,font 元素不被贊成使用。
在 XHTML 1.0 Strict DTD 中,font 元素不被支持。
以上是“html中<font>標簽怎么用”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。