Attribute এর কাজ
হলো HTML এলিমেন্ট সমূহকে বারতি কিছু তথ্য প্রদান করা। অ্যাট্রিবিউট সবসময় ওপেনিং ট্যাগে ব্যবহার করতে হয়।
এখানে Align
Attribute এর ব্যবহার দেখানো হয়েছে। Align Attribute এর কাজ হলো HTML এলিমেন্টের অবস্থান নির্নয় করা। অর্থাৎ
ওয়েব পেইজের এলিমেন্ট গুলো ওয়েব পেইজের কোথায় অবস্থান করবে সেটা নির্ধারন করাই হলো HTML Align Attribute এর কাজ।
Empty tag (ফাঁকা
ট্যাগ): যে সমস্ত ট্যাগের ওপেনিং বা শুরু
ট্যাগ আছে কিন্তু ক্লোজিং বা শেষ ট্যাগ নেই তাকে ফাঁকা বা
<BR> ট্যাগ ব্যবহার করা হয় লাইন ব্রেক
করার জন্য।
<HR> ট্যাগ ব্যবহার করা হয় হরাইজেন্টাল লাইন
দেওয়ার জন্য।
HTML
CODE
<html>
<head>
<title> Paragraph text
</title>
</head>
<h1> Our Country </h1>
<P>
The name of our country is the People's Republic of Bangladesh.
It is one the most beautiful
country in the world.
</P>
</html>
OUTPUT
HTML
CODE
<html>
<head>
<title> HTML Heading </title>
</head>
<body>
<h1 align="center">
Our Country </h1>
<hr>
<P>
The name of our country is the
<br> People's Republic of Bangladesh. It is one the most beautiful
country in the world. Bangladesh, to the east of India on the Bay of Bengal, is
a South Asian country marked by lush greenery and many waterways. Its Padma
(Ganges), Meghna and Jamuna rivers create fertile plains, and travel by boat is
common.
</P>
</body>
</html>
OUTPUT
0 Comments