Insert an Image
အခု ကၽြန္ေတာ္တုိ႕ေတြ ပံုေလးကို ထည့္ရေအာင္။ ျပီးခဲ့တဲ့ code မွာ onepice_cover.jpg ဆိုတာေလးကို ထည့္ပါမယ္။ ေအာက္မွာ code ေလးကို ၾကည့္လိုက္ပါ။
<html>
<head>
<title>Styling Text</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>One Piece</h1>
<h2>by Eiichiro Oda</h2>
<ul class="menu">
<li><a href="./home.html">Home</a></li>
<li><a href="./anime.html">Anime</a></li>
<li><a href="./download.html">Download</a></li>
</ul>
<img src="onepice_cover.jpg">
<p>One Piece is a Japanese <span class='highlight'>shounen manga series</span> written and illustrated by Eiichiro Oda. It has been serialized in Weekly Shōnen Jump since August 4, 1997; the individual chapters are being published in tankōbon volumes by Shueisha, with the first released on December 24, 1997, and the 70th volume released as of March 2013. One Piece follows the adventures of <span class='highlight'>Monkey D. Luffy</span>, a young boy whose body gains the properties of rubber after unintentionally eating a Devil Fruit, and his diverse crew of pirates, named the Straw Hat Pirates. Luffy explores the ocean in search of the world's ultimate treasure known as One Piece in order to become the next Pirate King.</p>
</body>
</html>
အထက္ပါ code မွာ <img src="onepice_cover.jpg">
ဆုိတာေလးကို ေတြ႕ပါလိမ့္မယ္။ အဲဒီ code ေလးက image ထည့္သြင္းမယ္လုိ႕ ဆိုထားတာပါ။ image path ကို src မွာ ေရးရပါတယ္။ လက္ရိွ index.html နဲ႕ ပံုနဲ႕ သိမ္းထားတဲ့ ေနရာ အတူတူမွာ ရိွတဲ့ အတြက္ေၾကာင့္ src မွာ ပံုရဲ႕ file name တစ္ခါတည္းေရးလို႕ရပါတယ္။
လက္ရိွ file ေတြက ေအာက္ေဖာ္ျပပါ ပံုအတိုင္း ရိွပါတယ္။
Figure 5-1. File Sturure
အထက္ပါ code ကို browser မွာၾကည့္ရင္ ေအာက္ကလို ျမင္ရပါလိမ့္မယ္။
Figure 5-2
လက္ရိွ code ကိုပဲ ေအာက္မွာ ေနာက္ထပ္ ပံု တစ္ပံု ထည့္ပါမယ္။
<html>
<head>
<title>Styling Text</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>One Piece</h1>
<h2>by Eiichiro Oda</h2>
<ul class="menu">
<li><a href="./home.html">Home</a></li>
<li><a href="./anime.html">Anime</a></li>
<li><a href="./download.html">Download</a></li>
</ul>
<img src="onepice_cover.jpg">
<p>One Piece is a Japanese <span class='highlight'>shounen manga series</span> written and illustrated by Eiichiro Oda. It has been serialized in Weekly Shōnen Jump since August 4, 1997; the individual chapters are being published in tankōbon volumes by Shueisha, with the first released on December 24, 1997, and the 70th volume released as of March 2013. One Piece follows the adventures of <span class='highlight'>Monkey D. Luffy</span>, a young boy whose body gains the properties of rubber after unintentionally eating a Devil Fruit, and his diverse crew of pirates, named the Straw Hat Pirates. Luffy explores the ocean in search of the world's ultimate treasure known as One Piece in order to become the next Pirate King.</p>
<img src="images/luffy.png">
</body>
</html>
အထက္ပါ code မွာ <img src="images/luffy.png">
ဆုိျပီး ထည့္ထားတာကို ေတြ႕ရပါမယ္။ images ဆုိတဲ့ folder ေအာက္က luffy.png ကို သံုးမယ္လုိ႕ ဆုိထားတာပါ။
လက္ရိွ file ေတြက ေအာက္ေဖာ္ျပပါ ပံုအတိုင္း ရိွပါတယ္။
Figure 5-3. File Sturure
အထက္ပါ code ကို browser မွာၾကည့္ရင္ ေအာက္ကလို ျမင္ရပါလိမ့္မယ္။
Figure 5-4