Professional Documents
Culture Documents
HTML Myanmar Vesion PDF
HTML Myanmar Vesion PDF
HTML Myanmar Vesion PDF
HTML မိတ္ဆက္
HTML History
1989 ခုက Tim Berners-Lee နဲ႕ Rober Calliau ဟာ Research Documents ေတြကို ပိုမိုျမန္ဆန္ေကာင္းမြန္ မယ့္
နည္းလမ္းကို ရွာေဖြခဲ့ပါတယ္။ ၂ ႏွစ္ ေလာက္ၾကာေတာ့ Berners-Lee ဟာ browser ေတြက ၾကည့္ရႈဖတ္သားႏိုင္ျပီး Tag
မ်ားႏွင့္ ဖြဲ႕စည္းတည္ေဆာက္ထားတဲ့ နည္းပညာတစ္ခုကို ျပဳလုပ္ႏိုင္ခဲ့ပါတယ္။ ထို႕ေနာက္အဲဒီ tage ေတြထဲမွာ Hyper-Link
နဲ႕ document အခ်င္းခ်င္းခ်ိတ္ဆက္ႏိုင္တဲ့ tag ေတြပါထည့္သြင္းႏိုင္ခဲ့ပါသည္။ Berners-Lee ရဲ႕ နည္းပညာကို Hyber Text
Markup Language ဆိုတဲ့ HTML ပါပဲ။
Tag ဆိုတာဘာလဲ
Tag ဆိုတာကေတာ့ ရိုးရိုး Text ေတြနဲ႕ HTML code ေတြကို ခြဲျခားလို႕ရေအာင္လုပ္ထားတာပါ။ ဘယ္လိုမ်ဳိးလဲဆိုရင္ေတာ့
<b>This is bold </b> ဆိုရင္ web browser နဲ႕ ၾကည့္ရင္ စာလံုးဟာ bold ျဖစ္ေနပါလိမ့္မယ္။ အဲဒီမွာ <b> နဲ႕ </b>
တို႕ဟာ tag ေတြပါ။ အမ်ားအားျဖင့္ tag ေတြဟာ အဖြင့္ နဲ႕ အပိတ္ပါ ပါတယ္။ အပိတ္ဆိုရင္ / ေလးခံထားေပးရပါတယ္။
Page 1
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
HTML ကိုေလ့လာမယ္
Notepad ျဖင့္စတင္ျခင္း
၁. Windows Key + R ကို ႏိွပ္လိုက္ပါ။ Run Dailog Box တက္လာပါမည္။ ထို႕ေနာက္ notepad လုိ႕ရိုက္လိုက္ပါ။
ျပီးလွ်င္ OK ကို ႏိွပ္လိုက္ပါ။ ဒါဆိုရင္ notepad တက္လာပါလိမ့္မယ္။
HTML စတင္ေရးသားျခင္း
<html>
<head>
<title>This is title</title>
</head>
<body>
This is body
</body>
</html>
Page 2
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
၂. အဲဒါကို တေနရာ မွာ save သြင္းလိုက္ပါ။ Save Dialog box တက္လာရင္ filetype ကို All file လို႕ေပးလိုက္ပါ။ file
name ကို firstrun.html လို႕ေပးလိုက္ပါ။ firstrun သည္ မိမိ၏ ႏွစ္သက္ရာ နာမည္ေပးႏိုင္သည္။ .html သည္ file extension
ျဖစ္သည္။ HTML ေရးထားေသာ page မ်ားကို .html ႏွင့္ .htm လို႕ေပးမွသာ browser တြင္ ေပၚပါလိမ့္မည္။
ျပင္မယ္ဆိုရင္ေတာ့
IE7 မွာဆိုရင္
Page > View Source ကိုႏိွပ္လိုက္ပါက Notepad နဲ႕ ကိုယ္ေရးထားတဲ့ HTML ပြင့္လာပါမယ္။
IE 6 မွာဆိရင္
View > Source ကို ႏိွပ္လိုက္ပါက Notepad နဲ႕ ကိုယ္ေရးထားတဲ့ HTML ပြင့္လာပါမယ္။
အဲဒီမွာ ေရးထားတဲ့ codeေတြကို ဖတ္ႏိုင္သလို ကိုယ့္စက္ထဲမွာေရးထားတဲ့ page ဆိုရင္ေတာ့ ျပင္ျပီး တစ္ခါတည္း save
လုပ္ႏိုင္ပါတယ္။ Internet ေပၚက Web site ေတြကိုေတာ့ view > source ကေနဖြင့္ျပင္ျပီး save လုပ္လို႕မရပါဘူး။
Page 3
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
Header Tag
<html>
<head>
<title>Example Of Header</title>
</head>
<body>
<h1>This is Header</h1>
This is normal text
</body>
</html>
အဲဒီ code ေလးကို notepad ထဲမွာထည့္ေရး.. ျပီးေတာ့ run ၾကည့္လိုက္ပါ။ အခုလိုျမင္ရပါလိမ့္မယ္။ Head Tag က h1
ကေန h6 အထိ ရိွပါတယ္။ နံပါတ္ၾကီးေလေလ ေသးသြားေလေလပဲ။ h6 ဆိုအေသးဆံုးကို ေရာက္သြားျပီ။ ကဲ လက္ေတြ႕
စမ္းၾကည့္ရေအာင္။ notepad ထဲမွာ ေအာက္ကလို ရိုက္ျပီး save လုပ္လိုက္။ ျပီးရင္ ဖြင့္ၾကည့္လိုက္ရင္ ေတြ႕ရပါလိမ့္မယ္။
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>H1</h1>
<h2>H2</h2>
<h3>H3</h3>
<h4>H4</h4>
<h5>H5</h5>
<h6>H6</h6>
</body>
</html>
Page 4
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
Line Break
HTML မွာ စာတစ္ေၾကာင္းဆင္းခ်င္ရင္ေတာ့ <br/> ကိုသံုးပါတယ္။ သူ႕မွာ close tag မပါဘူး။ <br/> ပဲေရးေရး <br>
ပဲေရးေရးရပါတယ္။
<html>
<head>
<title>Example</title>
</head>
<body>
First Line<br/>Second Line<br>Third Line
</body>
</html>
bold မို႕လို႕ ကၽြန္ေတာ္တို႕ေတြ <b> ကိုသံုးပါမယ္။ ေနာက္ျပီး italic မို႕လို႕ <i> ေပါ့။ ဒါဆိုရင္ Underline ကဘာလဲဆိုရင္
သိျပီးသားေလာက္ပါ။ ကၽြန္ေတာ္တို႕ေတြ <u> ကိုသံုးပါမယ္။ အဲဒါကို notepad ထဲမွာ ဒီလိုေရးျပီး run လိုက္ရင္ရပါတယ္။
<html>
<body>
<b>This is bold</b> <br/>
<i>This is italic</i> <br/>
<u>This is underline</u> <br/>
</body>
</html>
Bold လုပ္မယ္။ ေနာက္ျပီး အဲဒါကို underline သားမယ္။ ဒါမွ မဟုတ္ italic လုပ္မယ္။ အဲလိုမ်ဳိးလုပ္ခ်င္တယ္။ ရပါတယ္။ tag
ေတြထဲမွာ tag ေတြထည့္လိုက္ေပါ့။ ဒီလိုထည့္လို႕ရပါတယ္။
Page 5
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
ဘာနဲ႕ စစရပါတယ္။ အစဥ္တိုင္းမဟုတ္ပဲ <b><i> This is bold italic </i></b> လို႕ေရးလည္းျဖစ္ပါတယ္။ ေနာက္ျပီး
tag အဖြင့္ေတြ အပိတ္ေတြက ၾကိဳက္သလိုျဖစ္ေနလို႕ရပါတယ္။ ဒါေပမယ့္ structure က်က်ေလး။ ပံုစံက်က်ေလး
ျဖစ္ေနရင္ေကာင္းတာေပါ့။ ေနာက္မို႕ဆို code ကိုျပန္ဖတ္ရခက္တာေပါ့။
Pre Tag
<html>
<head>
<title>Example</title>
</head>
<body>
<pre>Pre Tag, Now Enter
Now Tab Tab
</pre>
</body>
</html>
Paragraph Tag
Page 6
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
text file is a file type typically identified by the .txt file name extension.</p>
<b> How do I change the font style and size?</b>
<p>Changes to the font style and size affect all the text in the document.<br/>
Click the Format menu, and then click Font.<br/>
Make your selections in the Font, Font style, and Size boxes.<br/>
An example of how your font will look appears under Sample.<br/>
When you are finished making font selections, click OK.<br></p>
</body>
</html>
Horizonal Line
ကၽြန္ေတာ္တို႕ေတြ horizonal မ်ဥ္းသားခ်င္တဲ့ အခါမွာ သံုးလို႕ရပါတယ္။ သံုးပံုသံုးနည္းကေတာ့ <hr> ပါပဲ။ close tag
မပါပါဘူး။
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>About Notepad</h1>
<p>Notepad is a basic text editing program and it is most commonly used to view or edit text files. A
text file is a file type typically identified by the .txt file name extension. </p>
<hr>
Page 7
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
အထက္ပါ code ကို run လိုက္ရင္ ဒီလိုျမင္ရမယ္။ အဲမွာ <hr> ထည့္ထားတဲ့ေနရာက line ေလးတားထားတာကို
ျမင္ရပါလိမ့္မယ္။
Attribue
ကၽြန္ေတာ္တို႕ေတြဟာ tag ေတြမွာလည္း attribute ေတြထည့္ျပီး သံုးႏိုင္ပါတယ္။ attribute ဆိုတာကေတာ့ အဲဒီ tag
ပိုင္ဆိုင္တဲ့ properties ေပါ့။ tag တိုင္းမွာေတာ့ attribute မရိွပါဘူး။ အခု ဦးစြာ အရင္ဆံုး body မွာပါတဲ့ color attribute
အေၾကာင္းေလးနဲ႕ စလိုက္ရေအာင္။
Body Color
<html>
<head>
<title>Example</title>
</head>
<body bgcolor=silver>
Body BGCOLOR
</body>
</html>
Page 8
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
ကၽြန္ေတာ္တို႕ေတြဟာ color ေတြကို code အေနနဲ႕လည္း အသံုးျပဳႏိုင္ပါတယ္။ သံုးရမွာကေတာ့ RGB color ပါ။ Hex
code number ကိုအသံုးျပဳရပါတယ္။ #FF0000 ဆိုရင္ေတာ့အနီေရာင္ပါ။ ေရွ႕ဆံုး ၂ လံုးက အနီေရာင္ျဖစ္ျပီး အလယ္
၂ လံုးက အစိမ္းေရာင္ပါ။ ေနာက္ဆံုး ၂လံုးကေတာ့ အျပာေရာင္ေပါ့။ အဲဒီ အေရာင္ ၃ေရာင္ကို စပ္ျပီး သံုးရပါတယ္။
တကယ္လို႕ color ေတြကို မသိဘူးဆိုရင္ photoshop ကေနလည္း ၾကိဳက္ႏွစ္သက္တဲ့ အေရာင္ကို ယူျပီးသံုးႏိုင္ပါတယ္။
ဘယ္လိုယူရမလဲဆိုရင္ေတာ့ အရင္ဆံုး photoshop ကိုဖြင့္လိုက္။ ဘယ္ဘက္ ေအာက္နားမွာ color ေရြးဖို႕ေလးပါတယ္။
အဲဒါေလးကို double click လုပ္လိုက္ပါ။ color dialog box တက္လာပါမယ္။ ျပီးရင္ ႏွစ္သက္ရာ အေရာင္ေရြးပါ။ color
အေရာင္ေရြးျပီးရင္ ေအာက္နားမွာ hex code ေလးကို copy ကူးလိုက္ရံုပါပဲ။ ကၽြန္ေတာ္တို႕ေတြ color အေနနဲ႕သံုးခ်င္ရင္ #
ေလးကို ေရွ႕မွာ ခံျပီးသံုးလိုက္ရံုပါပဲ။
<html>
<head>
<title>Example</title>
</head>
<body bgcolor=#e5bb2c>
Body BGCOLOR Hex code
</body>
</html>
Page 9
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
attribute အေၾကာင္းေလးေျပာပါမယ္။
Hr Attribute
<html>
<head>
<title>Example</title>
</head>
<body bgcolor=#e0e0e0>
Default HR
<hr>
Hr with size=1
<hr size=1>
Hr with size=5
<hr size=5>
Hr with size=10
<hr size=10>
Hr with size=10 and noshade
<hr size=10 noshade>
Hr with size=5 and color
<hr size=5 color=#D60000>
</body>
</html>
အဲမွာ size ကေတာ့ အရြယ္အစားပါ။ noshade ဆိုတာကေတာ့ shade မပါတဲ့ဟာကို ေျပာတာပါ။ ေျဗာင္ၾကီးေပါ့။ color
ကေတာ့ မိမိၾကိဳက္ႏွစ္သက္တဲ့အေရာင္ထည့္လို႕ရပါတယ္။
List
List ပိုင္းမွာ order list နဲ႕ unorder list ဆိုျပီးရိွပါတယ္။ တနည္းအားျဖင့္ နံပါတ္စဥ္နဲ႕ list နဲ႕ နံပါတ္စဥ္ေတြမပါတဲ့ list ေပါ့။
ေနာက္ျပီး defination list ဆိုတာရိွပါေသးတယ္။ လူသံုးနည္းပါတယ္။ ပထမဆံုး unorder list အေၾကာင္းေလးသြားရေအာင္။
Unorder list
Page 10
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
<html>
<head>
<title>Example</title>
</head>
<body>
<h3>Unorder List</h3>
<ul>
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
</body>
</html>
<ul> က unorder list ပါ။ <li> ကေတာ့ list ေပါ့။ list ၁ ခုပဲဆိုရင္ <li>1</li>။ ၂ခုဆိုရင္ <li>1</li> <li>2</li>
လို႕ေရးပါတယ္။ အေပၚက code ကို run လုိက္ရင္ list ေလးေတြကို ျမင္ရမွာပါ။ အကုန္လံုးက အဝိုင္းေလးေတြနဲ႕ List ပါပဲ။ ကဲ
အခု attribute ေလးထည့္ျပီး ပံုစံေျပာင္းၾကည့္ရေအာင္။
<html>
<body>
<h3>Unorder List</h3>
<h5>Disc</h5>
<ul type="disc">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
<h5>Square</h5>
<ul type="square">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
<h5>Circle</h5>
<ul type="circle">
Page 11
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
</body>
</html>
unorder list မွာ disc, square, circle ဆိုျပီး ၃ မ်ဳိးေျပာင္းလို႕ရပါတယ္။ default ကေတာ့ disc ပါ။
Ordered List
<html>
<head>
<title>Example</title>
</head>
<body>
<h3>Ordered List</h3>
<ol>
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
</body>
</html>
<ol> ကေတာ့ order list ပါ။ အဲဒီ code ေလးကို run လိုက္ရင္ နံပါတ္
အစဥ္လိုက္ေပၚလာပါလိမ့္မယ္။
သူ႕မွာလည္း attribute ေတြရိွပါတယ္။
<html>
<head>
<title>Example</title>
</head>
<body>
<h3>Ordered List</h3>
<ol type="1">
<li>First Item</li>
Page 12
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type A</h5>
<ol type="A">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type a</h5>
<ol type="a">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type a</h5>
<ol type="I">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type i</h5>
<ol type="i">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
</body>
</html>
Page 13
HTML For Web Design Suit HTML ကိုေလ့လာမယ္
Definition List
<html>
<head><title>Example</title></head>
<body>
<h3>Definition List</h3>
<dl>
<dt>HTML
<dd>Language used to develop Web Pages
<dt>Image
<dd>Any graphic such as an icon,bullet, line, photo , or illustration
</dl>
</body>
</html>
Defination List က အျခား List ေတြနဲ႕ မတူပါဘူး။ သူ႕မွာက defination term နဲ႕ defination ပါ ပါတယ္။ စရင္ေတာ့ dl
နဲက စရပါတယ္။ defination term ကိုေတာ့ <dt> အသံုးျပဳျပီး defination ကိုေတာ့ <dd> သံုးပါတယ္။ သူက အျခား list
နဲ႕မတူတဲ့ ေနာက္တစ္ခ်က္ကေတာ့ tag အပိတ္မပါတာပဲ။ </dl> တစ္ခုပဲပါတယ္ဆိုတာကို ေတြ႕ႏိုင္ပါတယ္။
ကဲ... အခုဆိုရင္ေတာ့ HTML ကိုအၾကမ္းအားျဖင့္ေလာက္ေတာ့ သိေလာက္ျပီေပါ့။ အခုကၽြန္ေတာ္တို႕ေတြ ေနာက္ထပ္
ေသေသခ်ာခ်ာ သိရေအာင္ ေနာက္ထပ္ တစ္ခန္းသြားရေအာင္။
Page 14
HTML For Web Design Suit Creating Web Page With Apperance And Link
Optional Tag
Move To Center
<html>
<head><title>Example</title></head>
<body>
<center>
This is center
</center>
</body>
</html>
<html>
<head><title>Example</title></head>
<body>
<h1 align="justify">Test</h1>
</body>
</html>
Marquee
Page 15
HTML For Web Design Suit Creating Web Page With Apperance And Link
<html>
<head><title>Example</title></head>
<body>
<marquee>I’m moving</marquee>
</body>
</html>
Page 16
HTML For Web Design Suit Creating Web Page With Apperance And Link
Font
Font ကေတာ့ HTML မွာအေရးပါတဲ့ အပိုင္းပါ။ Web Page တစ္ခုမွာ ကိုယ္လိုခ်င္တဲ့ font ကုိေျပာင္းလဲဖို႕အတြက္ font tag
ကိုသိမွ ျဖစ္မွာပါ။။
<html>
<head><title>Example</title></head>
<body>
<font face="Zawgyi-one">Zawgyi Font ျဖင့္အသံုးျပဳထားသည္</font>
</body>
</html>
အဲဒါဆိုရင္ <font> နဲ႕ </font> ၾကားမွာရိုက္ထားတဲ့ စာက zawgyi-one font နဲ႕ေပၚေနမွာပါ။ face="font name"
ကိုထည့္ရတာပါ။
Page 17
HTML For Web Design Suit Creating Web Page With Apperance And Link
size [number] သူကေတာ့ font ရဲ႕ အရြယ္အစားေျပာင္းတာပါ။ ပံုမွန္က size=3 ပါ။ စာလံုး size
ၾကီးလိုလွ်င္ size=4 ကေန 7 ထိထည့္လို႕ရပါတယ္။ 1 ကေန 7 အထိရိွပါတယ္။
3 ကေတာ့ ပံုမွန္စာလံုးပါ။ ေနာက္ျပီး +1 ကေန +6 ရိွပါတယ္။ ပံုမွန္ကို
ဘယ္ေလာက္တိုးမယ္ဆိုပါ။ +2 ဆိုရင္ ပံုမွန္က 3 ဆိုေတာ့ 5 ျဖစ္သြားမွာေပါ့။ အဲလိုမ်ဳိးပဲ
-1 ကေန -6 ထိရိွပါေသးတယ္။ -1 ဆိုရင္ ပံုမွန္က 3 ဆိုေတာ့ 2 ျဖစ္သြားမွာေပါ့။
ဒီလိုေလး သံုးလို႕ရပါတယ္။
<font face="Zawgyi-one" size="5">Zawgyi Font ျဖင့္အသံုးျပဳထားသည္</font>
<font face="Zawgyi-one" size="+2">Zawgyi Font ျဖင့္အသံုးျပဳထားသည္</font>
<font face="Zawgyi-one" size="-2">Zawgyi Font ျဖင့္အသံုးျပဳထားသည္</font>
Tag Description
<b></b> ဒါကိုေတာ့ အေပၚမွာလည္း ေျပာျပီးပါျပီ။ သူက font ကို blod လုပ္တာပါ။
<big></big> သူကလည္း bold လုပ္တာပါပဲ။
<blockquote></blockquote> ဒါကေတာ့ tab ခုန္တာေပါ့။ ကိုယ့္စာပိုဒ္ေလးကို တစ္တည္းတစ္သနု္႕ထဲ ေဖာ္ျပခ်င္တဲ့
အခါမွာ သံုးၾကပါတယ္။
<i></i> italic လုပ္တာကို အေပၚမွာေျပာခဲ့ဘူးပါတယ္။
<pre></pre> ဒီ code ကိုလည္း သိမွာပါ။ ကၽြန္ေတာ္တို႕ေတြ enter ေတြ tab ေတြမလိုပဲ
သံုးခဲ့တာေလ။
<small></small> သူကေတာ့ စာလံုးကို ပံုမွန္ထက္ ေသးေအာင္ လုပ္ေပးတာပါ။
<strike></strike> အဲဒါေလးကေတာ့ စာလံုးေတြရဲ႕ အလယ္မွာ မ်ဥ္းသားလိုက္တာပါ။
<sub></sub> သူကေတာ့ စာလံုးကို ေအာက္နားဆင္းတာေလးေပါ့။ H2 လိုမ်ဳိးေလးအတြက္ေပါ့။
<sup></sup> သူကေတာ့ စာလံုးကို အေပၚတင္တာပါ။ 22 လိုမ်ဳိးေပါ့။
<tt></tt> ဒါက typing font ကိုေျပာတာပါ။ typing ရိုက္သလို စာလံုးေပၚေအာင္အတြက္ပါ။
<u></u> ဒါကိုေတာ့ သိျပီးေလာက္ျပီလို႕ထင္ပါတယ္။ underline တားတာပါ။
အခုဆက္ျပီးေတာ့ Link ေတြအေၾကာင္းေျပာပါမယ္။ Link ကေတာ့ Web Page မွာအဓိက အခန္းက ပါဝင္ပါတယ္။ Page
တစ္ခုနဲ႕ တစ္ခု ခ်ိတ္ဆက္ထားဖို႕ အတြက္ Link ခ်ိတ္တတ္ဖို႕လိုပါတယ္။
Page 18
HTML For Web Design Suit Creating Web Page With Apperance And Link
Page Link လုပ္တယ္ဆိုတာကေတာ့ page တစ္ခုကေန ေနာက္ page တစ္ခုကို ခ်ိတ္ဆက္ထားပါတယ္။ ေအာက္က exam-
ple ပံုေလးကို ၾကည့္လိုက္ရင္ နားလည္ႏိုင္ပါတယ္။
ကၽြန္ေတာ္တို႕ေတြ Home Page ကေန Gallery Page ကို Go To Home ဆိုတဲ့ စာလံုးေလး ႏိွပ္လိုက္တာနဲ႕ ကူးသြားမယ္။
ေနာက္ျပီး Gallery ကေနလည္း Home Page ကို Home ဆိုတဲ့ စာလံုးေလးကို ႏိွပ္လိုက္တာနဲ႕ Home page ကို
ျပန္ေရာက္သြားမယ္။ အဲဒီလိုမ်ဳိးေလး ျဖစ္ေအာင္ ကၽြန္ေတာ္တို႕ ေအာက္ကအတိုင္း ေရးလိုက္မယ္။ File ၂ ခုရိွရမယ္ေပါ့။
index.html နဲ႕ gallery.html ေပါ့။ ေနရာအတူတူပဲ သိမ္းထားေနာ္။ C:\example\index.html နဲ႕ C:\example\gallery.html
အဲလိုမ်ဳိးေလး ေနရာအတူတူျဖစ္ရမယ္။
Index.html
<html>
<head><title>Example</title>
<body>
<!-- Link To Gallery Page -->
<a href="gallery.html">Gallery</a>
</body>
</html>
Gallery.html
<html>
<head><title>Example</title>
<body>
<!-- Link To Home Page -->
<a href="index.html">Home</a>
</body>
</html>
<!-- comment --> အဲဒါက comment ေရးထားတာပါ။ <!-- နဲ႕ --> ၾကားမွာ ေရးထားတဲ့ စာေတြကို အလုပ္မလုပ္ပါဘူး။
ကၽြန္ေတာ္တို႕ home page ကို ဘာလို႕ index.html နဲ႕ သိမ္းရလဲဆို web page ေတြမွာ စတက္တဲ့ page က index.html
Page 19
HTML For Web Design Suit Creating Web Page With Apperance And Link
ပါ။ ဒါမွ မဟုတ္ default.html ေပါ့။ www.example.com လို႕ေခၚလိုက္ရင္ page တစ္ခုတက္လာမယ္။ တကယ္တမ္းေတာ့
www.example.com/index.html ဆိုတာကို သြားေခၚထားတာပါ။ အေနာက္က index.html မပါလည္း အလုပ္လုပ္ပါတယ္။
ဒါေၾကာင့္ Home Page ဆိုရင္ေတာ့ index.html ဆိုျပီးသံုးရပါတယ္။ ဒါမွမဟုတ္ default.html ဆိုလည္းရပါတယ္။
Page 20
HTML For Web Design Suit Creating Web Page With Apperance And Link
Image
ပံုေတြကေတာ့ web page တစ္ခုမွာ မျဖစ္မေနပါဝင္ရပါတယ္။ ကိုယ္တည္ေဆာက္တဲ့ page ကို လွပျပီး အဓိပၸာယ္ျပည့္စံုဖို႕
အတြက္ပါ။ ကဲ... ပံုေလးေတြ ထည့္ၾကည့္ရေအာင္။
<html>
<head>
<title>Example</title>
</head>
<body>
<img src="Apple-logo.jpg"> Apple Logo</body>
</html>
<html>
<head>
<title>Example</title>
</head>
<body>
<img src="Apple-logo.jpg" width=80px height=80px> Apple Logo</body>
</html>
width နဲ႕ height ဆိုတဲ့ attribute က ပံုရဲ႕ size ကို ထိန္းခ်ဳပ္ေပးပါတယ္။ ကိုယ္ၾကိဳက္တဲ့ အလ်ားကို width မွာထည့္ျပီး
အျမင့္ကိုေတာ့ height မွာထည့္ျပီး ပံုရဲ႕ size ကိုျပင္လို႕ရတယ္။
Page 21
HTML For Web Design Suit Creating Web Page With Apperance And Link
Image ပိုင္းမွာ ေျပာစရာေတြ ေတာ္ေတာ္မ်ားပါတယ္။ သူ႕မွာ attribute ေတြထပ္ရိွေသးတယ္။ ဘာလည္းဆိုေတာ့ text align
ေပါ့။ text align ကို img code ထဲမွာ align ဆိုတဲ့ attribute ကိုသံုးတယ္။
Align ရွင္းျပခ်က္
top စာတစ္ေၾကာင္းကို ပံုရဲ႕ ေဘးနားက align မွာ အေပၚဆံုးမွာ ေဖာ္ျပေပးတာပါ။
bottom သူကေတာ့ default ပါ။ စာသားကို ပံုေအာက္ဘက္မွာ ေဖာ္ျပတာကိုေတြ႕ရပါမယ္။
middle စာသားကို ပံုအလယ္မွာ မွာေပးတာပါ။
left သူကေတာ့ ပံုကို page ရဲ႕ ဘယ္ဘက္ကိုပို႕လိုက္ျပီး စာသားအကုန္လံုးကို ပံုေဘးမွာ ေဖာ္ျပေပးတာပါ။
right သူကလည္း Left နဲ႕ အတူတူပါပဲ။ ညာဘက္ကို ပံုေရြ႕သြားျပီ စာသားအားလံုးကို ပံုရဲ႕ ဘယ္ဘက္မွာ
ေဖာ္ျပေပးပါမယ္။
Page 22
HTML For Web Design Suit Creating Web Page With Apperance And Link
<html>
<head>
<title>Example</title>
</head>
<body>
<a href="fullsize.jpg"> <!-- Full size when click -->
<!-- img src is small size -->
<img src="smallsize.jpg" width=80px height=80px border=0>
</a>
</body>
</html>
Page 23
HTML For Web Design Suit Creating Web Page With Apperance And Link
အခုဆိုရင္ေတာ့ ကၽြန္ေတာ္တို႕ေတြ link ေတြ လုပ္တတ္သြားျပီ။ page တစ္ခုကေန တစ္ခုကို ေခၚတတ္သြားျပီ။ ပံုေတြ
ထည့္တတ္သြားျပီ။ အခုအခန္းမွာ ကၽြန္ေတာ္က sample ေသးေသးေလးေတြပဲ ျပသြားတယ္။ ကိုယ္တိုင္ စမ္းၾကည့္ပါ။ ေပ်ာ္ဖို႕
တကယ္ေကာင္းပါတယ္။ ကိုယ့္ ပံုေလးေတြ နဲ႕ web page ေလး စမ္းေဆာက္လို႕ေတာ့ရျပီ။ ဒါေပမယ့္ ျပည့္ျပည့္စံုစံုျဖစ္ေအာင္
ေဆာက္လို႕မရေသးတာကို ေတြ႕မွာပါ။ ကၽြန္ေတာ္တို႕ table လိုအပ္ေနေသးတာပါ။ ေနာက္တစ္ခန္းမွာ table နဲ႕ frame
ေတြအေၾကာင္း ေျပာျပပါမယ္။
Page 24
HTML For Web Design Suit Table And Frame
Table ဆိုတာ
Table
တစ္ခုကိုတည္ေဆာက္ရာမွာ အေျခခံအားျဖင့္ roll နဲ႕ column ပါဝင္ပါတယ္။ ေနာက္ျပီး cell ကြက္ေလးေတြ နဲ႕
တည္ေဆာက္ထားပါတယ္။ Table တစ္ခုဟာ ကၽြန္ေတာ္ အေပၚမွာ ေျပာခဲ့သလို HTML တစ္ခုတည္းနဲ႕ web site တစ္ခု
တည္ေဆာက္ရာမွာ ေတာ္ေတာ္ေလးအသံုးဝင္ပါတယ္။ ေနာက္ျပီး Gallery Page ေတြ တည္ေဆာက္ရာမွာ
အရမ္းအသံုးဝင္တယ္။ Page တစ္ခုလံုး Layout ကို CSS ကိုသာအသံုးျပဳတတ္မယ္ဆို Table ထက္စာရင္ CSS ကို
အသံုးျပဳသင့္တယ္။ CSS ဆိုတာ ဘာလဲဆိုေတာ့ Cascading Style Sheets ပါ။ ဒီစာအုပ္မွာေတာ့ CSS အေၾကာင္းပါဝင္မွာ
မဟုတ္ပါဘူး။ ဒီစာအုပ္ဟာ Web Page ကိုစေလ့လာခါစ အေျခခံအက်ဆံုးျဖစ္တဲ့ HTML အေၾကာင္းကိုသာ ေျပာသြားတာပါ။
HTML ကိုေသေသခ်ာခ်ာနားလည္သြားရင္ CSS နဲ႕တြဲသံုတဲ့အခါမွာေတာ့ ကိုယ့္ site ေလးဟာ ေသသပ္လွပလာမွာပါ။
အခုေတာ့ HTML အေၾကာင္းေလးပဲ ဆက္လိုက္ရေအာင္။
Page 25
HTML For Web Design Suit Table And Frame
အေပၚပံုကို ၾကည့္လိုက္ပါ။ အကြက္တစ္ခုလံုးအျပည့္ဟာ table ပါ။ ေနာက္ျပီး စာေရးထားတဲ့ အကြက္ေတြဟာ cell ေတြေပါ့။
cell ကြက္ေတြထဲမွာပဲ စာေရးတာပါ။ ကဲ.. ပိုျပီး နားလည္သြားေအာင္ code ေလးေတြနဲ႕စလိုက္ရေအာင္။
<head>
<title>Example Table</title>
</head>
<body>
<table>
<tr> <!-- Row-->
<td> <!-- Column -->
Row
</td>
<td>
Row
</td>
</tr>
</table>
Page 26
HTML For Web Design Suit Table And Frame
</body>
</html>
Table တစ္ခုစတင္ျပီဆိုရင္ေတာ့
row ၂ ခုျဖစ္တဲ့အတြက္ေၾကာင့္ <tr> </tr> ၂ ခုသံုးရမယ္။ column ၃ ခုျဖစ္လို႕ <td></td> ကို ၃ ခုသံုးမယ္။ ပထမ row
မွာ ၃ခုဆို အျခား row ေတြမွာလည္း ၃ခုျဖစ္မွ table ေပၚလာမွာပါ။
<table>
<tr> <!-- First Row -->
<td> <!-- First Column -->
1
</td>
<td>
2
</td>
<td>
3
</td>
</tr>
Page 27
HTML For Web Design Suit Table And Frame
6
</td>
</tr>
</table>
အဲဒီ Example ကို ၾကည့္လိုက္ရင္ နားလည္ႏိုင္မလားမသိဘူး။ ကၽြန္ေတာ္တို႕ေတြ row ၂ ခုနဲ႕ column ၃ ခု ရိွတဲ့ ta-
ble တစ္ခုတည္ေဆာက္ခဲ့တာပါ။ table ပိုင္းကို ရႈပ္တယ္လို႕ ထင္ခ်င္ထင္ေနပါလိမ့္မယ္။ ဟုတ္ပါတယ္။ ရႈပ္ပါတယ္။
ဒါေပမယ့္ နားလည္သြားရင္ လြယ္ျပီး သံုးလို႕ေကာင္းပါတယ္။ ကၽြန္ေတာ္တို႕ေတြ table ပိုင္းကို ေသေသခ်ာခ်ာေလး
ေလ့လာဖို႕လိုပါလိမ့္မယ္။ ကဲ... ေနာက္ထပ္ example တစ္ခု ထပ္လုပ္ၾကည့္ရေအာင္ ။ အခု ကၽြန္ေတာ္တို႕ေတြ row ၃ ခု
column ၃ ခု ရိွတဲ့ table တစ္ခုကို ေဆာက္ၾကည့္ရေအာင္။
row ၃ခု ျဖစ္လို႕ <tr></tr> ၃ခုပါမယ္။ column ၃ ခုျဖစ္လို႕ <tr>နဲ႕ </tr> ၾကားမွာ <td></td> ၃ ခုပါမယ္။ အဲလိုေလး
စဥ္းစားလို႕ရသြားျပီဆိုရင္ စျပီး code ေရးၾကည့္ရေအာင္။
<html>
<head><title>Example</title></head>
<body>
<table>
<tr><!-- First Row -->
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
</body>
</html>
Page 28
HTML For Web Design Suit Table And Frame
<html>
<head><title>Example</title></head>
<body>
<table width="100%">
<tr><!-- First Row -->
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
</body>
</html>
Page 29
HTML For Web Design Suit Table And Frame
<table width="100%">
<tr><!-- First Row -->
<td width="30px">1</td>
<td>2</td>
<td>3</td>
</tr>
ဒါဆိုရင္ေတာ့ ပထမ column ရဲ႕ width ကို 30px လို႕သတ္မွတ္လိုက္ပါျပီ။ ပထမ row မွာသတ္မွတ္လုိက္ရင္ တျခား
row ေတြရဲ႕ ပထမ column ကိုပါသတ္မွတ္ျပီးသား ျဖစ္သြားပါလိမ့္မယ္။ ကၽြန္ေတာ္တို႕ေတြဟာ px သာမက % နဲ႕ပါ
သတ္မွတ္ႏိုင္ပါတယ္။ column ၃ ခုလံုးကို သတ္မွတ္ခ်င္ရင္ေတာ့ ဒီလိုေရးလို႕ပါတယ္။
<table width="100%">
<tr><!-- First Row -->
<td width="45%">1</td>
<td width="20%">2</td>
<td width="35%">3</td>
</tr>
အဲဒီမွာဆိုရင္ေတာ့ column ရဲ႕ width ကို % နဲ႕သတ္မွတ္ေပးမွာပါ။ အဲဒီမွာ တတိယ colum ကို width မထည့္လည္း
သူ႕ဘာသာ ခ်ိန္ညိွေပးႏိုင္ပါတယ္။ ကဲ... table နဲ႕ time table ေလးဆြဲၾကည့္ရေအာင္။
<html>
<head><title>Example</title></head>
<body>
<table width="100%">
<tr><!-- First Row -->
<td>Date</td>
<td>Time</td>
<td>Subject</td>
</tr>
<tr><!--Second Row -->
<td>Oct 07</td>
<td>1:00 PM - 3:00 PM</td>
<td>Hardware</td>
</tr>
Page 30
HTML For Web Design Suit Table And Frame
ကဲ.. အခုဆိုရင္ လက္ေတြ႕ အသံုးျပဳတတ္ေလာက္ျပီ ထင္တယ္။ ကၽြန္ေတာ္တို႕ေတြ table မွာ border ေတြကို
ေပၚေစခ်င္ရင္ေတာ့ border ဆိုတဲ့ attribute ထည့္ရပါမယ္။
border ကိုအေရာင္ထည့္ခ်င္ရင္ေတာ့
<table width="100%" border="1" bordercolordark="red" bordercolorlight="#FF3300">
bordercolordark ကေတာ့ အရိပ္ေပါ့။ bordercolorlight ကေတာ့ အေပၚအေရာင္ေပါ့။ ဒါမွမဟုတ္ bordercolor ဆိုျပီးလည္း
အသံုးျပဳႏိုင္ပါတယ္။
Page 31
HTML For Web Design Suit Table And Frame
border က ႏွစ္ထပ္ျဖစ္ေနတာကို ေတြ႕ရပါလိမ့္မယ္။ အဲဒါက cell padding ေၾကာင့္ပါ။ cell padding နဲ႕ cell spacing ဆိုျပီး
ႏွစ္မ်ဳိးရိွပါတယ္။
cellpadding ဆိုတာကေတာ့ table အတြင္း border နဲ႕ စာ ေနရာအကြာအေဝးပါ။ cellpadding မ်ားလာေလေလ စာက
အတြင္းကို ဝင္ေလေလျဖစ္မွာပါ။ အခု cellpadding ကို 30 ထားလိုက္တဲ့အခါမွာ စာသားေတြနဲ႕ border အရမ္းက်ဲသြားတာကို
ေတြ႕ရပါလိမ့္မယ္။
Page 32
HTML For Web Design Suit Table And Frame
Cell Merge
Cell Merge ပိုင္းကေတာ့ table ပိုင္းကို ေသခ်ာသိထားရင္ နားလည္လြယ္မယ္လို႕ထင္ပါတယ္။ Cell Merge ကေတာ့ Cell
ႏွစ္ခု ဒါမွမဟုတ္ Cell ႏွစ္ခုထက္ ေပါင္းတာေပါ့။ Cell Merge ကို ဒီလိုေပါင္းရမွာပါ။ table တစ္ခုကို စခဲ့တုန္းက row ေတြကို
<tr> နဲ႕ေရးရမွာပါ။ <tr> တစ္ခုမွာ <td> ၂ ခုပါရင္ ေနာက္ထပ္ <tr> မွာလည္း <td> ၂ ခုပါဝင္ရမွာပါ။ ဒါေပမယ့္ cell
ေတြကို merge လုပ္လိုက္ရင္ အနည္းငယ္ ေျပာင္းလဲကုန္ပါတယ္။ အေပၚမွာ column သံုးခု ။ ဒါေၾကာင့္ <td> ၃ ခုပါမယ္။
ဒါေပမယ့္ ေအာက္မွာက column ၃ ခုမွာ ႏွစ္ခုကို ေပါင္းလိုက္တယ္။ ဒါဆိုရင္ cell က ၂ ခုပဲရိွေတာ့မယ္။ ဒါဆိုရင္ေတာ့ <td>
Page 33
HTML For Web Design Suit Table And Frame
၂ ခုပဲပါေတာ့မယ္။ အဲဒါကေတာ့ column merge လုပ္တဲ့အခါမွာေပါ့။ row ကလည္း အဲလိုပါပဲ။ အခုေတာ့ column merge
လုပ္တဲ့ code ေလးကို ၾကည့္လိုက္ပါအံုး။
<html>
<head>
<title>Example</title>
</head>
<body>
<table border="1">
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td colspan="2">
Cell 1
</td>
<td>
Cell 3
</td>
</tr>
</table>
</body>
</html>
အေပၚက code မွာ <td colspan="2"> ဆိုတာကို ေတြ႕ႏိုင္မယ္ထင္ပါတယ္။ အဲဒါကေတာ့ Cell ၂ ခုေပါင္းမယ္
ဆိုတဲ့ အဓိပၸာယ္ပါ။ တကယ္လို႕ cell ၃ ခုေပါင္းခ်င္ရင္ေတာ့ <td colspan="3"> ပါ။ ကၽြန္ေတာ္ အဲလိုမ်ဳိး code
Page 34
HTML For Web Design Suit Table And Frame
ကိုေျပာင္းေရးလိုက္ရင္ ဒီလိုေတြ႕ရမွာပါ။
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td colspan="3">
Cell 1
</td>
</tr>
</table>
</body>
</html>
ကၽြန္ေတာ္တို႕ေတြ column ကုိ ၃ ခုစလံုး ေပါင္းလိုက္တဲ့ အတြက္ စုစုေပါင္း column ၁ ခုပဲရိွေတာ့တယ္။ ဒါေၾကာင့္ <td>
တစ္ခုကို ပဲသံုးတာပါ။ ကဲ... ဆက္ျပီးေတာ့ example တစ္ခုေလာက္ ေဆာက္ၾကည့္ရေအာင္။
<html>
<head>
Page 35
HTML For Web Design Suit Table And Frame
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td colspan="3">
List Of Adboe Software
</td>
</tr>
<tr>
<td>
Adobe Acrobat
</td>
<td>
Adobe Dreamweaver
</td>
<td>
Adboe Flash
</td>
</tr>
<tr>
<td>
Adobe InDesign
</td>
<td>
Adobe Photoshop
</td>
<td>
Adboe Bridge
</td>
</tr>
</table>
</body>
</html>
Page 36
HTML For Web Design Suit Table And Frame
အဲဒီက code မွာဆိုရင္ေတာ့ List Of Adboe Sofware အတြက္ Column ၃ ခုလံုးကို merge
လုပ္ထားတာကို ေတြ႕မွာပါ။ Column ၃ ခုကို merge လုပ္လိုက္တဲ့အတြက္ column ၁
ခုပဲရိွပါေတာ့တယ္။ ဒါေၾကာင့္ <td> တစ္ခုပဲ လိုအပ္ပါေတာ့တယ္။ အခုေလာက္ဆိုရင္ေတာ့ Column
Merge ကိုသိေလာက္ျပီထင္ပါတယ္။ ဆက္ျပီး Row Merge အေၾကာင္းေလး ေလ့လာရေအာင္။
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td rowspan="2">
Cell Left
</td>
<td>
Cell 2
</td>
</tr>
<tr>
<td>
Cell 3
</td>
</tr>
</table>
</body>
</html>
ပထမဆံုး Column မွာ <td rowspan="2"> ဆိုတာေလးရိွပါတယ္။ ပထမဆံုး Column မွာ Row ၂
Page 37
HTML For Web Design Suit Table And Frame
<html>
<head>
<title>Example</title>
</head>
<body>
<table border="1">
<tr>
<td>
Row1 , Cell1
</td>
<td>
Row1 , Cell2
</td>
<td>
Row1 , Cell3
</td>
</tr>
<tr>
<td rowspan="2">
Left
</td>
<td>
Center
</td>
<td rowspan="2">
Right
</td>
</tr>
<tr>
<td> Cell 1</td>
</tr>
Page 38
HTML For Web Design Suit Table And Frame
</table>
</body>
</html>
ဒီ example မွာဆိုရင္ row span ကုိေကာင္းေကာင္းနားလည္မယ္ထင္ပါတယ္။ Left နဲ႕ Right ဆိုျပီး row
ႏွစ္ခုေပါင္းလိုက္ေတာ့ ေအာက္ဆံုး row မွာ column တစ္ကြက္ပဲ က်န္ေတာ့တဲ့အတြက္ <td> တစ္ခုပဲ ေရးရတာပါ။
Appearnce
<html>
<head>
<title>Example</title>
</head>
<body>
<table border="1">
<tr>
<td bgcolor="blue">
<font color="#FFFFFF">BLUE</font>
</td>
<td bgcolor="red">
Red
</td>
<td bgcolor="#EABCDF">
Hex Color
</td>
</tr>
</table>
</body>
Page 39
HTML For Web Design Suit Table And Frame
</html>
<html>
<head>
<title>Example</title>
</head>
<body>
<table border="1">
<tr>
<td bgcolor="blue">
<font color="#FFFFFF">BLUE</font>
</td>
<td bgcolor="red">
Red
</td>
<td bgcolor="#EABCDF">
Hex Color
</td>
</tr>
<tr bgcolor="#FF6699">
<td>
a
</td>
<td>
b
</td>
<td>
Page 40
HTML For Web Design Suit Table And Frame
c
</td>
</tr>
</table>
</body>
</html>
Page 41
HTML For Web Design Suit Table And Frame
Frame
Frame ကေတာ့ HTML Page ႏွစ္ခု ထက္မက တာေတြကို စာမ်က္ႏွာ တစ္ခုထဲ မွာ ေဖာ္ျပျခင္တဲ့
အခါေပါ့။ ဘယ္လိုမ်ဳိးလဲ ဆိုေတာ့
Frame1.html
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
This is frame 1
</body>
</html>
Frame2.html
Page 42
HTML For Web Design Suit Table And Frame
<html>
<head>
<title>Untitled Document</title>
</head>
This is frame 2
</html>
index.html
<html >
<head>
<title>Untitled Document</title>
</head>
Page 43
HTML For Web Design Suit Table And Frame
အဲလိုမ်ဳိးေရးလိုက္တာ။ အဲမွာ src ဆိုတာကေတာ့ frame ရဲ႕ Link ေပါ့။ ကၽြန္ေတာ္တို႕ေတြ file ၃
ခုလံုးကို တစ္ေနရာတည္းမွာထည့္ထားတယ္။ ဒါေၾကာင့္ တိုက္ရိုက္ လွမ္းေခၚလိုက္ရံုပဲ။ Name ကေတာ့
နာမည္ပါ။ မထည့္လည္းရပါတယ္.. scrolling ဆိုတာကေတာ့ ေဘးနားက scrollbar ေပၚမေပၚေပါ့။
ေပၚေစခ်င္ရင္ Yes ေပါ့။ noresize ကေတာ့ frame ကို resize လုပ္လို႕မရေအာင္ လုပ္ထားတာပါ။ ဒါဆို
frame ကို resize လုပ္ခ်င္ရင္ေတာ့ အဲဒါကို မထည့္နဲ႕ေပါ့။ အခု column ၃ ခု နဲ႕လုပ္ၾကည့္ရေအာင္။
index.html
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset cols="20%,30%,*">
<frame src="frame1.html" />
<frame src="frame2.html" />
<frame src="frame1.html" />
Page 44
HTML For Web Design Suit Table And Frame
</frameset>
<noframes>Your Browser Don’t Support Frame</noframes></html>
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset rows="20%,30%,*">
<frame src="frame1.html" />
<frame src="frame2.html" />
<frame src="frame1.html" />
</frameset>
<noframes><body>
</body>
</noframes></html>
ဘာေျပာင္းသြားသလဲဆိုေတာ့ frame-
ser ပါ။ cols ကေန rows ျဖစ္သြားပါတယ္။
cols နဲ႕ rows ေလးပဲ ကြာတာပါ။ က်န္တာ
အတူတူပါပဲ။ frame အထဲမွာလည္း ထပ္ျပီး
ထပ္မံခြဲထုတ္လို႕ရပါေသးတယ္။ အခု အေပၚဆံုးက
rows ကို column ထပ္ျပီး ခြဲပါမယ္။
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset rows="20%,30%,*">
<frameset cols="*,50%" framespacing="0" frameborder="NO" border="0">
<frame src="frame1.html" />
Page 45
HTML For Web Design Suit Table And Frame
<frameset rows="20%,30%,*">
<frameset cols="*,50%" framespacing="0" frameborder="NO" border="0">
<frame src="frame1.html" />
<frame src="frame2.html" name="rightFrame" scrolling="NO"
noresize>
</frameset>
ကၽြန္ေတာ္တို႕ အေပၚဆံုးက rows ကို ထပ္ျပီး cols ခြဲတာပါ။ ဒါေၾကာင့္ အေပၚဆံုး rows မွာ columns
ႏွစ္ခုျဖစ္သြားပါျပီ။ ဒါေၾကာင့္ <frame> ႏွစ္ခု ေရးရတာပါ။ တကယ္လို႕ ဒုတိယ rows မွာပဲ colums
Page 46
HTML For Web Design Suit Table And Frame
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset rows="20%,30%,*">
<frame src="frame1.html" />
<frameset cols="*,50%" framespacing="0" frameborder="NO" border="0">
<frame src="frame2.html" />
<frame src="frame2.html" name="rightFrame" scrolling="NO" noresize>
</frameset>
ရွင္းရွင္းေလးပါ။ ဒုတိယ rows မွာ ျဖစ္ေစခ်င္လို႕ ဒုတိယ rows မွာ frameset တစ္ခုထပ္ထည့္ရတာပါ။
အဲလိုမ်ဳိးပဲ columns ေတြထဲမွာ rows ေတြ ခြဲလို႕ရပါတယ္။ အတူတူပါပဲ။ အေပၚက rows ေနရာမွာ cols
ေျပာင္းျပီးေတာ့ cols ေနရာမွာ rows ေျပာင္းလိုက္ရင္ သိမွာပါ။ ကၽြန္ေတာ္ မေရးျပေတာ့ဘူး။ ကိုယ္တိုင္ပဲ
Page 47
HTML For Web Design Suit Table And Frame
ေရးျပီး စမ္းၾကည့္လိုက္ေပါ့။
အခု ဒီစာအုပ္ရဲ႕ ေနာက္ဆံုးအခန္းက ေနာက္ဆံုး အေၾကာင္းပါပဲ။ ဘာလဲဆိုရင္ေတာ့ Link And Frame ပါ။ Frame တစ္ခုက
Link က ႏိွပ္လိုက္ရင္ ေနာက္ frame တစ္ခုက ေျပာင္းသြားဖို႕ပါ။ ကၽြန္ေတာ္ အကုန္လံုးကို အေျခခံေလာက္ပဲ ေျပာႏိုင္မွာပါ။
Web ပိုင္းမွာ ေလ့လာစရာေတြ အမ်ားၾကီးပါ။ HTML ဆိုတာ လံုးဝ စကာစ အေျခခံအဆင့္ေလးပါ။ ကဲ.. ေနာက္ဆံုး အခန္းေလး
ဆက္လိုက္ရေအာင္။
ကၽြန္ေတာ္တို႕ အေပၚမွာ ေျပာဘူးပါတယ္။ ဘယ္ဘက္က Link ကို ႏိွပ္လိုက္ရင္ ညာဘက္မွာ သက္ဆိုင္ရာ Page ကို
ေျပာင္းသြားမယ္ဆိုျပီးေတာ့။ အခုအဲလိုမ်ဳိး ဘယ္ဘက္က frame ကေန ႏိွပ္လိုက္ရင္ ညာဘက္က frame မွာ သက္ဆိုင္ရာ
Page 48
HTML For Web Design Suit Table And Frame
<html>
<head>
<title>Menu</title>
</head>
<frameset cols="100,*">
<frame src="menu.html" id="menu">
<frame src="home.html" name="main">
</frameset>
<noframes></noframes>
</html>
အဲမွာ.. name="main" လို႕ေပးခဲ့တာကို ေတြ႕မွာပါ။ အဲလိုမ်ဳိးနာမည္ ထည့္ခဲ့မွ menu ကေန အဲဒီ frame မွာ သြားေပၚဆိုျပီး
ေျပာလို႕ရမွာ။ ကဲ.. အခု menu.html မွာေရးထားတာကို ၾကည့္လိုက္ရေအာင္...
<html>
<head>
<title>Menu</title>
</head>
<body>
</body>
Page 49
HTML For Web Design Suit Table And Frame
</html>
အဲမွာ link ေတြအကုန္လံုးမွာ target ဆိုတာေလး ပါတာကိုေတြ႕ရပါလိမ့္မယ္။ ကၽြန္ေတာ္တို႕ index.html မွာ name="main"
ဆိုတဲ့ frame မွာ သြားေပၚမယ္ဆိုတဲ့ အဓိပၸာယ္ေပါ့။ download ဆိုတာကို ႏိွပ္လိုက္ရင္ ညာဘက္က frame မွာ down-
load.html ဆိုတဲ့ page ေလးေပၚသြားပါမယ္။ Home ကိုႏိွပ္လိုက္လည္း home.html ဟာ ညာဘက္က frame မွာပဲ
သြားေပၚပါမယ္။ အဲဒီေလာက္ဆိုရင္ နားလည္ သိရိွျပီလို႕ထင္ပါတယ္။
menu.html page ထဲမွာပဲ home.html ေလးကို လွမ္းျပီး ေခၚျပတဲ့နည္းပါ။ အဲဒါေလးကေတာ့ အသံုးဝင္ပါတယ္။ Home Page
Page 50
HTML For Web Design Suit Table And Frame
<html>
<head>
<title>Menu</title>
</head>
<body>
code ေလးက ရွင္းပါတယ္။ <iframe> ပါ။ src ကေတာ့ ဘယ္ page ကို ခ်ိတ္မလဲဆိုတာပါ။ width နဲ႕ height ကေတာ့
ကိုယ္ေဖာ္ျပခ်င္သေလာက္ေပါ့။ အခုဆိုရင္ေတာ့ ကၽြန္ေတာ္တို႕ေတြ HTML အေျခခံေလးကို ေလ့လာလို႕ျပီးသြားပါျပီ။
ဒီစာအုပ္ကို ဖတ္ျပီးရင္ေတာ့ ဘာ code က ဘာကိုေျပာတာလဲဆိုတာပဲ သိႏိုင္မွာပါ။ ဘာလိုခ်င္ရင္ ဘယ္လိုလုပ္ရမလဲ
ဆိုတာေတာ့ မိမိရဲ႕ ေလ့လာမႈစြမ္းအားေပၚ မူတည္ပါတယ္။ စာအုပ္ဖတ္ရံုနဲ႕ မရပါဘူး ။ လုိက္ေတြးပါ။ စမ္းၾကည့္ပါ။ ဒါမွ
တိုးတက္မႈကို ရမွာပါ။ မ်က္စိနဲ႕ ၾကည့္ရံုနဲ႕ေတာ့ တိုးတက္မႈရိွမွာ မဟုတ္ပါဘူး။ ဒီစာအုပ္ ဖတ္ျပီးရင္ေတာ့ "ေအာ္.. ဒီ code က
ဒါအတြက္ေရးထားတာ" အဲေလာက္ပဲ စြမ္းေဆာင္ ေပးႏိုင္မွာပါ။ ငါဒီလိုဆြဲခ်င္တယ္။ ဒါေၾကာင့္ ဒါကို သံုးရမယ္ ဆိုတာကေတာ့
မိမိရဲ႕ အာရံု ကြန္႕ျမဴးမႈနဲ႕ ဒီစာအုပ္ကို ေပါင္းျပီး အသံုးခ်ရရင္ ရႏိုင္မွာပါ။
Page 51