HTML
タグ
HTMLの
タグは、HTMLドキュメントのコンテンツを区切る行を追加します。テーマ別の区切りは、HTML5の
タグで定義されます。終了タグはありません。
タグ-を実装する例を見てみましょう
例
<!DOCTYPE html> <html> <head> <title>Document Title</title> </head> <body> <h1>Products</h1> <p>Here are the products −</p> <h2>Clothing</h2> <p>Clothing includes T-Shirts, Shirts, Jeans, Trousers and Hoodie.</p> <hr> <h2>Electronics</h2> <p>Electronics includes Mobile, Mobile Accessories,Laptops, Desktop systems, etc.</p> </body> </html>
出力
上記の例では、最初にセクションを設定しました-
<h2>Clothing</h2><p></p> <p>Clothing includes T-Shirts, Shirts, Jeans, Trousers and Hoodie.</p>
その後、
タグを使用して、上記のコンテンツを以下のコンテンツで区切ります-
<hr> <h2>Electronics</h2> <p>Electronics includes Mobile, Mobile Accessories,Laptops, Desktop systems, etc.</p>
-
HTML<embed>タグ
タグは、HTMLドキュメントに外部アプリケーションを含めるために使用されます。 以下は属性です- 高さ: 埋め込まれたコンテンツの高さ(ピクセル単位)です。 src :埋め込む外部ファイルのアドレス、つまりURLを記載します。 タイプ :埋め込まれたコンテンツのメディアタイプを指定するのはメディアタイプです 幅: 埋め込まれたコンテンツの幅(ピクセル単位)です ここで、HTMLにタグを実装する例を見てみましょう- 例 <!DOCTYPE html> <html> <body> <h2>CSS Demonstrating Appl
-
HTML<dfn>タグ
HTMLのタグは、HTMLの用語のインスタンスを定義するために使用されます。これは、用語の最初の使用法です。 タグ-を実装する例を見てみましょう。 例 <!DOCTYPE html> <html> <body> <h2>Subjects in MCA</h2> <p><dfn title="Master of Computer Applications">MCA</dfn> is a 3-year post graduate degree course </p> &