ব্লক লেভেল এলিমেন্ট(block level elements) এবং ইনলাইন এলিমেন্ট (Inline elements )
ব্লক লেভেল এলিমেন্ট এমন কিছু এলিমেন্ট
আছে যারা বাই ডিফল্ট তার ডানে এবং বামে সম্পূর্ণ জায়গা দখল করে থাকে সেগুলিকে ব্লক
লেভেল এলিমেন্ট বলে।ব্লক লেভেল এলিমেন্ট যখন ব্রাউজার এ প্রদর্শন করানো হয় তখন
ব্লক লেভেল উপাদানগুলি নতুন লাইন থেকে শুরু হয়।
Examples:<div>,
<h1>, <p>, <ul>, <table> এগুলো ব্লক লেভেল এলিমেন্ট।
ইনলাইন এলিমেন্ট যে এলিমেন্টের কারনে কোন নতুন লাইন শুরু হয়না সেগুলি ইনলাইন
এলিমেন্ট।
Examples:<span>,<b>,
<td>, <a>, <img> ইত্যাদি ইনলাইন এলিমেন্ট।
DIV Element
<div> এলিমেন্ট একটি ব্লক লেভেল এলিমেন্ট।এটা অন্য এইচটিএমএল
উপাদানের সাথে container হিসেবে ব্যাবহার
করা হয়। এটার কোন স্পেশাল অর্থ নেই। <div> এর জন্য আলাদা কোন attribute এর প্রয়োজন নাই।তবে style এবং class হল কমন।কারন এটা ব্রাউজার
এ লাইনের বিরতি হিসাবে প্রকাশ করে।
নিচে একটা উদাহরণ দেয়া হল।
<!DOCTYPE html>
<html>
<body>
<div style="background-color:#052F1F;
color:red; padding:20px;">
<h2>History of Bangladesh</h2>
<p>Modern Bangladesh emerged as an
independent nation in 1971 after achieving independence from Pakistan in the
Bangladesh Liberation War. The country constitutes with the major portion of
the ancient and historic region of Bengal in the eastern part of the Indian
subcontinent, where civilization dates back over four millennia, to the Copper
Age. The history of the region is closely intertwined with the history of
Bengal and the history of India.
The area's early history featured a succession of
Indian empires, internal squabbling, and a tussle between Hinduism and Buddhism
for dominance. Islam made its appearance during the 8th century when Sufi
missionaries arrived. Later, Muslim rulers reinforced the process of conversion
by building mosques, madrassas and Sufi Khanqah.
The borders of modern Bangladesh were established
with the partition of Bengal and India in August 1947, when the region became
East Pakistan as a part of the newly formed State of Pakistan following the
Radcliffe Line.[1] However, it was separated from West Pakistan by 1,600 km
(994 mi) of Indian territory. Due to political exclusion, ethnic and linguistic
discrimination, as well as economic neglect by the politically dominant
western-wing, popular agitation and civil disobedience led to the war of
independence in 1971.</p>
<p> After independence, the new state
endured famine, natural disasters and widespread poverty, as well as political
turmoil and military coups. The restoration of democracy in 1991 has been
followed by relative calm and economic progress.</p>
</div>
</body>
</html>
SPAN Element
<span> ইনলাইন উপাদান এটা
টেক্সট এর সাথে container হিসেবে ব্যাবহার
করা হয়। <span> উপাদানের কোন
স্পেশাল অর্থ নেই।এর জন্য কোন attribute
এর দরকার হয় না।তবে style এবং class কমন।।<div> এর মতো <span> এর অটোমেটিক
ফরম্যাট নেই।
<!DOCTYPE html>
<html>
<body>
<h1>My
<span style="color:red">Lovely</span> Bangladesh</h1>
</body>
</html>
|
HTML Block
এতে সদস্যতা:
মন্তব্যগুলি পোস্ট করুন (Atom)
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন