Tag နာမည်နဲ့ ရွေးခြင်း (Type Selector)

W3C CSS Snapshot 2026

Type selector က element ကို tag နာမည်ကြည့်ပြီး ရွေးပါတယ်။

ဒီစာမျက်နှာမှာ

ရေးပုံနဲ့ သုံးလို့ရတဲ့ တန်ဖိုးများ

တန်ဖိုး သို့မဟုတ် ရေးပုံအလုပ်လုပ်ပုံ
pစာပိုဒ် <p> တွေကို ရွေးပါတယ်။
h2<h2> ခေါင်းစဉ်တွေကို ရွေးပါတယ်။

နမူနာကို စမ်းကြည့်ပါ

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Type Selector</title>
  <style>
p { color: teal; }
  </style>
</head>
<body>
<p class="notice">Registration opens Monday.</p>
<p id="location">Meet in Room 2.</p>
<h2>Workshop</h2>
</body>
</html>

စမ်းကြည့်ရင် ဘာဖြစ်မလဲ စာပိုဒ်နှစ်ခုလုံး စိမ်းပြာရောင် ဖြစ်ပါမယ်။ ခေါင်းစဉ်ကို ပြင်ချင်ရင် p ကို h2 ပြောင်းကြည့်ပါ။

တရားဝင် ကိုးကားချက်များ