Back
HTML Full Notes • Beginner → Advanced

Web Developer တစ်ယောက် သိထားသင့်သော HTML Codes များ (အပြည့်အစုံ)

ဒီစာမျက်နှာက HTML ကို စတင်လေ့လာသူ ကနေ Web Developer အဖြစ် လက်တွေ့ရေးသားနိုင်အောင် Tag / Attribute / Structure / SEO / Accessibility / Forms / Media / Advanced elements တွေကို အများဆုံး လက်တွေ့ code နဲ့ တစုတစည်းတည်း စုထားတဲ့ note ကြီးပါ။

Tip: Code box အပေါ်ယာမှာ Copy ခလုတ်နဲ့ တန်းကူးနိုင်ပါတယ်။ နားမလည်ရင် tag name ကို google/MDN search လုပ်ကြည့်ရင် ပိုမြန်ပါတယ်။

၁) HTML Document Structure (အခြေခံဖွဲ့စည်းပုံ)

HTML ဖိုင်ရေးတိုင်း ဒီ structure ကို စံအတိုင်း သုံးပါတယ်။

<!DOCTYPE html> <html lang="my"> My Page </html>

၂) Meta Tags (SEO / Social share / Browser behavior)

Search engine တွေ၊ Facebook share preview တွေ၊ browser behavior တွေအတွက် အသုံးများပါတယ်။

၃) Headings (h1 → h6)

အကြီးဆုံး

ဒုတိယ

တတိယ

စတုတ္ထ

ပဉ္စမ
အသေးဆုံး

၄) Paragraph / Inline text

ဒါက စာပိုဒ်တစ်ပိုဒ်ပါ။

bold italic highlight small text sup sub

၅) Links (a) + Target + Download

Google PDF Download Page အတွင်း Jump

၆) Images (img) + Responsive + Lazy load

Description Responsive photo

၇) Line Break / Horizontal Rule

စာကြောင်း ၁
စာကြောင်း ၂
အောက်ပိုင်း

၈) Lists (ul / ol) + nested list

  1. Step 1
  2. Step 2

၉) Div & Span (layout အတွက်)

Block element (အကွက်လိုက်)

ဒီထဲမှာ span နဲ့ inline စာသားလေးပြောင်းနိုင်ပါတယ်

၁၀) Semantic HTML (SEO + readable + clean)

Div တွေချည်းမသုံးဘဲ semantic tag တွေသုံးရင် ပိုကောင်းပါတယ်။

Header
Section
Footer

၁၁) Tables (thead / tbody / caption)

User List
NameAge
Aung22
Hla25

၁၂) Forms (basic)

၁၃) Form Input Types (အရမ်းအသုံးများ)

၁၄) Form Validation (required / pattern / minlength)

၁၅) Radio / Checkbox / Select

၁၆) Datalist (autocomplete list)

၁၇) Textarea + Fieldset

Profile

၁၈) Buttons (button / submit / reset)

၁၉) Media: Video / Audio

၂၀) Iframe (YouTube/Map embed)

၂၁) Details / Summary (Accordion)

Click to open ဒီထဲမှာ စာတွေကို ဖွင့်ပြနိုင်ပါတယ်။

၂၂) Dialog (Popup box)

Hello Dialog!

၂၃) Template (JS နဲ့ clone ပြုလုပ်ရန်)

၂၄) Figure / Figcaption (image caption)

sample
ဒီပုံက sample ပါ

၂၅) Time tag (date/time semantics)

Post date:

၂၆) Accessibility (ARIA / label / alt)

၂၇) Images: Picture tag (WebP fallback)

fallback image

၂၈) SVG (icon/shape)

၂၉) Canvas (drawing area)

၃၀) Comments (Developer notes)

၃၁) Script / Defer (performance)

JS ကို page render မထိခိုက်အောင် defer သုံးတာက ကောင်းပါတယ်။

၃၂) CSS Link (external stylesheet)

၃၃) Favicon (tab icon)

၃၄) Base URL (relative link တွေအတွက်)

၃၅) Content Editable (inline editor)

ဒီစာသားကို browser ထဲမှာတင် ပြင်နိုင်ပါတယ်။

၃၆) Responsive layout basic (mobile friendly)

၃၇) Common Attributes (id / class / data-*)

Hello

၃၈) Anchor jump target (id target)

Go End ...
ဒီနေရာက end ပါ

၃၉) HTML Entities (special characters)

< > & " '   © ®

၄၀) Best Practice (အရေးကြီးဆုံး Note)

အချက် ဘာလို့ကောင်းလဲ
Semantic tags သုံး SEO ကောင်း + structure ပြေ + code readable
img alt ထည့် Accessibility + SEO + image fail ဖြစ်ရင်စာပြ
form label ထည့် User experience + screen reader friendly
script defer Page load မြန် + render block မဖြစ်
meta description Google snippet ပိုကောင်း