HTML には、構造化データと非構造化データを表すための複数のオプションが用意されています。これにより、段落、順序付きリスト、順序なしリスト、表などでデータを表示できます。このトピックでは、HTML tr タグについて学習します。
HTML テーブルは、テーブルタグ
で表されるデータ セルが含まれています。 … | 標準データセルまたは内の場合はタグを使用します。 … | ヘッダーセルの場合はタグを付けます。
---|
… | …. |
---|
以下の例を確認してみましょう:
例:
<title>This is a table example</title> <style> th, td { padding : 10px; border : 1px solid #666; } </style>
Sr. No. | Popular programming languages | Description |
---|---|---|
1 | Java | Java has been holding position 1 or 2 for the world’s most popular languages since it’s inception. It was created in mid 90s and since then many large and small companies have adopted it for developing desktop and web applications |
2 | C | C is a popular language for cars, sensors and embedded systems. It has been one of the top most popular languages mainly due to its universal compatibility |
3 | Python | Python is very popular in today’s era specially since it support quick development of application based on machine learning, big data and AI. |
ご覧のとおり、 上記の例をブラウザで表示すると、次の出力が得られます。 align 属性を使用すると、 ただし、このプロパティは HTML 5 ではサポートされていません。 スタイルタグのbackgroundプロパティを使用して、行の背景を設定できます。同じ例を以下で見てみましょう。 コード: 上記のコードの出力は、ブラウザ ウィンドウでは次のようになります。最初の行の背景色が緑色に変わります。 tr タグの color プロパティを使用して、矢印内のテキストの色を操作できます。いずれかの行のフォントの色をグレーに変更しましょう。 コード: ブラウザ ウィンドウでの上記のコードの出力は次のようになります。ここで、フォントの色がテーブルの最初の行に適用されていることがわかります。 上で見たように、HTML の table 要素と tr 要素を使用して構造化データを定義および表現できます。同じテーブル内の異なる行をカスタマイズして、行のスタイルを変更できます。 th と td を使用してテーブル ヘッダーと標準テーブル データを定義することもできます。行のフォントの色、フォント サイズ、フォント ファミリー、フォントの装飾、背景色をさらにカスタマイズできます。 で表されるデータと比較して太字に見えます。標準的な外観のタグ。
HTML tr タグの属性
に表示されるデータをさらにカスタマイズするには、要素では、
で次の属性を使用できます。タグ:
1.整列
内のテキストの配置をカスタマイズできます。タグ。次の値で動作します。
2.背景
<title>This is a table example</title>
<style>
th, td {
padding : 10px;
border : 1px solid #666;
}
</style>
Sr. No.
Popular programming languages
Description
// here we are setting the back ground color to #00ff3787
1
Java
Java has been holding position 1 or 2 for the world’s most popular languages since it’s inception. It was created in mid 90s and since then many large and small companies have adopted it for developing desktop and web applications
2
C
C is a popular language for cars, sensors and embedded systems. It has been one of the top most popular languages mainly due to its universal compatibility
3
Python
Python is very popular in today’s era specially since it support quick development of application based on machine learning, big data and AI.
3.カラー
<title>This is an example of HTML table</title>
<style>
th, td {
padding : 10px;
border : 1px solid #666;
}
</style>
Sr. No.
Popular programming languages in 2019
Description
// here we are setting the font color to grey
1
Java
Java has been holding position 1 or 2 for the world’s most popular languages since it’s inception. It was created in mid 90s and since then many large and small companies have adopted it for developing desktop and web applications
2
C
C is a popular language for cars, sensors and embedded systems. It has been one of the top most popular languages mainly due to its universal compatibility
3
Python
Python is very popular in today’s era specially since it support quick development of application based on machine learning, big data and AI.
結論
以上がHTML tr タグの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

htmltagsdeTheStructureOfawebpage、whiLeattributesdddddddddtetails.1)tagslike、andoutlineThecontentのsplacement.2)属性、クラス、およびスチリーンハンシテアグビーズイメージソース、スタイリング、および改善、および改善の想像力。

HTMLの未来は、よりセマンティック、機能的、モジュール式方向に発展します。 1)セマンティック化により、タグがコンテンツをより明確に説明し、SEOとバリアのないアクセスを改善します。 2)機能化は、ユーザーのニーズを満たすために新しい要素と属性を導入します。 3)モジュール性は、コンポーネントの開発をサポートし、コードの再利用性を改善します。

htmlattributesarecrucialinwebdevevermentmentmentmentmentmentmentmention behavior、like、andfunctionality.theyenhance -interactivity、accessibility、andseo.forexample、thesrcattribute intagsimpactsseo

ALT属性は、HTMLのタグの重要な部分であり、画像の代替テキストを提供するために使用されます。 1.画像をロードできない場合、ALT属性のテキストが表示され、ユーザーエクスペリエンスが向上します。 2。スクリーンリーダーは、ALT属性を使用して、視覚障害のあるユーザーが写真の内容を理解するのに役立ちます。 3. ALT属性のEnginesインデックステキストを検索して、WebページのSEOランキングを改善します。

Web開発におけるHTML、CSS、およびJavaScriptの役割は次のとおりです。1。HTMLは、Webページ構造の構築に使用されます。 2。CSSは、Webページの外観を美化するために使用されます。 3. JavaScriptは、動的な相互作用を実現するために使用されます。タグ、スタイル、スクリプトを通じて、これら3つは最新のWebページのコア関数を構築します。

タグのLang属性を設定することは、WebアクセシビリティとSEOを最適化する重要なステップです。 1)ラング属性をタグに設定します。 2)多言語コンテンツでは、ようなさまざまな言語パーツのLang属性を設定します。 3)「EN」、「FR」、「ZH」などのISO639-1標準に準拠する言語コードを使用します。Lang属性を正しく設定すると、Webページと検索エンジンランキングのアクセシビリティが向上します。

htmlattributeSareSientionalentionalentionalentionalentiallyance'functionalityandappearance.theyaddinformationtodefinebehavior、light、and interaction、makewebsitesteractive、responsive、andviseallyappaleal.attributeslikesrc、href、class、型、およびdoadabledransform

toreatealistinhtml、useforunorderedlistsandfororderedlists:1)forunorderedlists、wrapitemsinanduseforeachitem、renderingasabulletedlist.2)


ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

EditPlus 中国語クラック版
サイズが小さく、構文の強調表示、コード プロンプト機能はサポートされていません

SublimeText3 英語版
推奨: Win バージョン、コードプロンプトをサポート!

MantisBT
Mantis は、製品の欠陥追跡を支援するために設計された、導入が簡単な Web ベースの欠陥追跡ツールです。 PHP、MySQL、Web サーバーが必要です。デモおよびホスティング サービスをチェックしてください。

SublimeText3 Linux 新バージョン
SublimeText3 Linux 最新バージョン

SecLists
SecLists は、セキュリティ テスターの究極の相棒です。これは、セキュリティ評価中に頻繁に使用されるさまざまな種類のリストを 1 か所にまとめたものです。 SecLists は、セキュリティ テスターが必要とする可能性のあるすべてのリストを便利に提供することで、セキュリティ テストをより効率的かつ生産的にするのに役立ちます。リストの種類には、ユーザー名、パスワード、URL、ファジング ペイロード、機密データ パターン、Web シェルなどが含まれます。テスターはこのリポジトリを新しいテスト マシンにプルするだけで、必要なあらゆる種類のリストにアクセスできるようになります。
