အေရးႀကီးဆံုးကေတာ့ Computer ပါ။
ဟုတ္ပါတယ္ အသံုးျပဳလို႔ ရၿပီး Windows တင္ထားတဲ့ Computer ဆို ေရးလို႔ ရပါၿပီ။
တကယ္ေတာ့ HTML ေရးဖို႔ အတြက္ လိုအပ္တာေတြက HTML Code ေတြေရးလို႔ရတဲ့ Text editor
တစ္ခုနဲ႔ ေရးၿပီးတာေတြကို စမ္းဖို႔ Browser တစ္ခု လိုအပ္ပါတယ္။ Computer မွာ
editor တစ္ခုနဲ႔ Browser တစ္ခု install လုပ္ထားရပါမယ္။ ဒါေတြကို ဘယ္လို Install
လုပ္ရမလဲ။ မလုပ္တက္ဘူး။ ရတယ္ ဒါလဲ ျဖစ္ပါတယ္။ ေစာေစာက ေျပာခဲ့တဲ့ အတိုင္း
အသံုးျပဳလို႔ ရၿပီး Windows တင္ထားတဲ့ computer မွာ Notepad ဆိုတဲ့ အရမ္း
႐ိုးရွင္းတဲ့ text editor ရွိပါတယ္။ Browser အတြက္ ကလည္း IE လို႔ေခၚတဲ့ Internet Explorer ရွိၿပီးသားပါ။
HTML with Notepad and IE
HTML ေရးေတာ့မယ္။ Notepad ဖြင့္ ... ဘယ္မွာလဲ Notepad ???
Notepad ရဲ့ တည္ေနရာကေတာ့ Start->All Programs ->Accessories ထဲမွာပါ။
Windows key + r ႏိုပ္ၿပီး ေပၚလာတဲ့ Run ထဲမွာလဲ notepad လို႔႐ိုက္ရွာလို႔ရပါတယ္။
HTML with Notepad and IE
HTML ေရးေတာ့မယ္။ Notepad ဖြင့္ ... ဘယ္မွာလဲ Notepad ???
Notepad ရဲ့ တည္ေနရာကေတာ့ Start->All Programs ->Accessories ထဲမွာပါ။
Windows key + r ႏိုပ္ၿပီး ေပၚလာတဲ့ Run ထဲမွာလဲ notepad လို႔႐ိုက္ရွာလို႔ရပါတယ္။
Notepad ေပၚလာၿပီဆိုရင္ ၎ထဲမွာ HTML Code ေတြကို စေရးပါမယ္။
HTML Code:
<html>
<head>
<title>This is title</title>
</head>
<body>
This is Body
</body>
</html>
ေရးၿပီးရင္ေတာ့ Notepad မွာရွိတဲ့
File->Save As.. နဲ႔ save လုပ္ပါမယ္။
Save လုပ္တဲ့ ေနရာမွာ ပံုထဲက အတိုင္း
File name မွာ index.html နဲ႔ Save as type မွာလည္း All Files လို႔ ေျပာင္းၿပီး
save ပါမယ္။ Save လုပ္လိုက္တဲ့ location ကိုေတာ့ မွတ္ထားေပါ့။ ၿပီးရင္ save
လုပ္ထားတဲ့ location မွာရွိတဲ့ file ကို IE ( Internet Explorer နဲ႔
ဖြင့္ၾကည့္မယ္။
This is title ဆိုတဲ့ေနရာက
<title>This is title </title> လို႔ေရးထားတာေၾကာင့္ ေပၚေနတာျဖစ္ၿပီး
This is Body ဆိုတာကေတာ့ <body> This is Body </body> ေၾကာင့္ေပၚေနတာ
ျဖစ္ပါတယ္။ တစ္ခုေတာ့ ေျပာစရာရွိမွာပါ။ file name ကို ဘာလို႔ index လို႔
ေပးတာရတာလဲ။ ဒါကေတာ့ ရွင္းျပရတာ နည္းနည္းေတာ့ ေစာပါေသးတယ္။ ဒါေပမဲ့လည္း
ရွင္းျပပါမယ္။ index လို႔ ဘာလို႔ေပးတာလဲ ဆိုေတာ့ Web site တစ္ခု ကို Browser ကေန
ေခၚလိုက္တာ နဲ႔ တက္လာတဲ့ Web page က index ပါ။ index ရယ္လို႔ေတာ့ မဟုတ္ဘူးေပါ့။
ဒါေပမဲ႔ Web sever ေတြက Web site မွာ ရွိတဲ့ files ေတြထဲမွာ အရင္ဆံုး သြားရွာတာက
index file ပါ။ အဲ့ဒီ index မရွိရင္ home၊ ၿပီးေတာ့ default ။ တျခားဟာေတြလဲ
ရွိေသးတာေပါ့။ index ကေတာ့ အမ်ားဆံုး အသံုးျပဳတာပါ။ ေျပာရရင္ေတာ့ Web site ရဲ့
အရင္ဆံုး အလုပ္လုပ္မယ့္ file ေပါ့။






0 comments:
Post a Comment