HTML の別のタグは、主に Web ページの重要なコンテンツを表示するために使用されます。これは、Web ページの主要なものに焦点を当てるハイライトとして機能します。 HTMLのこのタグはWebページを区切ったり、パーティションを作成したりするためにも使用されますが、これはWebページの主要なコンテンツのみに焦点を当てるために使用されます。 Web ページのデザインを容易にするために使用され、含まれる HTML ドキュメントがより明確になります。 Web ページ上のサイド タグの主な配置領域は、サイドバーまたはコールアウト ボックスのいずれかにあります。
構文:
<aside> <p>some text</p> </aside>
- この記事要素内またはこの記事要素の外で使用する必要があります。このタグを記事要素とともに使用する場合は、記事のコンテンツを含める必要があります。また、article 要素の外で使用する場合は常に、Web ページ全体に関連するデータを含める必要があります。
- これは HTML のブロックレベル要素とみなされます。
- ただし、他のタグと同様、タグは、イベント属性だけでなくグローバル属性もサポートしています。
HTML の Aside タグの属性
HTML の Aside タグの属性を以下に示します。
グローバル属性
- アクセスキー: 特定の属性を強調表示するショートカット キーとして使用されます。
- クラス: 含まれる要素に 1 つ以上のクラス名を定義するために使用されます。
- contenteditable: この属性は、要素が編集可能かどうかの詳細を示すために使用されます。
- data: この属性は、必要なページまたはアプリケーションにカスタム データを非公開で収集するのに役立ちます。
- ドラッグ可能: 要素がドラッグ可能かどうかを定義します。
イベント属性
- onafterprint: この属性は、ドキュメントが印刷されるたびにスクリプトを実行するために使用されます。
- onerror: エラーが発生するたびに、この属性が実行されます。
- onmessage: このスクリプトは、メッセージがトリガーされると発生します。
- onpageshow: ユーザーがあるページから別のページに移動するたびに、このイベント属性がこのイベントに作用します。
- onstorage: この属性は、Web ストレージ領域が更新されるたびにスクリプトを実行します。
HTML の Aside タグの例
例 #1 –
内のタグコード:
<h1 id="A-P-J-Abdul-Kalam">A. P. J. Abdul Kalam</h1> <article> <aside style="float:right;width:20%; background-color:deepskyblue;padding:20 20px;"> <img src="/static/imghwm/default1.png" data-src="APJ.jpg" class="lazy" style="max-width:90%" alt="HTMLのサイドタグ" > </aside> <p style="width:80%;padding:20px;"> Dr.A.P.J Abdul Kalam was known as one the most famous personality in the India. His full name was Avul Pakir Jainulabdeen Abdul Kalam. His whole life journey comes in between 15 october 1931 – 27 july 2015 . .In this time he was worked as aerospace scientist . Rameswaram ,Tamil Nadu was his birthplace. As well as he was completed his education in physics and aerospace engineering from Tamilnadu state itself. He was provide service to the nation as being 11<sup>th</sup> president of India from 2002 to 2007. He almost spend 4 decades of service as being scientist and science administrator , majorly he was active participants at the Defence Research and Development Organisation (DRDO) and in most famous organization of India i.e and Indian Space Research Organization (ISRO). Due to his active participation in those organization and had part of India’s military missile development he was known as Missile Man of India. He played very important role in nuclear test which is taken by India for Pokharan -2 nuclear test in the year 1998.<br> He was well known personality in all reputed fields like education, aerospace, military, public service and into the writing. He died on 27 July 2015, aged 83</p> </article>
出力:
例 #2 – 外部にタグを付ける
コード:
<title>Aside tag</title> <style> .demo { font-size:30px; font-weight:bold; } h1 { font-size:30px; color:purple; font-weight:bold; } p { font-size:20px; margin:20px 0; } </style> <div class="demo"><u>Delhi factory tragedy</u></div> <aside> <h1 id="Delhi-fire-tragedy-Meet-fireman-Sunil-Kumar-who-saved-more-than-dozen-lives">Delhi fire tragedy: Meet fireman Sunil Kumar who saved more than dozen lives</h1> <p> Meet fireman Sunil Kumar, who along with his team, saved the lives of more than a dozen of people from the bag manufacturing factory fire in Delhi's Anaj Mandi area this morning. The early morning fire had left over 40 dead and many injured.<br>As soon as Sunil Kumar, who is also a President award winner, arrived at the spot with his team from Prasad Nagar, it was very difficult for the fire tender to reach the site from the main road, but somehow one fire tender entered while other fire tenders were waiting on the road .</p> </aside>
出力:
例 #3 – スタイルタグ
コード:
<article> <h1 id="Miss-South-Africa-crowned-Miss-Universe">Miss South Africa crowned 2019 Miss Universe</h1> <p>Miss Universe 2018 Catriona Gray of the Philippines crowns the new Miss Universe 2019, South Africa's Zozibini Tunzi, during the pageant at Tyler Perry Studios in Atlanta, Georgia, on December 8, 2019. </p> <img src="/static/imghwm/default1.png" data-src="Miss.jpg" class="lazy" style="max-width:90%" alt="HTMLのサイドタグ" > </article> <p>The two runners-up for the crown were Miss Mexico and Miss Puerto Rico.</p>
出力:
結論
HTMLの以上がHTMLのサイドタグの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

HTMLは、Webページを構築するために使用される言語であり、タグと属性を使用してWebページの構造とコンテンツを定義します。 1)htmlは、などのタグを介してドキュメント構造を整理します。 2)ブラウザはHTMLを分析してDOMを構築し、Webページをレンダリングします。 3)マルチメディア関数を強化するなど、HTML5の新機能。 4)一般的なエラーには、閉じられていないラベルと引用されていない属性値が含まれます。 5)最適化の提案には、セマンティックタグの使用とファイルサイズの削減が含まれます。

webdevelopmentReliesOnhtml、css、andjavascript:1)htmlStructuresContent、2)cssStylesit、および3)Javascriptaddsinteractivity、形成、

HTMLの役割は、タグと属性を使用してWebページの構造とコンテンツを定義することです。 1。HTMLは、読みやすく理解しやすいようなタグを介してコンテンツを整理します。 2。アクセシビリティとSEOを強化するには、セマンティックタグなどを使用します。 3. HTMLコードの最適化により、Webページの読み込み速度とユーザーエクスペリエンスが向上する可能性があります。

HTML、CSS、およびJavaScriptは、Web開発の3つの柱です。 1。HTMLは、Webページ構造を定義し、などなどのタグを使用します。2。CSSは、色、フォントサイズなどのセレクターと属性を使用してWebページスタイルを制御します。

HTMLはWeb構造を定義し、CSSはスタイルとレイアウトを担当し、JavaScriptは動的な相互作用を提供します。 3人はWeb開発で職務を遂行し、共同でカラフルなWebサイトを構築します。

HTMLは、簡単に学習しやすく、結果をすばやく見ることができるため、初心者に適しています。 1)HTMLの学習曲線はスムーズで簡単に開始できます。 2)基本タグをマスターして、Webページの作成を開始します。 3)柔軟性が高く、CSSおよびJavaScriptと組み合わせて使用できます。 4)豊富な学習リソースと最新のツールは、学習プロセスをサポートしています。

Anexampleapalofastartingtaginhtmlis、それはaperginsaparagraph.startingtagsaresentionentientiontheyinitiateelements、definetheirtypes、およびarecrucialforurturingwebpagesandcontingthomedomを構築します。


ホットAIツール

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

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

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事

ホットツール

Dreamweaver Mac版
ビジュアル Web 開発ツール

MinGW - Minimalist GNU for Windows
このプロジェクトは osdn.net/projects/mingw に移行中です。引き続きそこでフォローしていただけます。 MinGW: GNU Compiler Collection (GCC) のネイティブ Windows ポートであり、ネイティブ Windows アプリケーションを構築するための自由に配布可能なインポート ライブラリとヘッダー ファイルであり、C99 機能をサポートする MSVC ランタイムの拡張機能が含まれています。すべての MinGW ソフトウェアは 64 ビット Windows プラットフォームで実行できます。

SAP NetWeaver Server Adapter for Eclipse
Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。

VSCode Windows 64 ビットのダウンロード
Microsoft によって発売された無料で強力な IDE エディター

PhpStorm Mac バージョン
最新(2018.2.1)のプロフェッショナル向けPHP統合開発ツール
