Code Spark
8.11K 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
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 แŠจแ‰ฃแ‹ต แАแ‹ แˆตแˆˆแ‹šแˆ… แˆถแˆปแˆ แˆ˜แŒแ‰ฃแ‰ต แŠ แˆˆแ‰ฅแŠ แˆฒแˆ‰ แ‹ญแˆฐแˆ›แˆแข

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

In CSS, color is used to set the color of text, backgrounds, borders, and more.
It makes websites look beautiful and easy to read.

Where Do We Use Color?
๐Ÿ’ฅText color
๐Ÿ’ฅBackground color
๐Ÿ’ฅBorder color

Example:
p { color: blue; /* text will be blue */ } 

div { background-color: yellow; /* background will be yellow */ }

How Can We Write Colors in CSS?
There are different ways to write colors:


1.Color names

Simple English names.

Example: red, blue, green, yellow.

h1 { color: red; } 

2.Hex codes

A special code that starts with #.

Example: #ff0000 (red), #00ff00 (green).

h1 { color: #ff0000; } 

3.RGB (Red, Green, Blue)

You write how much red, green, and blue you want (0 to 255).

Example:

h1 { color: rgb(255, 0, 0); /* red */ } 

4.RGBA (RGB + Alpha)

Same as RGB, but you can add opacity (transparency).
Example:
h1 { color: rgba(255, 0, 0, 0.5); /* half transparent red */ } 

Summary:
๐Ÿ‘‰Color names are easy to remember.

๐Ÿ‘‰Hex codes and RGB give you more control.

๐Ÿ‘‰RGBA adds transparency.


If you want Amharic voice explanation

Here is the link๐Ÿ‘‰https://t.me/besmart123go/23
โค4๐Ÿ‘1
A 21-day project plan to help you build your web development skills using HTML and CSS.

These projects will gradually increase in complexity, helping you gain hands-on experience. Remember, practice is key to becoming a proficient web developer.

Week 1 - Basic Projects:

Day 1 - Personal W
....Read More..
๐Ÿ‘4
๐Ÿ‘3โค2
๐ŸŽ‰ Big News, Ethio Coders! ๐ŸŽ‰

Alhamdulillah! Weโ€™ve reached 5k 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  #5KSubscribers  #KeepCoding
๐Ÿ‘3โค1
1. What is CSS Background?

The CSS background properties are used to style the background of an HTML element.

This includes:-
๐Ÿ’ฅBackground color
๐Ÿ’ฅBackground image
๐Ÿ’ฅImage repeat behavior
๐Ÿ’ฅPositioning and size
๐Ÿ’ฅAttachment behavior

You can use each background property separately

2. CSS Background Properties

A. background-color

Sets the color behind the content of an element.

Accepts color names, hex codes, rgb/rgba, or hsl/hsla.

Example:

div { 
background-color: #f0f0f0;
}

B. background-image
Sets an image as the background.

Use url("path-to-image") to load the image.

If the image is smaller than the element, it repeats by default.

Example:

body { background-image: url("bg.jpg"); 
}

C. background-repeat

Controls how a background image is repeated.

Values:
repeat (default) โ€” repeats in both directions

no-repeat โ€” shows once

repeat-x โ€” repeats horizontally

repeat-y โ€” repeats vertically

Example:
div {
background-image: url("bg.png"); background-repeat: no-repeat;
}

D. background-position

Sets the starting position of the background image.

You can use:

Keywords: left, center, right, top, bottom

Percentages or pixels: 50% 20px

Example:
div { 
background-position: center top;
}

E. background-size
Defines the size of the background image.

Values:
cover: fills the element, image may be cropped

contain: fits entire image, keeps aspect ratio

auto: default size

width height: e.g., 100px 200px

Example:
div { background-size: cover; 
}

F. background-attachment

Determines whether the background image scrolls with the content or stays fixed.

Values:
scroll (default) โ€” image moves with content

fixed โ€” image stays in place when scrolling

local โ€” scrolls with the elementโ€™s content

Example:
body { background-attachment: fixed; 
}
๐Ÿ‘3โค1