html and css آموزش
22K subscribers
485 photos
238 videos
92 files
309 links
ادمین :
@Maryam3771


تعرفه تبلیغات:
https://t.iss.one/alloadv/822
Download Telegram
🤔 Advanced Front-End Development Skills

🔹 1. Responsive Design
Why: Your website should look great on mobile, tablet, and desktop.
Learn:
⦁ Media Queries
⦁ Flexbox
⦁ CSS Grid

Example (Flexbox Layout):
 {
display: flex;
justify-content: space-between;
}

Example (Media Query):
@media (max-width: 600px) {.container {
flex-direction: column;
}
}


🔹 2. CSS Frameworks
Why: Pre-built styles save time and help maintain consistency.

Bootstrap Example:
<button class="btn btn-success">Subscribe</button>

Tailwind CSS Example:
<button class="bg-green-500 text-white px-4 py-2 rounded">Subscribe</button>


🔹 3. JavaScript Libraries (jQuery Basics)
Why: Simplifies DOM manipulation and AJAX requests (still useful in legacy projects).

Example (Hide Element):
<button id="btn">Hide</button>
<p id="text">Hello World</p>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$("#btn").click(function() {
$("#text").hide();
});
</script>


🔹 4. Form Validation with JavaScript
Why: Ensure users enter correct data before submission.

Example:
<form onsubmit="return validateForm()">
<input type="email" id="email" placeholder="Email">
<button type="submit">Submit</button>
</form>

<script>
function validateForm() {
const email = document.getElementById("email").value;
if (email === "") {
alert("Email is required");
return false;
}
}
</script>


🔹 5. Dynamic DOM Manipulation
Why: Add interactivity (like toggling dark mode, modals, menus).

Dark Mode Example:
<button onclick="toggleTheme()">Toggle Dark Mode</button>

<script>
function toggleTheme() {
document.body.classList.toggle("dark-mode");
}
</script>
<style>.dark-mode {
background-color: #111;
color: #fff;
}
</style>


🔹 6. Performance Optimization Tips
⦁ Compress images (use WebP)
⦁ Minify CSS/JS
⦁ Lazy load images
⦁ Use fewer fonts
⦁ Avoid blocking scripts in <head>

📌 Mini Project Ideas to Practice:
⦁ Responsive landing page (Bootstrap/Tailwind)
⦁ Toggle dark/light theme
⦁ Newsletter signup form with validation
⦁ Mobile menu toggle with JavaScript


💎 @Htmlcss_channels | #css #JavaScript #HTML
Please open Telegram to view this post
VIEW IN TELEGRAM
3
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
4
This media is not supported in your browser
VIEW IN TELEGRAM
➡️Hover to reveal part of background image

As the mouse moves, JavaScript updates the position of the .magic element to center it relative to the cursor, and CSS provides styling and animation.


👉 code


💎 @Htmlcss_channels | #css #JavaScript #HTML
Please open Telegram to view this post
VIEW IN TELEGRAM
1
Please open Telegram to view this post
VIEW IN TELEGRAM
2
Please open Telegram to view this post
VIEW IN TELEGRAM
7
This media is not supported in your browser
VIEW IN TELEGRAM
The :empty pseudo-class in CSS is used to select elements that do not contain child elements or text content.

This pseudo-class is useful for styling elements that have no content within them.

➡️For example, you can use :empty to hide or change the style of elements that do not contain text or other content


💎 @Htmlcss_channels | #css #JavaScript #HTML
Please open Telegram to view this post
VIEW IN TELEGRAM
🙏1
💡 دوره آنلاین «تربیت مدیر بازاریابی: از مبانی تا داده محوری»

📌 بازاریابی رو به اعداد قابل اندازه‌گیری تبدیل کن ❗️

سرفصل‌ها:
🔹 بخش‌بندی بازار و طراحی پرسونا
🔹 تصمیم‌گیری داده‌محور در بازاریابی
🔹 بهینه‌سازی کانال‌های بازاریابی
🔹طراحی و اجرای تست‌های بازاریابی

🏛 موسسه توسعه

📎 مشاوره رایگان و مشاهده جزئیات دوره:

🌐 httb.ir/6gpHN 👈

🟣🟣🟣🟣🟣🟣🟣🟣
Please open Telegram to view this post
VIEW IN TELEGRAM
⭐️ Container Queries — a new way to make layouts responsive.

Before: @media rules reacted to screen width (e.g. under 768px → smaller font).
Problem: components behave differently in cards, sidebars, modals — viewport alone isn’t enough.

Container Queries let CSS adapt to a parent’s size, not the whole screen.

➡️ Example:

.card { container-type: inline-size; }

@container (max-width: 400px) {
.card-title { font-size: 1rem; }
}


How it works
• Mark a container with container-type.
• Use @container to style elements inside it.
• Components adapt to parent width, no global media hacks.
• Cleaner CSS, fewer JS tweaks, local responsive behavior.

📌 Supported natively in modern browsers — truly component-based CSS.


💎 @Htmlcss_channels | #css #JavaScript #HTML
Please open Telegram to view this post
VIEW IN TELEGRAM
1🙏1