Html-basefont-tag

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

HTML-<basefont>タグ

説明

HTML <basefont>タグは、使用するドキュメントのベースフォントを指定するために使用されます。 この基本フォントは、ドキュメント全体に適用されます。 このタグは現在、減価償却されています。

<!DOCTYPE html>
<html>

   <head>
      <title>HTML basefont Tag</title>
   </head>

   <body>
      <basefont face = "cursive,serif" color = "#ff9900" size = "4"/>

      <p>The HTML basefont tag is now deprecated. You should use CSS font
         to set font properties instead.</p>
   </body>

</html>

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

この結果はブラウザごとに異なる場合があります。

グローバル属性

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

特定の属性

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

Attribute Value Description
color rgb(x,x,x) #xxxxxx colorname Deprecated − Specifies the color of the text.
face font names separated by comma Deprecated − Specifies the font family of the text.
size 1 to 7 Deprecated − Specifies the font size of the text.

イベント属性

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

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Not Supported Not Supported Yes Not Supported Not Supported Not Supported