Tech4All
JavaScript မှာ code တွေကို tags ထဲမှာထည့်ရေးရပါတယ်။
JavaScript code
The script tag မှာအရေးကြီးတဲ့ attributes (2) ခုရှိပါတယ်။
- Language attribute: သူကတော့ ဘယ် scripting language ကိုသုံးမလဲဆိုတာကို သတ်မှတ်ဖို့ အတွက်ဖြစ်ပါတယ်။
- Type attribute: သူကတော့ recommended ပေးတဲ့သုံးမယ့် scripting language နဲ့ value setup အတွက်ပါ။ “text/javascript”.
JavaScript code
အောက်မှာပေးထားတဲ့ code ကို java script စစမ်းမယ့်သူတွေအတွက်သာရေးပေးလိုက်တာဖြစ်ပါတယ်။
document.write("Hello World!")
08/07/2022
HTML ကိုစပြီးရေးမယ့်သူတွေက html editor ကိုစရွေးရပါမယ်။
အလွယ်ဆုံးကတော့ notepad မှာရေးပြီး .html နဲ့ save ကာ save ထားတဲ့ file ကို double clike နဲ့ run လည်းရပါတယ်။
Visual Studio Code ကတော့ no.1 editor ဖြစ်နေပါတယ်။အဲ့ဒါနဲ့ရေးချင်တဲ့သူတွေကတော့ ဒီ link (https://code.visualstudio.com/download) မှာ ကိုယ့် OS အလိုက် download ချနိုင်ပါတယ်။
အကယ်၍ sublime text မှာရေးချင်တဲ့သူတွေကတော့ https://www.sublimetext.com ဒီ link ကနေ download ချပြီး install လုပ်ပါ။
Install လုပ်ပြီးရင် html code မရေးခင်မှာ Save လုပ်ပါမယ်။ ctrl+s ကိုနှိပ်ပြီး သိမ်းချင်တဲ့နေရာမှာ file_name.html နဲ့သိမ်းပါ။
ဥပမာ index.html
Html ရေးရင် ကြားမှာရေးရပါတယ်။ html ရဲ့ tab တွေမှာ အဖွင့် နဲ့အပိတ် အမြဲပါရပါတယ်။
အဖွင့်အပိတ် tab ကြားမှာ section နဲ့ ကိုထည့်ရေးရပါတယ်။
Web Page
This is my first web page //စာရဲ့ size ကို အကြီးဆုံး size လိုချင်လို့ h1 tab ထဲထည့်ထားတာပါ
How it looks?
It looks Nice!!!
ဒီ code ကို ကိုယ့်ရဲ့ editor မှာ ရေးပြီး .html နဲ့ save ပြီးပြီဆို file ပေါ်မှာ double click or R-clickကနေ open in browser ဆိုရင် ကိုယ့်ရဲ့ default browser မှာပေါ်လာမှာဖြစ်ပါတယ်။
Click here to claim your Sponsored Listing.
Category
Contact the school
Telephone
Website
Address
Yangon