Home » ★HTML5タグリファレンス

★HTML5タグリファレンス

<code> …… プログラムなどのコードであることを示す
Internet Explorer4Internet Explorer5Internet Explorer5-macInternet Explorer5.5Internet Explorer6Internet Explorer7Internet Explorer8Internet Explorer9
Firefox1Firefox2Firefox3Firefox4
Google Chrome1Google Chrome2Google Chrome3Google Chrome4Google Chrome5Google Chrome6
Safari3Safari4Safari5
Opera6Opera7Opera8Opera9Opera10
広告



このページでは、HTML5のcode要素を解説しています。
code要素の最新情報は、以下を参照してください。

<code>タグは、プログラムなどのコードであることを示す際に使用します。
例えば、HTMLやXMLの要素名や属性名、ファイル名、プログラムなどのコンピューターが認識するであろう文字列です。

一般的なブラウザでは、等幅フォントで表示されます。

■HTML4.01からHTML5へのバージョンアップによる変更点

code要素は、HTML4.01からHTML5へのバージョンアップで大きな変更はありません。

■使用例

HTMLソース

<pre><code class=”language-pascal”>var i: Integer;
begin
i := 1;
end.</code></pre>

↓↓↓

ブラウザ上の表示

var i: Integer;
begin
   i := 1;
end.

広告



Lorem Ipsum is simply dummy text

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.