Thuta Learning
ရှာဖွေရန်
BasicWeb Developmentbeginner

Comments

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

HTML comments ကို browser က screen ပေါ်မပြပါဘူး။ Code ထဲမှာ developer note ထားဖို့ သုံးပါတယ်။ “နောင်တစ်ချိန်က ကိုယ့်ကိုယ်ကိုယ် ပြန်ကယ်တင်တဲ့ sticky note” လို့မှတ်ပါ။

ဒါပေမယ့် password, secret key, API key တို့ကို comment ထဲမထားပါနဲ့။ Browser ကမပြပေမယ့် source code ကြည့်ရင်မြင်နိုင်ပါတယ်။

html
<!-- Hero section starts here -->
<section>
  <h1>Welcome to ThutaTech</h1>
</section>
<!-- Hero section ends here -->
You should see
Comment တွေက page ပေါ်မပေါ်ဘဲ code organization အတွက်ပဲကျန်နေပါမယ်။
Comments | Thuta Learning