HTML <hr> Tag
ဥပမာ
အကြောင်းအရာရှိ အကြောင်းအရာအလိုက် ပြောင်းလဲမှုများကို သတ်မှတ်ရန် <hr> တဂ်ကို အသုံးပြုပါ-
<h1>The Main Languages of the Web</h1>
<p>HTML is the standard markup
language for creating Web pages. HTML describes the structure of a Web page,
and consists of a series of elements. HTML elements tell the browser how to
display the content.</p>
<hr>
<p>CSS is a language that
describes how HTML elements are to be displayed on screen, paper, or in
other media. CSS saves a lot of work, because it can control the layout of
multiple web pages all at once.</p>
<hr>
<p>JavaScript is the
programming language of HTML and the Web. JavaScript can change HTML content
and attribute values. JavaScript can change CSS. JavaScript can hide and
show HTML elements, and more.</p>
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
Tag သည် <hr>
HTML စာမျက်နှာတစ်ခုရှိ အကြောင်းအရာကွဲတစ်ခုကို သတ်မှတ်သည် (ဥပမာ- အကြောင်းအရာတစ်ခုပြောင်းခြင်း)။
HTML စာမျက်နှာရှိ အကြောင်းအရာကို ပိုင်းခြားရန် (သို့မဟုတ် အပြောင်းအလဲကို သတ်မှတ်ခြင်း) ပြုလုပ်ရန် အသုံးပြုသည့် အလျားလိုက် စည်းမျဉ်းတစ်ခု အ <hr>
နေဖြင့် ဒြပ်စင်ကို အများဆုံးပြသလေ့ရှိသည်။
Browser ပံ့ပိုးမှု
Element | |||||
---|---|---|---|---|---|
<hr> | Yes | Yes | Yes | Yes | Yes |
ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ
<hr>
tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။
ဖြစ်ရပ်ဂုဏ်တော်များ
<hr>
tag သည် HTML ရှိ Event Attributes ကိုလည်း ပံ့ပိုး ပေးပါသည် ။
နောက်ထပ် ဥပမာများ
ဥပမာ
<hr> ဒြပ်စင် (CSS ဖြင့် ညှိပါ)
<hr style="width:50%;text-align:left;margin-left:0">
ဥပမာ
Noshaded <hr> (CSS with with)-
<hr style="height:2px;border-width:0;color:gray;background-color:gray">
ဥပမာ
<hr> ဒြပ်စင် (CSS ဖြင့်) အမြင့်ကို သတ်မှတ်ပါ-
<hr style="height:30px">
ဥပမာ
<hr> ဒြပ်စင် (CSS ဖြင့်) အကျယ်ကို သတ်မှတ်ပါ-
<hr style="width:50%">
ဆက်စပ်စာမျက်နှာများ
HTML DOM ရည်ညွှန်းချက်- HR Object
မူရင်း CSS ဆက်တင်များ
ဘရောက်ဆာအများစုသည် <hr>
အောက်ဖော်ပြပါ ပုံသေတန်ဖိုးများဖြင့် အစိတ်အပိုင်းကို ပြသလိမ့်မည်-
ဥပမာ
hr {
display: block;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
border-style: inset;
border-width: 1px;
}