Code Spark
8.12K subscribers
205 photos
11 videos
68 files
138 links
Code Spark โ€“ helps you learn coding through collaboration in an easy and fun way. Work together, start small, practice step by step, and turn ideas into real projects. Spark your mind, share your knowledge, build skills as a team, and become great program
Download Telegram
๐Ÿ’ฅWhy use CSS

We use Cascading Style Sheets (CSS) to control the presentation of web pages written in HTML. Think of HTML as the structure and content of a house โ€“ the walls, doors, and furniture. CSS is like the interior designer. It tells the browser how that content should look:

Styling: CSS allows us to define the visual appearance of elements, such as colors, fonts, sizes, spacing, and layout. Instead of writing styling information directly into each HTML element, we can centralize it in CSS rules. This makes our code cleaner and easier to manage.

Separation of Concerns: CSS separates the presentation (how things look) from the structure and content (what things are). This separation makes websites easier to develop, maintain, and update. If you want to change the look of your entire website, you only need to modify the CSS files, not touch the HTML.

Consistency: By using CSS, we can ensure a consistent look and feel across all the pages of a website. This creates a better user experience and strengthens brand identity.

Responsiveness: CSS enables us to create websites that adapt to different screen sizes and devices (desktops, tablets, phones). Techniques like media queries allow us to apply different styles based on the device's characteristics.

Efficiency: External CSS files are cached by the browser, meaning that once a user visits one page of your website, their browser won't have to download the same styling information again for other pages. This makes websites load faster.

Accessibility: Well-structured CSS can contribute to better website accessibility by ensuring that content is presented in a clear and understandable way for all users, including those with disabilities.

๐Ÿ’ฅCssแŠ• แˆˆแˆแŠ•แ‹ตแАแ‹ แˆแŠ•แŒ แ‰€แˆ˜แ‹

แŠซแˆตแŠฌแ‹ฒแŠ•แŒ แˆตแ‰ณแ‹ญแˆ แˆบแ‰ตแˆต (CSS) แ‰ แŠคแ‰ฝแ‰ฒแŠคแˆแŠคแˆ (HTML) แ‹จแ‰ฐแŒปแ‰ แ‹จแ‹ตแˆจ-แŒˆแŒพแ‰ฝแŠ• แŠ แ‰€แˆซแˆจแ‰ฅ แˆˆแˆ˜แ‰†แŒฃแŒ แˆญ แŠฅแŠ•แŒ แ‰€แˆแ‰ แ‰ณแˆˆแŠ•แข แŠคแ‰ฝแ‰ฒแŠคแˆแŠคแˆแŠ• แŠฅแŠ•แ‹ฐ แ‰คแ‰ต แŠ แ‹ˆแ‰ƒแ‰€แˆญ แŠฅแŠ“ แ‹ญแ‹˜แ‰ต โ€“ แŒแ‹ตแŒแ‹ณแ‹Žแ‰ฝแฃ แ‰ แˆฎแ‰ฝ แŠฅแŠ“ แ‹จแ‰คแ‰ต แŠฅแ‰ƒแ‹Žแ‰ฝ โ€“ แ‰ฅแˆˆแ‹ แ‹ซแˆตแ‰กแ‰ตแข แˆฒแŠคแˆตแŠคแˆต แ‹ฐแŒแˆž แŠฅแŠ•แ‹ฐ แ‹จแ‹แˆตแŒฅ แ‹ฒแ‹›แ‹ญแАแˆญ แАแ‹แข แ‹ญแ‹˜แ‰ฑ แ‰ แŠ แˆณแˆน แŠฅแŠ•แ‹ดแ‰ต แˆ˜แ‰ณแ‹จแ‰ต แŠฅแŠ•แ‹ณแˆˆแ‰ แ‰ต แ‹ญแАแŒแˆจแŠ“แˆแก-

แˆ›แˆตแ‹‹แ‰ฅ (Styling ): แˆฒแŠคแˆตแŠคแˆต แŠฅแŠ•แ‹ฐ แ‰€แˆˆแˆžแ‰ฝแฃ แ‰…แˆญแŒธ-แ‰แˆแŠแ‹Žแ‰ฝ (fonts)แฃ แˆ˜แŒ แŠ–แ‰ฝแฃ แŠญแแ‰ฐแ‰ถแ‰ฝ แŠฅแŠ“ แŠ แ‰€แˆ›แˆ˜แŒฅ แ‹ซแˆ‰ แ‹จแŠ•แŒฅแˆจ แАแŒˆแˆฎแ‰ฝแŠ• (elements) แ‹จแŠฅแ‹ญแ‰ณ แŒˆแŒฝแ‰ณ แŠฅแŠ•แ‹ตแŠ•แŒˆแˆแŒฝ แ‹ซแˆตแ‰ฝแˆˆแŠ“แˆแข แ‹จแˆ›แˆตแ‹‹แ‰ขแ‹ซ แˆ˜แˆจแŒƒแŠ• แ‰ แ‰€แŒฅแ‰ณ แ‰ แŠฅแ‹ซแŠ•แ‹ณแŠ•แ‹ฑ แ‹จแŠคแ‰ฝแ‰ฒแŠคแˆแŠคแˆ แŠคแˆˆแˆ˜แŠ•แ‰ต แ‹แˆตแŒฅ แŠจแˆ˜แŒปแ แ‹ญแˆแ‰… แ‰ แˆฒแŠคแˆตแŠคแˆต แˆ…แŒŽแ‰ฝ แ‹แˆตแŒฅ แŠฅแŠ“แˆ›แŠญแˆ‹แˆˆแŠ• (centralize). แ‹ญแˆ… แŠฎแ‹ณแ‰ฝแŠ•แŠ• แŠ•แŒนแˆ… แŠฅแŠ“ แˆˆแˆ›แˆตแ‰ฐแ‹ณแ‹ฐแˆญ แ‰€แˆ‹แˆ แ‹ซแ‹ฐแˆญแŒˆแ‹‹แˆแข

แ‹จแˆƒแˆ‹แŠแАแ‰ต แˆ˜แˆˆแ‹ซแ‹จแ‰ต (Separation of concern ): แˆฒแŠคแˆตแŠคแˆต แŠ แ‰€แˆซแˆจแ‰ฅแŠ• (แАแŒˆแˆฎแ‰ฝ แŠฅแŠ•แ‹ดแ‰ต แŠฅแŠ•แ‹ฐแˆšแ‰ณแ‹ฉ) แŠจแŠ แ‹ˆแ‰ƒแ‰€แˆญ แŠฅแŠ“ แ‹ญแ‹˜แ‰ต (แАแŒˆแˆฎแ‰ฝ แˆแŠ• แŠฅแŠ•แ‹ฐแˆ†แŠ‘) แ‹ญแˆˆแ‹ซแˆแข แ‹ญแˆ… แˆ˜แˆˆแ‹ซแ‹จแ‰ต แ‹ตแˆจ-แŒˆแŒพแ‰ฝแŠ• แˆˆแˆ›แ‹ณแ‰ แˆญแฃ แˆˆแˆ˜แŒ แŒˆแŠ• แŠฅแŠ“ แˆˆแˆ›แ‹˜แˆ˜แŠ• แ‰€แˆ‹แˆ แ‹ซแ‹ฐแˆญแŒˆแ‹‹แˆแข แ‹จแŒ แ‰…แˆ‹แˆ‹ แ‹ตแˆญ แŒฃแ‰ขแ‹ซแ‹ŽแŠ• แŒˆแŒฝแ‰ณ แˆˆแˆ˜แˆˆแ‹ˆแŒฅ แŠจแˆแˆˆแŒ‰ แ‹จแˆฒแŠคแˆตแŠคแˆต แ‹แ‹ญแˆŽแ‰ฝแŠ• แ‰ฅแ‰ป แˆ›แˆตแ‰ฐแŠซแŠจแˆ แ‹ซแˆตแˆแˆแŒแ‹Žแ‰ณแˆแฃ แŠคแ‰ฝแ‰ฒแŠคแˆแŠคแˆแŠ• แˆณแ‹ญแАแŠฉแข

แ‰ฐแŒฃแŒฃแŠแАแ‰ต (consistency ): แˆฒแŠคแˆตแŠคแˆตแŠ• แ‰ แˆ˜แŒ แ‰€แˆ แ‰ แˆแˆ‰แˆ แ‹จแ‹ตแˆญ แŒฃแ‰ขแ‹ซแ‹ แŒˆแŒพแ‰ฝ แˆ‹แ‹ญ แ‹ˆแŒฅ แ‹จแˆ†แА แˆ˜แˆแŠญ แŠฅแŠ“ แˆตแˆœแ‰ต แˆ›แˆจแŒ‹แŒˆแŒฅ แŠฅแŠ•แ‰ฝแˆ‹แˆˆแŠ•แข แ‹ญแˆ… แ‹จแ‰ฐแˆปแˆˆ แ‹จแ‰ฐแŒ แ‰ƒแˆš แ‰ฐแˆžแŠญแˆฎ แ‹ญแˆแŒฅแˆซแˆ แŠฅแŠ“ แ‹จแˆแˆญแ‰ต แˆ›แŠ•แАแ‰ตแŠ• แ‹ซแŒ แŠ“แŠญแˆซแˆแข

แˆแˆ‹แˆฝ แˆฐแŒชแАแ‰ต (Responsive ): แˆฒแŠคแˆตแŠคแˆต แŠจแ‰ฐแˆˆแ‹ซแ‹ฉ แ‹จแˆตแŠญแˆชแŠ• แˆ˜แŒ แŠ–แ‰ฝ แŠฅแŠ“ แˆ˜แˆณแˆชแ‹ซแ‹Žแ‰ฝ (แ‹ดแˆตแŠญแ‰ถแ•แฃ แ‰ณแ‰ฅแˆŒแ‰ถแ‰ฝแฃ แˆตแˆแŠฎแ‰ฝ) แŒ‹แˆญ แ‹จแˆšแŒฃแŒฃแˆ™ แ‹ตแˆจ-แŒˆแŒพแ‰ฝแŠ• แŠฅแŠ•แ‹ตแŠ•แˆแŒฅแˆญ แ‹ซแˆตแ‰ฝแˆˆแŠ“แˆแข แŠฅแŠ•แ‹ฐ แˆšแ‹ฒแ‹ซ แˆ˜แŒ แ‹ญแ‰†แ‰ฝ (media queries) แ‹ซแˆ‰ แ‰ดแŠญแŠ’แŠฎแ‰ฝ แ‰ แˆ˜แˆณแˆชแ‹ซแ‹ แ‰ฃแˆ…แˆชแ‹ซแ‰ต แˆ‹แ‹ญ แ‰ แˆ˜แˆ˜แˆตแˆจแ‰ต แ‹จแ‰ฐแˆˆแ‹ซแ‹ฉ แ‰…แŒฆแ‰ฝแŠ• แŠฅแŠ•แ‹ตแŠ•แ‰ฐแŒˆแ‰ฅแˆญ แ‹ซแˆตแ‰ฝแˆ‰แŠ“แˆแข

แ‹แŒคแ‰ณแˆ›แАแ‰ต (Efficiency ): แ‹แŒซแ‹Š แ‹จแˆฒแŠคแˆตแŠคแˆต แ‹แ‹ญแˆŽแ‰ฝ แ‰ แŠ แˆณแˆน แ‹ญแ‰€แˆ˜แŒฃแˆ‰ (cached)แฃ แ‹ญแˆ…แˆ แˆ›แˆˆแ‰ต แŠ แŠ•แ‹ต แ‰ฐแŒ แ‰ƒแˆš แ‹จแ‹ตแˆญ แŒฃแ‰ขแ‹ซแ‹ŽแŠ• แŠ แŠ•แ‹ต แŒˆแŒฝ แŠจแŒŽแ‰ แŠ˜ แ‰ แŠ‹แˆ‹ แŠ แˆณแˆน แˆˆแˆŒแˆŽแ‰ฝ แŒˆแŒพแ‰ฝ แ‰ฐแˆ˜แˆณแˆณแ‹ญ แ‹จแˆ›แˆตแ‹‹แ‰ขแ‹ซ แˆ˜แˆจแŒƒแŠ• แŠฅแŠ•แ‹ฐแŒˆแŠ“ แˆ›แ‹แˆจแ‹ต แŠ แ‹ญแŠ–แˆญแ‰ แ‰ตแˆแข แ‹ญแˆ… แ‹จแ‹ตแˆญ แŒฃแ‰ขแ‹ซแ‹Žแ‰ฝแŠ• แ‹จแˆ˜แŒซแŠ› แแŒฅแАแ‰ต แ‹ซแˆปแˆฝแˆ‹แˆแข

แ‰ฐแ‹ฐแˆซแˆฝแАแ‰ต (accessibility ): แ‰ แ‹ฐแŠ•แ‰ฅ แ‹จแ‰ฐแ‹‹แ‰€แˆจ แˆฒแŠคแˆตแŠคแˆต แ‹จแŠ แŠซแˆ แŒ‰แ‹ณแ‰ฐแŠžแ‰ฝแŠ• แŒจแˆแˆฎ แˆˆแˆแˆ‰แˆ แ‰ฐแŒ แ‰ƒแˆšแ‹Žแ‰ฝ แ‹ญแ‹˜แ‰ฑ แŒแˆแŒฝ แŠฅแŠ“ แˆˆแˆ˜แˆจแ‹ณแ‰ต แ‰ แˆšแ‹ซแˆตแ‰ฝแˆ แˆ˜แŠ•แŒˆแ‹ต แŠฅแŠ•แ‹ฒแ‰€แˆญแ‰ฅ แ‰ แˆ›แ‹ตแˆจแŒ แ‹จแ‰ฐแˆปแˆˆ แ‹จแ‹ตแˆญ แŒฃแ‰ขแ‹ซ แ‰ฐแ‹ฐแˆซแˆฝแАแ‰ตแŠ• แˆˆแˆ›แˆจแŒ‹แŒˆแŒฅ แŠ แˆตแ‰ฐแ‹‹แ…แŠฆ แ‹ซแ‹ฐแˆญแŒ‹แˆแข
๐Ÿ‘3๐Ÿฅฐ2โค1
แŠขแ‹ต แˆ™แ‰ฃแˆจแŠญ แˆˆethio coders แ‹ตแŠ•แ‰… แŠ แ‰ฃแˆ‹แ‰ต แ‰ แˆ™แˆ‰! แ‹ญแˆ… แ‹จแ‹ฐแˆตแ‰ณ แ‰ แ‹“แˆ แˆˆแˆแˆ‹แ‰ฝแˆแˆ แ‹ฐแˆตแ‰ณแŠ•แฃ แˆฐแˆ‹แˆแŠ• แŠฅแŠ“ แˆตแแˆญ แ‰แŒฅแˆญ แ‹จแˆŒแˆ‹แ‰ธแ‹แŠ• แ‰ แˆจแŠจแ‰ถแ‰ฝ แ‹ซแˆแŒฃแˆ‹แ‰ฝแˆแข แ‰ แˆ™แ‰€แ‰ต แŠฅแŠ“ แ‰ แŠ แŠ•แ‹ตแАแ‰ต แ‹จแ‰ฐแˆžแˆ‹ แ‹จแ‰ฐแ‰ฃแˆจแŠจ แŠขแ‹ต แŠฅแˆ˜แŠ›แˆˆแˆแข ุชู‚ุจู„ ุงู„ู„ู‡ ู…ู†ุง ูˆู…ู†ูƒู… (แ‰ฐแ‰€แ‰ แˆˆแˆ‹แˆ แˆšแŠ“ แ‹ˆแˆšแŠ•แŠฉแˆ) - แŠ แˆ‹แˆ… แŠจแŠฅแŠ›แˆ แŠจแŠฅแŠ“แŠ•แ‰ฐแˆ แŒพแˆแŠ“ แˆ˜แˆแŠซแˆ แˆตแˆซแ‹Žแ‰ฝแŠ• แ‹ญแ‰€แ‰ แˆแˆแŠ•แข
๐Ÿ‘2โค1
๐ŸŽ‰ Big News, Ethio Coders! ๐ŸŽ‰

Alhamdulillah! Weโ€™ve reached 3,000 subscribers! ๐Ÿš€โœจ

A huge THANK YOU to every member of this amazing community. Your support, engagement, and passion for coding have made this possible! ๐Ÿ™Œ๐Ÿ’ป

This is just the beginningโ€”more tutorials, projects, and coding resources are coming soon! Letโ€™s continue growing and learning together.

Keep supporting Ethio Coders and invite your friends to join! ๐Ÿ’ก๐Ÿ”ฅ

#EthioCoders #3KSubscribers #KeepCoding
๐Ÿ‘3โค1๐Ÿ‘1๐Ÿ˜1
TEYPS OF CSS

CSS (Cascading Style Sheets) has three main types:

1. Inline CSS
Used inside an HTML tag.
Good for quick styling but not recommended for large projects.
Example:

<p style="color: red; font-size: 20px;">This is an inline CSS example.</p> 

2. Internal CSS
Written inside the <style> tag in the HTML file.
Good for single-page styling but not reusable.

Example:

<html> <head> <style> p { color: blue; font-size: 25px; } </style> </head> <body> <p>This is an internal CSS example.</p> </body> </html> 

3. External CSS
Written in a separate .css file and linked to the HTML file.
Best for large projects and reusable styles.

Example:
CSS file (style.css):
p { color: green; font-size: 30px; }

HTML file:

<html> <head> <link rel="stylesheet" href="style.css"> </head> <body> <p>This is an external CSS example.</p> </body> </html> 

Which One to Use?
Use external CSS for big projects.
Use internal CSS for a single-page website.
Use inline CSS only for quick fixes.
Code Spark
TEYPS OF CSS CSS (Cascading Style Sheets) has three main types: 1. Inline CSS Used inside an HTML tag. Good for quick styling but not recommended for large projects. Example: <p style="color: red; font-size: 20px;">This is an inline CSS example.</p> 2.โ€ฆ
แ‹จ CSS แŠ แ‹ญแАแ‰ถแ‰ฝ

CSS (แŠซแˆตแŠฌแ‹ฒแŠ•แŒ แˆตแ‰ณแ‹ญแˆ แˆบแ‰ตแˆต) แˆถแˆตแ‰ต แ‹‹แŠ“ แ‹‹แŠ“ แŠ แ‹ญแАแ‰ถแ‰ฝ แŠ แˆ‰แ‰ตแข

แ‰ แ‹แˆตแŒฅ แˆ˜แˆตแˆ˜แˆญ CSS (Inline CSS)

๐Ÿ’ฅแ‰ HTML แˆ˜แˆˆแ‹ซ แ‹แˆตแŒฅ แ‹จแˆšแŒปแ แАแ‹แข
๐Ÿ’ฅแˆˆแŠ แ‹แŒฃแŠ แ‰…แŒฆแ‰ฝ แŒฅแˆฉ แАแ‹แฃ แŒแŠ• แˆˆแ‰ตแˆ‹แˆแ‰… แ•แˆฎแŒ€แŠญแ‰ถแ‰ฝ แŠ แ‹ญแˆ˜แŠจแˆญแˆแข

แˆแˆณแˆŒแก
<p style="color: red; font-size: 20px;">แ‹ญแˆ… แ‹จแ‹แˆตแŒฅ แˆ˜แˆตแˆ˜แˆญ CSS แˆแˆณแˆŒ แАแ‹แข</p>

แ‹แˆตแŒฃแ‹Š CSS (Internal CSS)

๐Ÿ’ฅแ‰ HTML แ‹แ‹ญแˆ แ‹แˆตแŒฅ แ‰ฃแˆˆแ‹ <style> แˆ˜แˆˆแ‹ซ แ‹แˆตแŒฅ แ‹จแˆšแŒปแ แАแ‹แข

๐Ÿ’ฅแˆˆแŠ แŠ•แ‹ต แŒˆแŒฝ แ‰ฅแ‰ป แŒฅแˆฉ แАแ‹แฃ แŒแŠ• แŠฅแŠ•แ‹ฐแŒˆแŠ“ แˆ˜แŒ แ‰€แˆ แŠ แ‹ญแ‰ปแˆแˆแข

  แˆแˆณแˆŒแก

     <html>
<head>
<style>
p {
  color: blue;
  font-size: 25px;
}
</style>
</head>
<body>
<p>แ‹ญแˆ… แ‹จแ‹แˆตแŒฃแ‹Š CSS แˆแˆณแˆŒ แАแ‹แข</p>
</body>
</html>

แ‹แŒซแ‹Š CSS (External CSS)

๐Ÿ’ฅแ‰ แ‰ฐแˆˆแ‹จ .css แ‹แ‹ญแˆ แ‹แˆตแŒฅ แ‹จแˆšแŒปแ แŠฅแŠ“ แŠจHTML แ‹แ‹ญแˆ แŒ‹แˆญ แ‹จแˆšแŒˆแŠ“แŠ แАแ‹แข

๐Ÿ’ฅแˆˆแ‰ตแˆ‹แˆแ‰… แ•แˆฎแŒ€แŠญแ‰ถแ‰ฝ แŠฅแŠ“ แŠฅแŠ•แ‹ฐแŒˆแŠ“ แŒฅแ‰…แˆ แˆ‹แ‹ญ แˆˆแˆšแ‹แˆ‰ แ‰…แŒฆแ‰ฝ แ‰ แŒฃแˆ แŒฅแˆฉ แАแ‹แข

  แˆแˆณแˆŒแก

  แ‹จ CSS แ‹แ‹ญแˆ (style.css):

     
p {
  color: green;
  font-size: 30px;
}

    แ‹จ HTML แ‹แ‹ญแˆ:

    
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>แ‹ญแˆ… แ‹จแ‹แŒซแ‹Š CSS แˆแˆณแˆŒ แАแ‹แข</p>
</body>
</html>

แ‹จแ‰ตแŠ›แ‹แŠ• แˆ˜แŒ แ‰€แˆ แŠ แˆˆแ‰ฅแŠ•?

๐Ÿ’ฅแˆˆแ‰ตแˆ‹แˆแ‰… แ•แˆฎแŒ€แŠญแ‰ถแ‰ฝ แ‹แŒซแ‹Š CSS แŠ• แ‹ญแŒ แ‰€แˆ™แข
๐Ÿ’ฅแŠ แŠ•แ‹ต แŒˆแŒฝ แˆ‹แˆˆแ‹ แ‹ตแˆญ แŒฃแ‰ขแ‹ซ แ‹แˆตแŒฃแ‹Š CSS แŠ• แ‹ญแŒ แ‰€แˆ™แข
๐Ÿ’ฅแ‰ แ‹แˆตแŒฅ แˆ˜แˆตแˆ˜แˆญ CSS แŠ• แˆˆแŠ แ‹แŒฃแŠ แˆˆแ‹แŒฆแ‰ฝ แ‰ฅแ‰ป แ‹ญแŒ แ‰€แˆ™แข
Css Syntax

CSS (Cascading Style Sheets) is used to style web pages.
๐Ÿ‘‰แˆฒแŠคแˆตแŠคแˆต (Cascading Style Sheets) แ‹จแ‹ตแˆจ-แŒˆแŒพแ‰ฝแŠ• แŒˆแŒฝแ‰ณ แˆˆแˆ˜แ‰€แ‹จแˆญ แ‹ญแŒ แ‰…แˆ›แˆแข

The CSS syntax consists of three main parts:
๐Ÿ‘‰แ‹จแˆฒแŠคแˆตแŠคแˆต แŠ แŒˆแ‰ฃแ‰ฅ แˆถแˆตแ‰ต แ‹‹แŠ“ แ‹‹แŠ“ แŠญแแˆŽแ‰ฝ แŠ แˆ‰แ‰ตแก-

๐Ÿ’ฅSelector โ†’ The HTML element you want to style.
๐Ÿ‘‰แˆ˜แˆซแŒญ โ†’ แˆ›แˆตแ‹‹แ‰ฅ แ‹จแˆแ‰ตแˆแˆแŒ‰แ‰ต แ‹จแŠคแ‰ฝแ‰ฒแŠคแˆแŠคแˆ แŠคแˆˆแˆ˜แŠ•แ‰ตแข

๐Ÿ’ฅProperty โ†’ The type of style you want to apply (e.g., color, font size).
๐Ÿ‘‰แ‰ฃแˆ…แˆช โ†’ แ‹จแˆแ‰ตแŒ แ‰€แˆ™แ‰ แ‰ต แ‹จแ‰…แŒฅ แŠ แ‹ญแАแ‰ต (แˆˆแˆแˆณแˆŒ แ‰€แˆˆแˆแฃ แ‹จแŠแ‹ฐแˆ แˆ˜แŒ แŠ•)แข

๐Ÿ’ฅValue โ†’ The specific setting for the property.
๐Ÿ‘‰แŠฅแˆดแ‰ต โ†’ แˆˆแ‰ฃแˆ…แˆชแ‹ แ‹จแ‰ฐแ‹ˆแˆฐแАแ‹ แˆ˜แ‰ผแ‰ตแข
Example:-

p { color: red; font-size: 20px; }


Explanation:
แˆ›แ‰ฅแˆซแˆชแ‹ซแก-
๐Ÿ’ฅp โ†’ Selector (targets all <p> tags in HTML).
๐Ÿ‘‰p โ†’ แˆ˜แˆซแŒญ (แ‰ แŠคแ‰ฝแ‰ฒแŠคแˆแŠคแˆ แ‹แˆตแŒฅ แ‹ซแˆ‰แ‰ตแŠ• แˆแˆ‰แŠ•แˆ <p> แ‰ณแŒŽแ‰ฝ แ‹ซแАแŒฃแŒ แˆซแˆแข)

๐Ÿ’ฅcolor โ†’ Property (sets the text color).
๐Ÿ‘‰color โ†’ แ‰ฃแˆ…แˆช (แ‹จแŒฝแˆ‘แ‰แŠ• แ‰€แˆˆแˆ แ‹ญแ‹ˆแˆตแŠ“แˆแข)

๐Ÿ’ฅred โ†’ Value (text color will be red).
๐Ÿ‘‰red โ†’ แŠฅแˆดแ‰ต (แ‹จแŒฝแˆ‘แ‰ แ‰€แˆˆแˆ แ‰€แ‹ญ แ‹ญแˆ†แŠ“แˆแข)

๐Ÿ’ฅfont-size โ†’ Property (sets the size of the text).
๐Ÿ‘‰font-size โ†’ แ‰ฃแˆ…แˆช (แ‹จแŒฝแˆ‘แ‰แŠ• แˆ˜แŒ แŠ• แ‹ญแ‹ˆแˆตแŠ“แˆแข)

๐Ÿ’ฅ20px โ†’ Value (text size will be 20 pixels).
๐Ÿ‘‰20px โ†’ แŠฅแˆดแ‰ต (แ‹จแŒฝแˆ‘แ‰ แˆ˜แŒ แŠ• 20 แ’แŠญแˆตแˆ แ‹ญแˆ†แŠ“แˆแข)


๐Ÿ’ฅEach style rule is written inside curly braces {}, and every property-value pair ends with a semicolon ;.

๐Ÿ‘‰แŠฅแ‹ซแŠ•แ‹ณแŠ•แ‹ฑ แ‹จแ‰…แŒฅ แŠ แŒˆแ‹›แ‹ แ‰ แˆแˆˆแ‰ต แ‹จแ‰ฐแŒ แˆ›แ‹˜แ‹™ แˆ›แ‹•แ‰€แŽแ‰ฝ {} แ‹แˆตแŒฅ แ‹จแ‰ฐแŒปแˆ แˆฒแˆ†แŠ• แŠฅแ‹ซแŠ•แ‹ณแŠ•แ‹ฑ แ‹จแ‰ฃแˆ…แˆช-แŠฅแˆดแ‰ต แŒฅแŠ•แ‹ต แ‰ แˆฐแˆšแŠฎแˆŽแŠ• ; แ‹ซแ‰ แ‰ƒแˆแข
โค2๐Ÿ‘2
Hey Ethio Coders Subscribers,

Learning HTML, CSS, and JavaScript is the key to unlocking the world of web development! ๐ŸŒ Whether you have a laptop or just a phone, you can start coding today!

โœ… Laptop Users โ€“ Use VS Code or any text editor to write and test your code.
โœ… Phone Users โ€“ Download the SPCK Code Editor and turn your phone into a powerful coding tool!

๐Ÿ’ก Why Learn HTML, CSS & JS?
๐Ÿ”น Create stunning websites ๐ŸŒ
๐Ÿ”น Build amazing user interfaces ๐ŸŽจ
๐Ÿ”น Develop interactive and dynamic web apps โšก
๐Ÿ”น Start freelancing or get a tech job ๐Ÿ’ผ

๐ŸŽฏ No Excuses! Start Small & Stay Consistent.
๐Ÿ“ข "The best programmers are not the ones with expensive devices, but those with dedication and practice!"

๐Ÿ“Œ ๐Ÿ“– Table of Content: Click here to access structured learning materials.

Join us, ask questions, and let's build amazing projects together! ๐Ÿš€๐Ÿ”ฅ

#EthioCoders #LearnToCode #HTML #CSS #JavaScript
๐Ÿ‘5
Main CSS Selectors

CSS selectors are patterns used to select and style HTML elements. Below are the main types of CSS selectors, along with their explanations and examples:

1. Universal Selector (*)

The universal selector selects all elements on a webpage.

It is used when we want to apply styles to every element.

Example:
* {
  color: red;
}

This will make all the text in the document red.


2. Element (Type) Selector

The element selector applies styles to all instances of a particular HTML tag.

It is useful when styling headings, paragraphs, or divs.

Example:
p {
  font-size: 18px;
}

This will make all <p> elements have a font size of 18px.

3. Class Selector (.)

The class selector is used to select elements with a specific class.

It allows multiple elements to share the same styles.

Example:
.highlight {
  background-color: yellow;
}

Any element with class="highlight" will have a yellow background.

4. ID Selector (#)

The ID selector targets a single, unique element with a specific ID.

Each ID should be used only once per page.

Example:
#title {
  text-align: center;
}

The element with id="title" will have centered text.
๐Ÿ‘7
This media is not supported in your browser
VIEW IN TELEGRAM
Inline and internal css from Udacity
๐Ÿ‘6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up Page</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}

body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.signup-container {
background: rgba(255, 255, 255, 0.95);
padding: 40px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: 400px;
text-align: center;
}

.signup-container h2 {
color: #333;
margin-bottom: 20px;
font-size: 28px;
}

.input-group {
margin-bottom: 20px;
text-align: left;
}

.input-group label {
display: block;
color: #555;
margin-bottom: 8px;
font-size: 14px;
}

.input-group input {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 16px;
transition: border-color 0.3s ease;
}

.input-group input:focus {
outline: none;
border-color: #ff6b6b;
}

button {
width: 100%;
padding: 12px;
background: linear-gradient(45deg, #ff6b6b, #ff8e53);
border: none;
border-radius: 8px;
color: white;
font-size: 16px;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.signup-container p {
margin-top: 20px;
color: #555;
font-size: 14px;
}

.signup-container a {
color: #ff6b6b;
text-decoration: none;
font-weight: bold;
}

.signup-container a:hover {
text-decoration: underline;
}

@media (max-width: 480px) {
.signup-container {
padding: 20px;
margin: 20px;
}
}
</style>
</head>
<body>
<div class="signup-container">
<h2 class="sin">Ethio coder</h2>
<form>
<div class="input-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="Enter your username" required>
</div>

<div class="input-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
</div>
<div class="input-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter your password" required>
</div>
<button type="submit">Sign Up</button>
</form>
<p>Already have an account? <a href="#" onclick="display()">Log in</a></p>
</div>

<script >
var sinUp=document.querySelector('.sin');
function display(){
alert('Please first Sign up then you can login ')
}
</script>
</body>
</html>
๐Ÿ‘7โค1
What is a CSS comment?

A CSS comment is a note you write inside your CSS code. It is not shown on the website and does not affect how the page looks.

You use it to:


๐Ÿ‘‰Explain what your code does

๐Ÿ‘‰Leave reminders for yourself or others



How to write a CSS comment:

๐Ÿ’ฅYou start with /* and end with */.

๐Ÿ‘‰Example:

/* This is a comment */ 

body {   background-color: lightblue;

/* This sets the background color */
}

Important:

๐Ÿ’ฅCSS comments can be on a line by themselves or next to code.

๐Ÿ’ฅThe browser ignores anything inside /* ... */.
แ‰ แ‰€แˆ‹แˆ แŠ แˆ›แˆญแŠ› แˆ‹แˆตแˆจแ‹ณแˆ…แค แ‹จ CSS แŠฎแˆ˜แŠ•แ‰ต แˆ›แˆˆแ‰ต แ‰  CSS แŠฎแ‹ตแˆ… แ‹แˆตแŒฅ แ‹จแˆแ‰ตแŒฝแˆแ‹ แˆ›แˆตแ‰ณแ‹ˆแˆป/แˆ›แ‰ฅแˆซแˆชแ‹ซ แˆ›แˆˆแ‰ต แАแ‹แข

แ‹ญแˆ„ แˆ›แˆตแ‰ณแ‹ˆแˆป/comment แ‰ แ‹ตแˆจ แŒˆแŒน แˆ‹แ‹ญ แŠ แ‹ญแ‰ณแ‹ญแˆแค แ‹จแ‹ตแˆจ แŒˆแŒนแŠ• แŒˆแŒฝแ‰ณแˆ แˆแŠ•แˆ แŠ แ‹ญแ‰€แ‹ญแˆญแˆแข

แˆˆแˆแŠ• แŠฅแŠ•แŒ แ‰€แˆ˜แ‹‹แˆˆแŠ• แŠซแˆแŠจแŠแก-
๐Ÿ‘‰แŠฎแ‹ฑ แˆแŠ• แŠฅแŠ•แ‹ฐแˆšแˆฐแˆซ แˆˆแˆ›แˆตแˆจแ‹ณแ‰ต
๐Ÿ‘‰แˆˆแˆซแˆตแˆ… แ‹ˆแ‹ญแˆ แˆˆแˆŒแˆŽแ‰ฝ แˆ›แˆตแ‰ณแ‹ˆแˆป แˆˆแˆ˜แ‰ฐแ‹

แŠฅแŠ•แ‹ดแ‰ต แŠฅแŠ•แŒฝแ‹แˆˆแŠ• แŠซแˆแŠจแŠ แ‹ฐแŒแˆžแก-
๐Ÿ’ฅแ‰  /* แˆแˆแŠญแ‰ต แ‰ตแŒ€แˆแˆซแˆˆแˆ… แ‰  */ แˆแˆแŠญแ‰ต แ‹ฐแŒแˆž แ‰ตแŒจแˆญแˆณแˆˆแˆ…แข

แˆแˆณแˆŒ แก-
/* แ‹ญแˆ„ แŠฎแˆ˜แŠ•แ‰ต แАแ‹ */
body {
  background-color: lightblue;

/* แ‹ญแˆ„ background color/แ‰€แˆˆแˆ แ‹ซแˆตแ‰€แˆแŒฃแˆ */
}

๐Ÿ’ฅแ‹‹แŠ“แ‹ แАแŒˆแˆญ แ‹ญแˆ„ แАแ‹แค แŠฎแˆ˜แŠ•แ‰ต แ‰ แŠฎแ‹ตแˆ… แ‹แˆตแŒฅ แ‹จแˆแ‰ตแŒฝแˆแ‹ แАแŒˆแˆญ แˆฒแˆ†แŠ• แ‹จแ‹ตแˆจ แŒˆแŒนแŠ• แŠ แˆฐแˆซแˆญ แˆแŠ•แˆ แŠ แ‹ญแАแŠซแˆแข แ‰ แŠ แŠ•แ‰ฐแŠ“ แ‰ แˆŒแˆŽแ‰ฝ แŠฎแ‹ฑแŠ• แ‰ แˆšแ‹ซแ‹ฉ แˆฐแ‹Žแ‰ฝ แˆ˜แŠซแŠจแˆ แŠฅแŠ•แ‹ฐ แˆ˜แŒแ‰ฃแ‰ขแ‹ซ แŠฅแŠ•แŒ แ‰€แˆ˜แ‹‹แˆˆแŠ•แข

๐Ÿ’ฅแ‹ตแˆจ แŒˆแŒน /websitu แŠฎแ‹ฑแŠ• แ‰ แˆšแ‹ซแАแ‰ฅ
๐Ÿ‘3
แˆตแˆˆ coding แ‹จแˆฐแŒˆแˆจแˆ™แŠ แАแŒˆแˆฎแ‰ฝ

Watch by pressing the following link๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡

https://t.me/+1F-gkmYE38w0OTA0

Betelay jemari kehonachu ๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†
๐Ÿ‘2
Forwarded from Coding Era
To be successful person

You can be successful. Just donโ€™t give up.

Work a little every day.

Believe in yourself.

Learn from your mistakes.

Stay strong, even when life is hard.

Keep dreaming big.

Be kind and honest.

Never stop learning.


Step by step, you will reach your goal. Success takes time, but you can do it!

Join:https://t.me/+1F-gkmYE38w0OTA0
๐Ÿ‘5๐Ÿ”ฅ1
Introduction to JavaScript (JS)

What is JavaScript?

JavaScript (JS) is a programming language used to make websites interactive.

It works with HTML and CSS.

JavaScript runs in the browser (like Chrome, Firefox).


Why Use JavaScript?

Read More๐Ÿ‘‡
๐Ÿ‘10๐Ÿ‘3โค2
Main Uses of JavaScript

1. Web Development (Frontend)

JS makes websites interactive and dynamic.

Show/hide elements

Validate forms

Handle user actions (click, scroll, etc.)

Change content without reloading the page

Example: Clicking a button to display a message


2. Web Development (Backend)

With Node.js, JS can also run on the server:

Handle requests and responses

Connect to databases

Build APIs

Power full-stack apps

Example: Chat applications like WhatsApp Web


3. Mobile App Development

JS is used to build mobile apps using:
Read More ๐Ÿ‘‡
โค2๐Ÿ”ฅ2๐Ÿ‘1
Forwarded from Birhan Nega
แ‰€แˆ‹แˆ แ‰ตแˆแˆ…แˆญแ‰ต แ‹จแ‰ตแŠ›แ‹ แАแ‹ แ‰ฅแˆ‹แ‰ฝแˆ แŠ แ‰ตแˆ›แˆฉแข แ‰ แ‰€แˆ‹แˆ‰ แ‹ˆแ‹ฐ แˆตแˆซ แ‹จแˆšแ‹ซแˆตแŒˆแ‰ฃแŠ• แ‰ฅแˆ‹แ‰ฝแˆแˆ แŠ แ‰ณแˆตแ‰กแข if you want to succeeded, get ready for the challenge, you have to pay what it takes to achieve the goal.

แ‰ฅแ‹™ แ‰ฐแˆ›แˆชแ‹Žแ‰ฝ แŠขแŠ•แŒ€แАแˆชแŠ•แŒ แˆ˜แˆ›แˆญ แŠฅแˆแˆแŒ‹แˆˆแˆ แŒแŠ• Mathematics แŠจแ‰ฃแ‹ต แАแ‹ แˆตแˆˆแ‹šแˆ… แˆถแˆปแˆ แˆ˜แŒแ‰ฃแ‰ต แŠ แˆˆแ‰ฅแŠ แˆฒแˆ‰ แ‹ญแˆฐแˆ›แˆแข

แ‰ณแŒแˆŽ แŒฅแ‰ฅแˆต แˆ˜แ‰ฅแˆ‹แ‰ต แŠฅแ‹จแ‰ฐแ‰ปแˆˆ แ‹ตแŠซแˆแˆฝแˆแŠ• แˆˆแˆ˜แˆธแˆฝ แˆซแˆตแŠ• แ‰ แ‰ แˆถ แˆ˜แˆธแŠ•แŒˆแˆ แ‰ฐแŒˆแ‰ข แŠ แ‹ญแ‹ฐแˆˆแˆแข