CSS Comments ကို ဘယ်နေရာမှာ အသုံးပြုလဲ ?
CSS Comments ကို code တွေရေးတဲ့အခါ ရှင်းလင်းစွာ သိရဖို့ ၊ ပြင်တဲ့အခါ လွယ်ကူဖို့ ဘယ် CSS ကို အသုံးပြုထားလဲဆိုတာ သိရဖို့ အတွက် အသုံးပြုပါတယ်။
CSS Comments ကို ဘယ်လိုအသုံးပြုလဲ ?
CSS Comment ကို style အဖွင့် နဲ့ style အပိတ် ကြားမှာ ရေးရပါမယ်။
CSS Comments
<!Doctype HTML><html><head><style>body {backgound-color: orange; /*this is body background color*/}h1 {color: black; /*this is heading one font color*/text-align: center; /*this is heading text center*/}p {font-size: 16px; /*this is p text is font size*/font-weight: bold;}</style></head><body><h1>This is Heading 1</h1><p>This is Paragraph</p></body></html>
No comments:
Post a Comment