ছবি একটা গুরুত্বপুর্ন বিষয় এর সঠিক ব্যবহার আমাদের জানতে হবে।
<img/> ট্যাগ ব্যবহার করে আমরা ওয়েব পেজ এ ইমেজ নিয়ে আসতে পারি।
প্রদর্শন:

দুটি উপায়ে আমরা ইমেজের সোর্স নির্দিস্ট করতে পারি।
১. Standard URL ব্যবহার করে
(src=http://www. webcoachbd.com/pics/htmlT/sunset.gif)
২. web server এ file কপি বা আপলোড করে
(src="/../sunset.gif")
এই picture file এর location এর সাথে .এইচটিএমএল file এর location এর সম্পর্ক আছে।
URL Types:
প্রদর্শন:
প্রদর্শন:

নিচে উদাহরন দেয়া হলো
প্রদর্শন:
প্রদর্শন:


প্রদর্শন:
এইচটিএমএল-ছবি src:
Src attribute গুরুত্বপুর্ন বিষয়। Src এর অর্থ সোর্স(source) অর্থাৎ ইমেজের উৎস বা যেখানে picture file টি অবস্থিত।দুটি উপায়ে আমরা ইমেজের সোর্স নির্দিস্ট করতে পারি।
১. Standard URL ব্যবহার করে
(src=http://www. webcoachbd.com/pics/htmlT/sunset.gif)
২. web server এ file কপি বা আপলোড করে
(src="/../sunset.gif")
এই picture file এর location এর সাথে .এইচটিএমএল file এর location এর সম্পর্ক আছে।
URL Types:
Local Src |
Location Description |
src="/sunset.gif" |
picture file এবং .html file একই directory তে অবস্থান বরে। |
src="/../sunset.gif" |
picture file পুর্ববতি directory তে অবস্থান করে .html file মত। |
src="/../pics/sunset.gif" |
pic directory এর picture file পুর্ববতি directory তে অবস্থান করে .html file এর মত। |
এইচটিএমএল-alternative attribute:
Alt attribute নির্দিস্ট করে অলটারনেটিভ টেক্সট অর্থ্যাৎ যখন ইমেজ প্রদশির্ত হয় না তখন অলটারনেটিভ টেক্সটি প্রদশির্ত হয় । ইমেজ প্রদশির্ত না হওয়ার কারন হতে পারে ফাইলটি নষ্ট হয়ে গেছে বা browser ইমেজ ফাইলটি খুজে পাচ্ছে না।প্রদর্শন:
এইচটিএমএল-ছবি height এবং width:
ইমেজের height এবং width ঠিক করার জন্য height এবং width attribute ব্যাবহার করা হয়।প্রদর্শন:
এইচটিএমএল-Vertically এবং Horizontally align ছবি:
Align এবং valign attribute ব্যবহার ইমেজের অবস্থান নির্ধারন করতে পারি।- align (Horizontal)
- right
- left
- center
- valign (Vertical)
- top
- bottom
- center
নিচে উদাহরন দেয়া হলো
প্রদর্শন:
This is paragraph 1, yes it is. I think this paragraph serves as a nice example to show how this image alignment works.
The image will appear along the right hand side of the paragraph. As
you can see this is very nice for adding a little eye candy that relates
to the specified paragraph. If we were talking about beautiful tropical
sunsets, this picture would be perfect. But we aren't talking about
that, so it's rather a waste, isn't it? This is the third
paragraph that appears below the paragraph with the image!
এইচটিএমএল-ইমেজকে লিংক হিসাবে ব্যবহার:
ইমেজকে লিংক হিসাবে ব্যবহার করা যায়।প্রদর্শন:
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন
“প্রযুক্তিকে ভালবাসুন, প্রযুক্তির সাথে থাকুন সবসময়, প্রযুক্তির আলো ছড়িয়ে দিন বিশ্বময়”