Hridoy Tech64

Hridoy Tech64 The Tech master

24/08/2025

Excel Essential Ctrl Keyboard Shortcuts to Boost Productivity! 🚀

Flexbox (বা **Flexible Box Layout**) হলো CSS-এর একটি লেআউট মডেল, যা একটি কনটেইনারের ভিতরে আইটেমগুলোকে সহজভাবে **align**,...
30/07/2025

Flexbox (বা **Flexible Box Layout**) হলো CSS-এর একটি লেআউট মডেল, যা একটি কনটেইনারের ভিতরে আইটেমগুলোকে সহজভাবে **align**, **space** এবং **order** করার জন্য ব্যবহার হয়। এটা responsive ডিজাইন বানানোর জন্য খুবই কার্যকর।

---

# # 🔹 Flexbox এর মূল উদ্দেশ্য:

Flexbox মূলত এমনভাবে ডিজাইন করা হয়েছে যাতে আপনি **এক বা একাধিক ডাইমেনশনে (দিক)** — সাধারণত **row (আড়াআড়ি)** অথবা **column (লম্বালম্বি)** — উপাদানগুলোকে সহজে সাজাতে পারেন।

---

# # 🔸 Flexbox ব্যবহারের জন্য প্রথম ধাপ:

Flexbox চালু করতে হলে প্রথমে যে কনটেইনারে উপাদানগুলো থাকবে, সেটিতে নিচের CSS লিখতে হয়:

```css
display: flex;
```

উদাহরণ:

```html

Item 1
Item 2
Item 3

```

```csscontainer {
display: flex;
}
```

---

# # 🔹 Flexbox-এর Important Properties (বাংলায়):

# # # 1. **flex-direction** → উপাদান কোন দিকে সাজানো হবে তা নির্ধারণ করে।

* `row` → ডিফল্ট, আইটেমগুলো বাঁ দিক থেকে ডান দিকে যাবে।
* `row-reverse` → ডান দিক থেকে বাঁ দিকে।
* `column` → উপর থেকে নিচে।
* `column-reverse` → নিচ থেকে উপর।

```csscontainer {
display: flex;
flex-direction: row; /* অথবা column */
}
```

---

# # # 2. **justify-content** → মূল অক্ষে (main axis) কনটেন্ট কিভাবে position হবে:

* `flex-start` → শুরুতে
* `center` → মাঝখানে
* `flex-end` → শেষে
* `space-between` → দুই আইটেমের মাঝে সমান দূরত্ব
* `space-around` → সব আইটেমের চারপাশে সমান প্যাডিং

```csscontainer {
display: flex;
justify-content: center;
}
```

---

# # # 3. **align-items** → ক্রস অক্ষে (cross axis) আইটেম কিভাবে থাকবে:

* `flex-start` → উপরদিকে
* `center` → মাঝখানে
* `flex-end` → নিচে
* `stretch` → container অনুযায়ী প্রসারিত হবে

```csscontainer {
display: flex;
align-items: center;
}
```

---

# # # 4. **flex-wrap** → যদি আইটেমগুলো container-এর বাইরে চলে যায় তখন কি হবে:

* `nowrap` → এক লাইনে রাখবে (default)
* `wrap` → নিচে চলে যাবে
* `wrap-reverse` → উপরের দিকে যাবে

```csscontainer {
display: flex;
flex-wrap: wrap;
}
```

---

# # 🔸 একেকটা আইটেমের জন্য কিছু property:

# # # 1. **flex-grow** → কতটুকু বাড়বে container অনুযায়ী

# # # 2. **flex-shrink** → কমবে কিনা

# # # 3. **flex-basis** → প্রাথমিক width বা height

# # # 4. **order** → কে আগে কে পরে থাকবে

---

# # ✅ Flexbox এর সুবিধা:

* Responsive design সহজে করা যায়
* Vertical ও horizontal alignment খুব সহজ
* Layout তৈরিতে কম কোড লাগে

মনে রাখবেন---------/-

Flexbox হচ্ছে এমন একটি CSS টুল যেটা আপনার layout কাজকে অনেক সহজ করে তোলে। এটা একবার ভালো করে শিখে ফেললে, আপনি যেকোনো UI ডিজাইন সহজেই manage করতে পারবেন।

29/07/2025

Best practices for semantic HTML

Best practices for semantic HTML include:

- **Use the right elements for the right purpose:** Choose semantic tags that clearly describe the content's role, such as `` for introductory content, `` for navigation, `` for the central content, `` for thematic grouping, `` for independent content blocks, `` for tangential info, and `` for closing content[1][2][3].

- **Avoid using semantic tags solely for styling:** Do not use heading tags ``-`` just to change font size or `` and `` only to bold or italicize. Instead, use CSS for styling while semantic tags should convey meaning and structure[1][5][8].

- **Nest tags correctly:** Maintain logical and proper DOM structure by nesting headings inside sections or articles and placing `` within its relevant context. Use `` only once and never nest it inside other semantic elements like ``, ``, ``, or ``[1][8].

- **Use proper heading structure:** Employ headings in correct order (`` to ``) without skipping levels and use only one `` per page to enhance accessibility and SEO[6][9].

- **Use descriptive links:** Avoid vague link text like "click here"; instead use meaningful text to indicate the link purpose[6].

- **Provide alternative text for images:** Add `alt` attributes to images to improve accessibility for screen reader users[6].

- **Use lists for grouped items:** Use ``, ``, and `` for list content instead of generic tags like `` or ``[6][9].

- **Separate structure and presentation:** Rely on semantic HTML for content meaning and use CSS for appearance and layout[8].

- **Validate your code:** Regular validation ensures adherence to standards and helps maintain clean, accessible code[3].

By following these guidelines, your web pages will be more accessible, easier to maintain, and better optimized for search engines and assistive technologies[3][5][10].








Html Css

Address

Chattogram
Chittagong
4000

Website

Alerts

Be the first to know and let us send you an email when Hridoy Tech64 posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share