Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Quick recap of essential SQL basics ππ
SQL is a domain-specific language used for managing and querying relational databases. It's crucial for interacting with databases, retrieving, storing, updating, and deleting data. Here are some fundamental SQL concepts:
1. Database
- A database is a structured collection of data. It's organized into tables, and SQL is used to manage these tables.
2. Table
- Tables are the core of a database. They consist of rows and columns, and each row represents a record, while each column represents a data attribute.
3. Query
- A query is a request for data from a database. SQL queries are used to retrieve information from tables. The SELECT statement is commonly used for this purpose.
4. Data Types
- SQL supports various data types (e.g., INTEGER, TEXT, DATE) to specify the kind of data that can be stored in a column.
5. Primary Key
- A primary key is a unique identifier for each row in a table. It ensures that each row is distinct and can be used to establish relationships between tables.
6. Foreign Key
- A foreign key is a column in one table that links to the primary key in another table. It creates relationships between tables in a database.
7. CRUD Operations
- SQL provides four primary operations for data manipulation:
- Create (INSERT) - Add new records to a table.
- Read (SELECT) - Retrieve data from one or more tables.
- Update (UPDATE) - Modify existing data.
- Delete (DELETE) - Remove records from a table.
8. WHERE Clause
- The WHERE clause is used in SELECT, UPDATE, and DELETE statements to filter and conditionally manipulate data.
9. JOIN
- JOIN operations are used to combine data from two or more tables based on a related column. Common types include INNER JOIN, LEFT JOIN, and RIGHT JOIN.
10. Index
- An index is a database structure that improves the speed of data retrieval operations. It's created on one or more columns in a table.
11. Aggregate Functions
- SQL provides functions like SUM, AVG, COUNT, MAX, and MIN for performing calculations on groups of data.
12. Transactions
- Transactions are sequences of one or more SQL statements treated as a single unit. They ensure data consistency by either applying all changes or none.
13. Normalization
- Normalization is the process of organizing data in a database to minimize data redundancy and improve data integrity.
14. Constraints
- Constraints (e.g., NOT NULL, UNIQUE, CHECK) are rules that define what data is allowed in a table, ensuring data quality and consistency.
@CodingCoursePro
Shared with Loveβ
Hope it helps :)
SQL is a domain-specific language used for managing and querying relational databases. It's crucial for interacting with databases, retrieving, storing, updating, and deleting data. Here are some fundamental SQL concepts:
1. Database
- A database is a structured collection of data. It's organized into tables, and SQL is used to manage these tables.
2. Table
- Tables are the core of a database. They consist of rows and columns, and each row represents a record, while each column represents a data attribute.
3. Query
- A query is a request for data from a database. SQL queries are used to retrieve information from tables. The SELECT statement is commonly used for this purpose.
4. Data Types
- SQL supports various data types (e.g., INTEGER, TEXT, DATE) to specify the kind of data that can be stored in a column.
5. Primary Key
- A primary key is a unique identifier for each row in a table. It ensures that each row is distinct and can be used to establish relationships between tables.
6. Foreign Key
- A foreign key is a column in one table that links to the primary key in another table. It creates relationships between tables in a database.
7. CRUD Operations
- SQL provides four primary operations for data manipulation:
- Create (INSERT) - Add new records to a table.
- Read (SELECT) - Retrieve data from one or more tables.
- Update (UPDATE) - Modify existing data.
- Delete (DELETE) - Remove records from a table.
8. WHERE Clause
- The WHERE clause is used in SELECT, UPDATE, and DELETE statements to filter and conditionally manipulate data.
9. JOIN
- JOIN operations are used to combine data from two or more tables based on a related column. Common types include INNER JOIN, LEFT JOIN, and RIGHT JOIN.
10. Index
- An index is a database structure that improves the speed of data retrieval operations. It's created on one or more columns in a table.
11. Aggregate Functions
- SQL provides functions like SUM, AVG, COUNT, MAX, and MIN for performing calculations on groups of data.
12. Transactions
- Transactions are sequences of one or more SQL statements treated as a single unit. They ensure data consistency by either applying all changes or none.
13. Normalization
- Normalization is the process of organizing data in a database to minimize data redundancy and improve data integrity.
14. Constraints
- Constraints (e.g., NOT NULL, UNIQUE, CHECK) are rules that define what data is allowed in a table, ensuring data quality and consistency.
@CodingCoursePro
Shared with Love
Hope it helps :)
Please open Telegram to view this post
VIEW IN TELEGRAM
β€2
How to Learn Cloud Computing ?
Cloud computing is a vast field with an ever-growing footprint. It can often get tricky for a new developer to understand where to start. Hereβs a learning map:
1 - Cloud Computing Basics
This includes topics such as βwhat is cloud computing,β its benefits, cloud models (public, private, hybrid, and multi), and a comparison of cloud vs. on-premise.
2 - Cloud Service Models
Learn about cloud service models such as IaaS, PaaS, and SaaS.
3 - Cloud Providers
Explore the various popular cloud platforms such as AWS, Azure, GCP, Oracle Cloud, IBM Cloud, etc. Also, learn how to choose a cloud provider.
4 - Key Cloud Services
Learn the key cloud services related to Compute (EC2, Azure VM, Docker, Kubernetes, Lambda, etc), Storage (EBS, Azure Disk, S3, Azure Blob, EFS, etc.), and Networking (VPC, ELB, Azure LB, Cloudfront, and Azure CDN).
5 - Security & Compliance
Learn about the critical security and compliance points related to identity, access management, encryption, data security, DDoS protection, and WAF.
6 - Cloud DevOps & Automation
Learn Cloud DevOps and automation in specific areas such as CI/CD, IaC, and Monitoring.
@CodingCoursePro
Shared with Loveβ
Cloud computing is a vast field with an ever-growing footprint. It can often get tricky for a new developer to understand where to start. Hereβs a learning map:
1 - Cloud Computing Basics
This includes topics such as βwhat is cloud computing,β its benefits, cloud models (public, private, hybrid, and multi), and a comparison of cloud vs. on-premise.
2 - Cloud Service Models
Learn about cloud service models such as IaaS, PaaS, and SaaS.
3 - Cloud Providers
Explore the various popular cloud platforms such as AWS, Azure, GCP, Oracle Cloud, IBM Cloud, etc. Also, learn how to choose a cloud provider.
4 - Key Cloud Services
Learn the key cloud services related to Compute (EC2, Azure VM, Docker, Kubernetes, Lambda, etc), Storage (EBS, Azure Disk, S3, Azure Blob, EFS, etc.), and Networking (VPC, ELB, Azure LB, Cloudfront, and Azure CDN).
5 - Security & Compliance
Learn about the critical security and compliance points related to identity, access management, encryption, data security, DDoS protection, and WAF.
6 - Cloud DevOps & Automation
Learn Cloud DevOps and automation in specific areas such as CI/CD, IaC, and Monitoring.
@CodingCoursePro
Shared with Love
Please open Telegram to view this post
VIEW IN TELEGRAM
<header>
<h1>My Website</h1>
</header>
<nav>
<a href="/">Home</a>
<a href="/about">About</a>
<a href="/contact">Contact</a>
</nav>
<main>
<section>
<h2>About Me</h2>
<p>I'm learning web development.</p>
</section>
<section>
<h2>My Projects</h2>
<article>
<h3>Portfolio Website</h3>
<p>A website showcasing my work.</p>
</article>
<article>
<h3>Weather App</h3>
<p>An application using a weather API.</p>
</article>
</section>
<aside>
<h3>Related Content</h3>
</aside>
</main>
<footer>
<p>Β© 2026 My Website</p>
</footer>
11. Visual Structure
Think of a webpage like this:
βββββββββββββββββββββββββββββββββ
β HEADER β
βββββββββββββββββββββββββββββββββ€
β NAV β
βββββββββββββββββββββββββββββββββ€
β β
β MAIN β
β β
β βββββββββββββββββββββββββ β
β β SECTION β β
β βββββββββββββββββββββββββ β
β β
β βββββββββββββββββββββββββ β
β β ARTICLE β β
β βββββββββββββββββββββββββ β
β β
β ASIDE β
β β
βββββββββββββββββββββββββββββββββ€
β FOOTER β
βββββββββββββββββββββββββββββββββ
12. Why Semantic HTML Matters
Semantic HTML helps with:
Accessibility
Screen readers can better understand the structure of a webpage.
SEO
Search engines can better understand the meaning and organization of content.
Maintainability
Developers can understand the purpose of different parts of the code more easily.
Structure
The HTML becomes clearer and more meaningful.
13. Semantic HTML vs
<div><div> is a generic container.<div>
<h2>About Me</h2>
</div>
If the content represents a meaningful section, you can often use:
<section>
<h2>About Me</h2>
</section>
Don't use semantic elements simply because they sound better. Choose the element that accurately represents the content.
π§ Remember
<header> β Introductory/header content<nav> β Navigation<main> β Primary page content<section> β Thematic section<article> β Self-contained content<aside> β Related/secondary content<footer> β Footer information Key Takeaway
Semantic HTML is about giving meaning to your webpage structure.
HTML
β
Meaningful structure
β
Better accessibility
β
Better maintainability
β
Clearer content structure
Double Tap β€οΈ For More
β€3
βοΈ BACKEND DEVELOPER β SKILLS YOU NEED
If the frontend is what users see and interact with, the backend is what makes the application work behind the scenes.
Backend development involves servers, databases, APIs, authentication, business logic, security and much more.
You don't need to learn everything at once. Build your fundamentals first and then specialize.
Here are the important skills to develop:
π» Programming Language
Choose one backend language and become comfortable with it.
Popular options include:
β’ JavaScript / Node.js
β’ Python
β’ Java
β’ C#
β’ Go
β’ PHP
Don't try to learn all of them initially. Pick one and build real projects.
π§ Programming Fundamentals
Before jumping into frameworks, understand:
β’ Variables and data types
β’ Functions
β’ Conditions and loops
β’ Object-oriented programming
β’ Error handling
β’ Data structures
β’ Algorithms
β’ Asynchronous programming
ποΈ Databases
Learn how applications store and retrieve data.
Start with:
β’ SQL
β’ Relational databases
β’ PostgreSQL or MySQL
β’ Tables and relationships
β’ Joins
β’ Indexes
β’ Transactions
Then explore NoSQL databases such as MongoDB when appropriate.
π APIs
APIs allow different applications and services to communicate.
Learn:
β’ REST APIs
β’ HTTP methods
β’ Request and response
β’ JSON
β’ Status codes
β’ API validation
β’ Error handling
π Authentication & Authorization
Understand how applications identify users and control access.
Learn concepts such as:
β’ Login and registration
β’ Sessions
β’ Cookies
β’ Tokens
β’ JWT
β’ Password hashing
β’ Role-based access
ποΈ Backend Frameworks
After learning your programming language, choose an appropriate framework.
Examples:
β’ Node.js with Express or other Node frameworks
β’ Python with Django or FastAPI
β’ Java with Spring Boot
β’ C# with ASP.NET Core
β’ Go with popular Go web frameworks
βοΈ Business Logic
Learn how to translate real-world requirements into backend functionality.
For example:
A shopping application needs inventory management, orders, payments, discounts and customer accounts.
The backend handles the logic behind these processes.
π§ͺ Testing
Learn how to test backend applications and APIs.
Understand:
β’ Unit testing
β’ Integration testing
β’ API testing
β’ Error handling
β’ Test automation
βοΈ Cloud & Deployment
Learn how applications are deployed and maintained.
Understand the basics of:
β’ Cloud platforms
β’ Servers
β’ Containers
β’ Docker
β’ Environment variables
β’ CI/CD
β’ Logging
β’ Monitoring
π Performance
Learn how to build applications that remain responsive as usage increases.
Important concepts include:
β’ Database optimization
β’ Caching
β’ Pagination
β’ Efficient queries
β’ Load balancing
β’ Asynchronous processing
π Security
Security should be part of backend development from the beginning.
Learn about:
β’ Input validation
β’ SQL injection
β’ Authentication
β’ Authorization
β’ Secure passwords
β’ API security
β’ Rate limiting
β’ Data protection
π€ AI-Assisted Development
AI coding tools can help you understand documentation, generate boilerplate, debug code, write tests and explore solutions.
But you should still understand the code you deploy.
π Git & GitHub
Learn version control so you can track changes, collaborate with other developers and maintain professional projects.
π§© System Design
As you become more experienced, learn how to design systems that are scalable, reliable and maintainable.
A practical learning path:
Programming Fundamentals β Git β SQL β Databases β HTTP β APIs β Backend Framework β Authentication β Testing β Docker β Cloud β System Design
And don't just watch tutorials.
Build projects:
β’ REST API
β’ Authentication system
β’ Blog backend
β’ E-commerce API
β’ Expense tracker API
β’ Job portal backend
β’ Real-time chat application
β’ Full-stack application
The goal isn't to memorize frameworks.
The goal is to understand how applications work behind the scenes and build reliable systems that solve real problems.
Double Tap β€οΈ For More
-----
If the frontend is what users see and interact with, the backend is what makes the application work behind the scenes.
Backend development involves servers, databases, APIs, authentication, business logic, security and much more.
You don't need to learn everything at once. Build your fundamentals first and then specialize.
Here are the important skills to develop:
π» Programming Language
Choose one backend language and become comfortable with it.
Popular options include:
β’ JavaScript / Node.js
β’ Python
β’ Java
β’ C#
β’ Go
β’ PHP
Don't try to learn all of them initially. Pick one and build real projects.
π§ Programming Fundamentals
Before jumping into frameworks, understand:
β’ Variables and data types
β’ Functions
β’ Conditions and loops
β’ Object-oriented programming
β’ Error handling
β’ Data structures
β’ Algorithms
β’ Asynchronous programming
ποΈ Databases
Learn how applications store and retrieve data.
Start with:
β’ SQL
β’ Relational databases
β’ PostgreSQL or MySQL
β’ Tables and relationships
β’ Joins
β’ Indexes
β’ Transactions
Then explore NoSQL databases such as MongoDB when appropriate.
π APIs
APIs allow different applications and services to communicate.
Learn:
β’ REST APIs
β’ HTTP methods
β’ Request and response
β’ JSON
β’ Status codes
β’ API validation
β’ Error handling
π Authentication & Authorization
Understand how applications identify users and control access.
Learn concepts such as:
β’ Login and registration
β’ Sessions
β’ Cookies
β’ Tokens
β’ JWT
β’ Password hashing
β’ Role-based access
ποΈ Backend Frameworks
After learning your programming language, choose an appropriate framework.
Examples:
β’ Node.js with Express or other Node frameworks
β’ Python with Django or FastAPI
β’ Java with Spring Boot
β’ C# with ASP.NET Core
β’ Go with popular Go web frameworks
βοΈ Business Logic
Learn how to translate real-world requirements into backend functionality.
For example:
A shopping application needs inventory management, orders, payments, discounts and customer accounts.
The backend handles the logic behind these processes.
π§ͺ Testing
Learn how to test backend applications and APIs.
Understand:
β’ Unit testing
β’ Integration testing
β’ API testing
β’ Error handling
β’ Test automation
βοΈ Cloud & Deployment
Learn how applications are deployed and maintained.
Understand the basics of:
β’ Cloud platforms
β’ Servers
β’ Containers
β’ Docker
β’ Environment variables
β’ CI/CD
β’ Logging
β’ Monitoring
π Performance
Learn how to build applications that remain responsive as usage increases.
Important concepts include:
β’ Database optimization
β’ Caching
β’ Pagination
β’ Efficient queries
β’ Load balancing
β’ Asynchronous processing
π Security
Security should be part of backend development from the beginning.
Learn about:
β’ Input validation
β’ SQL injection
β’ Authentication
β’ Authorization
β’ Secure passwords
β’ API security
β’ Rate limiting
β’ Data protection
π€ AI-Assisted Development
AI coding tools can help you understand documentation, generate boilerplate, debug code, write tests and explore solutions.
But you should still understand the code you deploy.
π Git & GitHub
Learn version control so you can track changes, collaborate with other developers and maintain professional projects.
π§© System Design
As you become more experienced, learn how to design systems that are scalable, reliable and maintainable.
A practical learning path:
Programming Fundamentals β Git β SQL β Databases β HTTP β APIs β Backend Framework β Authentication β Testing β Docker β Cloud β System Design
And don't just watch tutorials.
Build projects:
β’ REST API
β’ Authentication system
β’ Blog backend
β’ E-commerce API
β’ Expense tracker API
β’ Job portal backend
β’ Real-time chat application
β’ Full-stack application
The goal isn't to memorize frameworks.
The goal is to understand how applications work behind the scenes and build reliable systems that solve real problems.
Double Tap β€οΈ For More
-----
β€3
Ultimate Data Science Google Driveπ
ML + Gen AI + SQL + Python + Interview Prep Dozens of books and files in all fields of data science.
Link:
@CodingCoursePro
Shared with Loveβ
ML + Gen AI + SQL + Python + Interview Prep Dozens of books and files in all fields of data science.
Link:
https://drive.google.com/drive/folders/1iW7IPrVUqsHumgXUMH_rgeBLpJjRDCmJ
@CodingCoursePro
Shared with Love
Please open Telegram to view this post
VIEW IN TELEGRAM
β€1π₯°1
π Web Development Roadmap β Part 24
Adding CSS to HTML
There are 3 main ways to add CSS to an HTML page:
1. Inline CSS
2. Internal CSS
3. External CSS
1. Inline CSS
CSS is written directly inside the HTML element using the style attribute.
Here:
style β attribute
color β property
blue β value
You can add multiple properties:
Inline CSS is useful for quick testing, but it is generally not recommended for larger websites.
2. Internal CSS
CSS is written inside a
Internal CSS is useful when styling a single HTML page.
3. External CSS
CSS is stored in a separate .css file.
Project:
The
Why External CSS Is Usually Preferred
Imagine a website with 20 pages.
Instead of writing the same CSS inside every HTML page:
we can use one CSS file:
This makes the website:
β’ Easier to maintain
β’ More organized
β’ Reusable
β’ Easier to update
β’ Better suited for larger projects
Best Practice
For modern web development, you will usually work with external CSS:
This keeps your HTML focused on structure and your CSS focused on presentation.
Double Tap β€οΈ For More
Adding CSS to HTML
There are 3 main ways to add CSS to an HTML page:
1. Inline CSS
2. Internal CSS
3. External CSS
1. Inline CSS
CSS is written directly inside the HTML element using the style attribute.
<h1 style="color: blue;">Welcome</h1>
Here:
style β attribute
color β property
blue β value
You can add multiple properties:
<p style="color: red; font-size: 20px;">
Hello World
</p>
Inline CSS is useful for quick testing, but it is generally not recommended for larger websites.
2. Internal CSS
CSS is written inside a
<style> element, usually in the <head> section.<!DOCTYPE html>
<html>
<head>
<style>
h1 {
color: blue;
}
p {
font-size: 18px;
}
</style>
</head>
<body>
<h1>Welcome</h1>
<p>I am learning CSS.</p>
</body>
</html>
Internal CSS is useful when styling a single HTML page.
3. External CSS
CSS is stored in a separate .css file.
Project:
my-website/
βββ index.html
βββ style.css
index.html<head>
<link rel="stylesheet" href="style.css">
</head>
style.cssh1 {
color: blue;
}
p {
font-size: 18px;
}The
<link> element connects the HTML file with the CSS file.Why External CSS Is Usually Preferred
Imagine a website with 20 pages.
Instead of writing the same CSS inside every HTML page:
index.html
about.html
contact.html
products.html
...
we can use one CSS file:
style.css
β β β
index about contact
.html .html .html
This makes the website:
β’ Easier to maintain
β’ More organized
β’ Reusable
β’ Easier to update
β’ Better suited for larger projects
Best Practice
For modern web development, you will usually work with external CSS:
<link rel="stylesheet" href="style.css">
This keeps your HTML focused on structure and your CSS focused on presentation.
Double Tap β€οΈ For More
β€2
π Web Development Roadmap β Part 25
CSS Selectors
CSS selectors tell the browser which HTML elements you want to style.
Basic structure:
For example:
This means: select all
elements and make their text blue.
1. Element Selector
Selects all elements of a particular HTML tag.
All
elements become blue.
2. Class Selector
A class is used when you want to apply the same style to multiple elements.
HTML:
CSS:
The
indicates a class selector.
β
class
3. ID Selector
An ID identifies a specific element.
HTML:
CSS:
The
indicates an ID selector.
β
ID
An ID should generally be unique within a page.
4. Universal Selector
The
selects all elements.
This applies the rule to all elements.
5. Grouping Selector
You can style multiple selectors with the same CSS rule.
Instead of:
You can write:
This keeps the CSS cleaner.
6. Descendant Selector
Selects an element that exists inside another element.
HTML:
CSS:
Only the
inside the
is selected.
7. Child Selector
The
selects only direct children.
Only the first
is selected because it is a direct child of
.
8. Attribute Selector
You can select elements based on their attributes.
For example:
Only the email input is selected.
Quick Reference
β Element
β Class
β ID
β All elements
β Grouping
β Descendant
β Direct child
β Attribute
Important Rule
When building websites, you'll use class selectors very frequently because classes are reusable and work well with component-based styling.
One class can style many elements.
@CodingCoursePro
Shared with Loveβ
Double Tap β€οΈ For More
CSS Selectors
CSS selectors tell the browser which HTML elements you want to style.
Basic structure:
selector {
property: value;
}For example:
p {
color: blue;
}This means: select all
<p>
elements and make their text blue.
1. Element Selector
Selects all elements of a particular HTML tag.
<h1>Hello</h1>
<p>Welcome</p>
<p>Learning CSS</p>
p {
color: blue;
}All
<p>
elements become blue.
2. Class Selector
A class is used when you want to apply the same style to multiple elements.
HTML:
<p class="highlight">Important text</p>
<p class="highlight">Another important text</p>
CSS:
.highlight {
color: red;
}The
.
indicates a class selector.
.highlight
β
class
3. ID Selector
An ID identifies a specific element.
HTML:
<h1 id="main-title">My Website</h1>
CSS:
#main-title {
color: green;
}The
#
indicates an ID selector.
#main-title
β
ID
An ID should generally be unique within a page.
4. Universal Selector
The
*
selects all elements.
* {
margin: 0;
}This applies the rule to all elements.
5. Grouping Selector
You can style multiple selectors with the same CSS rule.
Instead of:
h1 {
color: blue;
}
h2 {
color: blue;
}
p {
color: blue;
}You can write:
h1, h2, p {
color: blue;
}This keeps the CSS cleaner.
6. Descendant Selector
Selects an element that exists inside another element.
HTML:
<div>
<p>Hello</p>
</div>
<p>Outside</p>
CSS:
div p {
color: red;
}Only the
<p>
inside the
<div>
is selected.
div
βββ p β selected
p β not selected
7. Child Selector
The
>
selects only direct children.
<div>
<p>Direct child</p>
<section>
<p>Nested paragraph</p>
</section>
</div>
div > p {
color: blue;
}Only the first
<p>
is selected because it is a direct child of
<div>
.
8. Attribute Selector
You can select elements based on their attributes.
For example:
<input type="text">
<input type="email">
input[type="email"] {
border: 2px solid blue;
}Only the email input is selected.
Quick Reference
p
β Element
.highlight
β Class
#main-title
β ID
*
β All elements
h1, p
β Grouping
div p
β Descendant
div > p
β Direct child
input[type="email"]
β Attribute
Important Rule
When building websites, you'll use class selectors very frequently because classes are reusable and work well with component-based styling.
One class can style many elements.
@CodingCoursePro
Shared with Love
Double Tap β€οΈ For More
Please open Telegram to view this post
VIEW IN TELEGRAM
β€1
FREE HARVARD COURSES FOR COMPUTER SCIENCE STUDENTS ππ₯
Link here:
@CodingCoursePro
Shared with Loveβ
Enjoy
Link here:
https://pll.harvard.edu/catalog?topics%5B702%5D=702&price%5B1%5D=1&max_price=&start_date=&keywords=&url=
@CodingCoursePro
Shared with Love
Enjoy
Please open Telegram to view this post
VIEW IN TELEGRAM
β€3
π Web Development Roadmap, Part 26
CSS Colors & Backgrounds
CSS colors and backgrounds help you control the appearance of webpage elements.
You can change text colors, background colors, background images, and more.
1. CSS Color Property
The color property changes the text color of an element.
You can use predefined color names such as:
β’ red
β’ blue
β’ green
β’ black
β’ white
β’ orange
β’ purple
β’ gray
β’ pink
β’ yellow
2. HEX Colors
HEX stands for hexadecimal color notation.
It uses a
Some common HEX colors:
β’ Red: #FF0000
β’ Green: #00FF00
β’ Blue: #0000FF
β’ Black: #000000
β’ White: #FFFFFF
β’ Yellow: #FFFF00
3. RGB Colors
RGB stands for:
β’ R = Red
β’ G = Green
β’ B = Blue
Each value ranges from 0 to 255.
This produces red.
Examples:
4. RGBA Colors
RGBA adds an alpha channel to RGB.
The alpha value controls transparency.
It ranges from
Here:
β’ 1 = Fully opaque
β’ 0.5 = 50% opacity
β’ 0 = Fully transparent
5. HSL Colors
HSL stands for:
β’ H = Hue
β’ S = Saturation
β’ L = Lightness
Example:
Another example:
This produces blue.
6. Background Color
The
You can use color names, HEX, RGB, RGBA, or HSL values.
7. Background Images
You can add images as backgrounds using
This displays an image behind the webpage content.
8. Background Size
The
Common values:
β’
β’
β’
9. Background Repeat
By default, background images may repeat if they are smaller than their container.
Other values:
10. Background Position
Controls where the background image appears.
β’ center
β’ top
β’ bottom
β’ left
β’ right
11. Background Shorthand
You can combine multiple background properties into one declaration.
CSS Colors & Backgrounds
CSS colors and backgrounds help you control the appearance of webpage elements.
You can change text colors, background colors, background images, and more.
1. CSS Color Property
The color property changes the text color of an element.
<h1>Welcome to My Website</h1>
<p>Learning CSS is fun.</p>
h1 {
color: blue;
}
p {
color: red;
}You can use predefined color names such as:
β’ red
β’ blue
β’ green
β’ black
β’ white
β’ orange
β’ purple
β’ gray
β’ pink
β’ yellow
2. HEX Colors
HEX stands for hexadecimal color notation.
It uses a
# followed by six characters.h1 {
color: #FF0000;
}
p {
color: #0000FF;
}Some common HEX colors:
β’ Red: #FF0000
β’ Green: #00FF00
β’ Blue: #0000FF
β’ Black: #000000
β’ White: #FFFFFF
β’ Yellow: #FFFF00
3. RGB Colors
RGB stands for:
β’ R = Red
β’ G = Green
β’ B = Blue
Each value ranges from 0 to 255.
h1 {
color: rgb(255, 0, 0);
}This produces red.
Examples:
.red {
color: rgb(255, 0, 0);
}
.green {
color: rgb(0, 255, 0);
}
.blue {
color: rgb(0, 0, 255);
}4. RGBA Colors
RGBA adds an alpha channel to RGB.
The alpha value controls transparency.
It ranges from
0 to 1..box {
background-color: rgba(255, 0, 0, 0.5);
}Here:
β’ 1 = Fully opaque
β’ 0.5 = 50% opacity
β’ 0 = Fully transparent
5. HSL Colors
HSL stands for:
β’ H = Hue
β’ S = Saturation
β’ L = Lightness
Example:
h1 {
color: hsl(0, 100%, 50%);
}Another example:
p {
color: hsl(240, 100%, 50%);
}This produces blue.
6. Background Color
The
background-color property changes the background of an element.body {
background-color: lightblue;
}
h1 {
background-color: yellow;
}You can use color names, HEX, RGB, RGBA, or HSL values.
7. Background Images
You can add images as backgrounds using
background-image.body {
background-image: url("background.jpg");
}This displays an image behind the webpage content.
8. Background Size
The
background-size property controls how the background image fits inside an element.body {
background-image: url("background.jpg");
background-size: cover;
}Common values:
β’
cover β Covers the entire container.β’
contain β Fits the entire image inside the container.β’
auto β Uses the original image dimensions.9. Background Repeat
By default, background images may repeat if they are smaller than their container.
body {
background-image: url("pattern.png");
background-repeat: no-repeat;
}Other values:
background-repeat: repeat;
background-repeat: repeat-x;
background-repeat: repeat-y;
background-repeat: no-repeat;
10. Background Position
Controls where the background image appears.
body {
background-image: url("background.jpg");
background-position: center;
}β’ center
β’ top
β’ bottom
β’ left
β’ right
11. Background Shorthand
You can combine multiple background properties into one declaration.
body {
background: lightblue url("background.jpg") no-repeat center / cover;
}This sets the background color, image, repeat behavior, position, and size.
Real-World Example: Website Banner
This creates a simple website banner with a dark blue background and white text.
Quick Revision
color β Changes text color
background-color β Changes background color
background-image β Adds background image
background-size β Controls image size
background-repeat β Controls image repetition
background-position β Controls image placement
Double Tap β€οΈ For More
-----
@CodingCoursePro
Shared with Loveβ
Real-World Example: Website Banner
<div class="banner">
<h1>Welcome to Our Website</h1>
<p>Learn web development with us.</p>
</div>
.banner {
background-color: #1E3A8A;
color: white;
padding: 50px;
text-align: center;
border-radius: 12px;
}This creates a simple website banner with a dark blue background and white text.
Quick Revision
color β Changes text color
background-color β Changes background color
background-image β Adds background image
background-size β Controls image size
background-repeat β Controls image repetition
background-position β Controls image placement
Double Tap β€οΈ For More
-----
@CodingCoursePro
Shared with Love
Please open Telegram to view this post
VIEW IN TELEGRAM
β€2
β
7 Mistakes to Avoid in Coding Projects π«π»
1οΈβ£ Skipping Planning & Requirements
β Jumping into code without a clear goal leads to messy, unfocused projects.
2οΈβ£ Overcomplicating the Project
β Keep it simple. A small, finished project is better than an unfinished big one.
3οΈβ£ Not Using Version Control (Git)
β Always track changes with Git. Itβs a must for real-world development.
4οΈβ£ Poor Folder Structure & Naming
β Keep files organized and use meaningful variable/function names.
5οΈβ£ No Documentation or README
β If others (or you later) canβt understand your code, itβs as good as useless.
6οΈβ£ Hardcoding Everything
β Use configs and keep your code reusable and scalable.
7οΈβ£ Not Deploying or Showcasing
β Hosting your project (Netlify, GitHub Pages, Vercel) boosts your portfolio.
@CodingCoursePro
Shared with Loveβ
π¬ Double Tap β€οΈ for more!
1οΈβ£ Skipping Planning & Requirements
β Jumping into code without a clear goal leads to messy, unfocused projects.
2οΈβ£ Overcomplicating the Project
β Keep it simple. A small, finished project is better than an unfinished big one.
3οΈβ£ Not Using Version Control (Git)
β Always track changes with Git. Itβs a must for real-world development.
4οΈβ£ Poor Folder Structure & Naming
β Keep files organized and use meaningful variable/function names.
5οΈβ£ No Documentation or README
β If others (or you later) canβt understand your code, itβs as good as useless.
6οΈβ£ Hardcoding Everything
β Use configs and keep your code reusable and scalable.
7οΈβ£ Not Deploying or Showcasing
β Hosting your project (Netlify, GitHub Pages, Vercel) boosts your portfolio.
@CodingCoursePro
Shared with Love
π¬ Double Tap β€οΈ for more!
Please open Telegram to view this post
VIEW IN TELEGRAM
Stop paying for courses. Explore these free learning platformsπ
Do not forget to React to this post for more content like thisπ
@CodingCoursePro
Shared with Love
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯2π₯°1
π Web Development Roadmap β Part 28
CSS Text & Fonts
CSS text and font properties help you control how text looks on a webpage.
You can change font styles, sizes, thickness, alignment, spacing, and decoration.
1. font-family
The
Common font families:
β’ Arial
β’ Times New Roman
β’ Georgia
β’ Verdana
β’ Courier New
β’ Tahoma
You can also provide fallback fonts:
If the first font isn't available, the browser tries the next one.
2. font-size
Controls the size of the text.
You can use different units such as
3. font-weight
Controls how thick or bold the text appears.
Common values:
The availability of each weight depends on the font.
4. font-style
Controls whether text appears normal, italic, or oblique.
Common values:
β’ normal
β’ italic
β’ oblique
5. text-align
Controls the horizontal alignment of text.
Common values:
6. text-decoration
Adds or removes decorative lines from text.
Common values:
β’ underline β Line below text
β’ overline β Line above text
β’ line-through β Line through text
β’ none β Removes decoration
Example:
This is commonly used to remove the default underline from links.
7. text-transform
Controls the capitalization of text.
For example, hello world becomes:
β’ Uppercase: HELLO WORLD
β’ Lowercase: hello world
β’ Capitalize: Hello World
8. line-height
Controls the vertical space between lines of text.
A suitable line height makes paragraphs easier to read.
9. letter-spacing
Controls the spacing between individual characters.
10. word-spacing
Controls the spacing between words.
11. text-indent
Adds indentation to the first line of a paragraph.
12. Google Fonts
Google Fonts provides a large collection of fonts that you can use in websites.
For example, you can use the Roboto font.
Add this inside the HTML
Then apply it using CSS:
13. Real-World Example
Let's design a simple heading and paragraph.
HTML:
CSS:
This creates a clean heading and readable paragraph.
Double Tap β€οΈ For Part-29
CSS Text & Fonts
CSS text and font properties help you control how text looks on a webpage.
You can change font styles, sizes, thickness, alignment, spacing, and decoration.
1. font-family
The
font-family property defines which font is displayed.h1 {
font-family: Arial, sans-serif;
}
p {
font-family: Georgia, serif;
}
Common font families:
β’ Arial
β’ Times New Roman
β’ Georgia
β’ Verdana
β’ Courier New
β’ Tahoma
You can also provide fallback fonts:
body {
font-family: Arial, Helvetica, sans-serif;
}
If the first font isn't available, the browser tries the next one.
2. font-size
Controls the size of the text.
h1 {
font-size: 32px;
}
p {
font-size: 18px;
}
You can use different units such as
px, em, and rem.3. font-weight
Controls how thick or bold the text appears.
h1 {
font-weight: bold;
}
p {
font-weight: normal;
}
Common values:
+-------+------------+
| Value | Meaning |
+-------+------------+
| 100 | Thin |
| 300 | Light |
| 400 | Normal |
| 500 | Medium |
| 600 | Semi-bold |
| 700 | Bold |
| 900 | Extra bold |
+-------+------------+
The availability of each weight depends on the font.
4. font-style
Controls whether text appears normal, italic, or oblique.
p {
font-style: italic;
}
Common values:
β’ normal
β’ italic
β’ oblique
5. text-align
Controls the horizontal alignment of text.
h1 {
text-align: center;
}
Common values:
text-align: left;
text-align: right;
text-align: center;
text-align: justify;
6. text-decoration
Adds or removes decorative lines from text.
h1 {
text-decoration: underline;
}
Common values:
β’ underline β Line below text
β’ overline β Line above text
β’ line-through β Line through text
β’ none β Removes decoration
Example:
a {
text-decoration: none;
}
This is commonly used to remove the default underline from links.
7. text-transform
Controls the capitalization of text.
.uppercase {
text-transform: uppercase;
}
.lowercase {
text-transform: lowercase;
}
.capitalize {
text-transform: capitalize;
}
For example, hello world becomes:
β’ Uppercase: HELLO WORLD
β’ Lowercase: hello world
β’ Capitalize: Hello World
8. line-height
Controls the vertical space between lines of text.
p {
line-height: 1.6;
}
A suitable line height makes paragraphs easier to read.
9. letter-spacing
Controls the spacing between individual characters.
h1 {
letter-spacing: 2px;
}
10. word-spacing
Controls the spacing between words.
p {
word-spacing: 5px;
}
11. text-indent
Adds indentation to the first line of a paragraph.
p {
text-indent: 30px;
}
12. Google Fonts
Google Fonts provides a large collection of fonts that you can use in websites.
For example, you can use the Roboto font.
Add this inside the HTML
<head>:<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
Then apply it using CSS:
body {
font-family: "Roboto", sans-serif;
}
13. Real-World Example
Let's design a simple heading and paragraph.
HTML:
<div class="content">
<h1>Learn Web Development</h1>
<p>
Start your journey with HTML, CSS and JavaScript.
</p>
</div>
CSS:
.content {
font-family: Arial, sans-serif;
text-align: center;
}
h1 {
font-size: 32px;
font-weight: 700;
color: blue;
letter-spacing: 1px;
}
p {
font-size: 18px;
line-height: 1.6;
color: gray;
}
This creates a clean heading and readable paragraph.
Double Tap β€οΈ For Part-29
β€1