Myanmar Coder Guide

Course Outline from w3school.com

Friday, December 25, 2020

CSS Comments

CSS Comments ကို ဘယ်နေရာမှာ အသုံးပြုလဲ ?

CSS Comments ကို code တွေရေးတဲ့အခါ ရှင်းလင်းစွာ သိရဖို့ ၊ ပြင်တဲ့အခါ လွယ်ကူဖို့ ဘယ် CSS ကို အသုံးပြုထားလဲဆိုတာ သိရဖို့ အတွက် အသုံးပြုပါတယ်။

CSS Comments ကို ဘယ်လိုအသုံးပြုလဲ ?

CSS Comment ကို style အဖွင့် နဲ့ style အပိတ် ကြားမှာ ရေးရပါမယ်။

CSS Comments

  1. <!Doctype HTML>
  2. <html>
  3.     <head>
  4.         <style>
  5.              body {
  6.                  backgound-color: orange; /*this is body background color*/
  7.              }
  8.              h1 {
  9.                  color: black; /*this is heading one font color*/
  10.                  text-align: center; /*this is heading text center*/
  11.              }
  12.              p {
  13.                  font-size: 16px; /*this is p text is font size*/
  14.                  font-weight: bold;
  15.              }
  16.         </style>
  17.     </head>
  18.     <body>
  19.         <h1>This is Heading 1</h1>
  20.         <p>This is Paragraph</p>
  21.     </body>
  22. </html>

No comments:

Post a Comment