Lists
ယေဘုယျအားဖြင့် HTML မှာ List အမျိုးအစား နှစ်မျိုး ဖန်တီးနိုင်ပါတယ် — အဲဒါတွေကတော့ Unordered Lists (Bullet Point List) နဲ့ Ordered Lists (Number List) တို့ပဲ ဖြစ်ပါတယ်။
Unordered Lists (<ul>)
Section titled “Unordered Lists (<ul>)”Unordered list ဆိုတာက Bullet Point တွေနဲ့ ပြတဲ့ List ပါ၊ <ul> tag ကိုသုံးပြီး ဖန်တီးရပါတယ်။ အထဲက Item တစ်ခုချင်းစီကိုတော့ <li> tag နဲ့ ထည့်ပေးရပါတယ်။
ဥပမာ
<ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li></ul>Ordered Lists (<ol>)
Section titled “Ordered Lists (<ol>)”Ordered list ဆိုတာက နံပါတ်စဉ် တွေနဲ့ ပြတဲ့ List ပါ၊ <ol> tag ကိုသုံးပြီး ဖန်တီးရပါတယ်။ List Item တစ်ခုချင်းစီကိုတော့ <li> tag နဲ့ပဲ ထည့်ပေးရပါတယ်။
ဥပမာ
<ol> <li>First item</li> <li>Second item</li> <li>Third item</li></ol>ဒီလိုဆိုရင် Item တွေကို အလိုအလျောက် နံပါတ်စဉ် တပ်ပေးသွားပါလိမ့်မယ်။
List ထဲမှာ List ထည့်ခြင်း (Nested Lists)
Section titled “List ထဲမှာ List ထည့်ခြင်း (Nested Lists)”List တစ်ခုရဲ့ <li> ထဲမှာ နောက်ထပ် List အသစ်တစ်ခု ထပ်ထည့်လို့ ရပါတယ်။ ဒါဟာ မာတိကာ (Menu) တွေ၊ Hierarchy ရှိတဲ့ အကြောင်းအရာတွေ ပြတဲ့အခါ အရမ်း အသုံးဝင်ပါတယ်။
ဥပမာ
<ul> <li>HTML <ul> <li>Structure</li> <li>Semantic Tags</li> </ul> </li> <li>CSS <ul> <li>Flexbox</li> <li>Grid</li> </ul> </li></ul>ဖော်ပြချက် List များ (Description Lists)
Section titled “ဖော်ပြချက် List များ (Description Lists)”Description list (<dl>) ဆိုတာက အသုံးအနှုန်းတွေ (<dt>) နဲ့ သူ့ရဲ့ ဖော်ပြချက်တွေ (<dd>) ကို တွဲပြီး ဖော်ပြဖို့အတွက် သုံးပါတယ်။ ဝေါဟာရ ရှင်းလင်းချက်တွေ၊ အမေးအဖြေ (FAQ) တွေ ရေးတဲ့အခါ အသင့်တော်ဆုံးပါပဲ။
<dl>— Description list တစ်ခုလုံးကို ငုံထားတဲ့ Container<dt>— အသုံးအနှုန်း သို့မဟုတ် Item (Definition Term)<dd>— ဖော်ပြချက် (Definition Description)
ဥပမာ
<dl> <dt>HTML</dt> <dd>Webpage တွေရဲ့ structure ကို သတ်မှတ်တဲ့ language</dd>
<dt>CSS</dt> <dd>Webpage တွေကို style ချတဲ့ language</dd>
<dt>JavaScript</dt> <dd>Webpage တွေကို interactive ဖြစ်စေတဲ့ language</dd></dl>