Html-font-tag

提供:Dev Guides
移動先:案内検索

HTML-<font>タグ

説明

HTML <font>タグは、テキストのフォントを指定するために使用されます。 HTMLおよびXHTMLでは非推奨です。

<!DOCTYPE html>
<html>

   <head>
      <title>HTML font Tag</title>
   </head>

   <body>
      <font face = "cursive,serif" color = "#ff9900" size = "4">
         The HTML font tag is now deprecated. You should use start using CSS to set
            font size and family.
      </font>
   </body>

</html>

これは、次の結果を生成します-

グローバル属性

このタグは、リンク:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします

特定の属性

HTML <font>タグは、次の追加属性もサポートしています-

Attribute Value Description
color rgb(x,x,x) #hexcode colorname Deprecated − Specifies the color of the text.
face List of font names Deprecated − Specifies the font families.
size number Deprecated − Specifies the font size from 1 to 7.

イベント属性

このタグは、link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートしています。

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes