HTML <html> Tag
ဥပမာ
ရိုးရှင်းသော HTML စာရွက်စာတမ်း
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
tag သည် <html>
HTML document တစ်ခု၏ root ကိုကိုယ်စားပြုသည်။
တဂ် သည် <!DOCTYPE> တဂ် <html>
မှလွဲ၍ အခြား HTML ဒြပ်စင်အားလုံးအတွက် ကွန်တိန်နာ
ဖြစ်သည်။
မှတ်ချက်-
ဝဘ်စာမျက်နှာ၏ဘာသာစကားကို ကြေညာရန်အတွက် သင် က tag အတွင်းရှိ lang attribute ကို အမြဲထည့်သွင်းသင့်သည်
။ <html>
၎င်းသည် ရှာဖွေရေးအင်ဂျင်များနှင့် ဘရောက်ဆာများကို ကူညီရန် ရည်ရွယ်သည်။
Browser ပံ့ပိုးမှု
Element | |||||
---|---|---|---|---|---|
<html> | Yes | Yes | Yes | Yes | Yes |
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
xmlns | http://www.w3.org/1999/xhtml | Specifies the XML namespace attribute (If you need your content to conform to XHTML) |
ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ
<html>
tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML သင်ခန်းစာ- HTML မိတ်ဆက်
HTML DOM ရည်ညွှန်း- HTML Object
မူရင်း CSS ဆက်တင်များ
ဘရောက်ဆာအများစုသည် <html>
အောက်ဖော်ပြပါ ပုံသေတန်ဖိုးများဖြင့် အစိတ်အပိုင်းကို ပြသလိမ့်မည်-
html {
display: block;
}
html:focus {
outline: none;
}