Programming Courses | Courses | archita phukan | Love Babbar | Coding Ninja | Durgasoft | ChatGPT prompt AI Prompt
3.93K subscribers
820 photos
18 videos
1 file
190 links
Programming
Coding
AI Websites

📡Network of #TheStarkArmy©

📌Shop : https://t.me/TheStarkArmyShop/25

☎️ Paid Ads : @ReachtoStarkBot

Ads policy : https://bit.ly/2BxoT2O
Download Telegram
🌐 Web Development Roadmap — Part 25

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
🌐 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.

<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

<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!
Please open Telegram to view this post
VIEW IN TELEGRAM
🧑‍🎓7 Websites to Learn Anything for FREE! 🚀

Stop paying for courses. Explore these free learning platforms 👇


1️⃣ https://www.learnvern.com/
2️⃣ https://alison.com/
3️⃣ https://www.mygreatlearning.com
4️⃣ https://digitaldefynd.com/
5️⃣ https://www.theodinproject.com/
6️⃣ https://www.openculture.com/
7️⃣ https://www.classcentral.com/

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 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
Python vs. Java

Ever wondered what happens behind the scenes when you run a Python script or a Java program? Let’s find out:

Python (CPython Runtime):

- Python source code (.py) is compiled into bytecode automatically in memory.
- Bytecode can also be cached in .pyc files, making re-runs faster by using the cached version.
- The Import System loads modules and dependencies.
- The Python Virtual Machine (PVM) interprets the bytecode line by line, making Python flexible but relatively slower.

Java (JVM Runtime):

- Java source code (.java) is compiled into .class bytecode using javac.
- The Class Loader loads bytecode into the Java Runtime Environment (JVM).
- Bytecode is verified and executed.
- JVM uses both an Interpreter and a JIT Compiler, frequently used code (hot paths) is converted into native machine code, making Java faster.

@CodingCoursePro
Shared with Love
➕
Please open Telegram to view this post
VIEW IN TELEGRAM
DATA SCIENCE, PYTHON, DATA ANALYSIS, MACHINE LEARNING, STATISTICS, and more,

https://mega.nz/folder/TgsyjIqB#i_l58GoxRPBY_Scwj0xHgQ

@CodingCoursePro
Shared with Love
➕
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
✅ 20 Medium-Level Web Development Interview Questions (with Detailed Answers)

1. What is the difference between HTML, CSS, and JavaScript
• HTML: Structures content
• CSS: Styles content
• JavaScript: Adds interactivity and dynamic behavior

2. What is responsive web design
Designing websites that adapt to different screen sizes and devices using flexible grids, media queries, and fluid layouts.

3. What are semantic HTML elements
Elements that clearly describe their meaning (e.g., <article>, <section>, <nav>, <header>). Improves accessibility and SEO.

4. What is the DOM
Document Object Model — a tree-like structure representing HTML elements. JavaScript can manipulate it to update content dynamically.

5. What is the difference between GET and POST methods
• GET: Sends data via URL, used for fetching
• POST: Sends data in body, used for submitting forms securely

6. What is the box model in CSS
Every HTML element is a box:
Content → Padding → Border → Margin

7. What is the difference between relative, absolute, and fixed positioning in CSS
• Relative: Moves element relative to its normal position
• Absolute: Positions element relative to nearest positioned ancestor
• Fixed: Stays in place even when scrolling

8. What is the difference between == and === in JavaScript
• ==: Compares values with type coercion
• ===: Strict comparison (value and type)

9. What is event bubbling in JavaScript
Events propagate from child to parent elements. Can be controlled using stopPropagation().

10. What is the difference between localStorage and sessionStorage
• localStorage: Persistent across sessions
• sessionStorage: Cleared when tab is closed

11. What is a RESTful API
An architectural style for designing networked applications using HTTP methods (GET, POST, PUT, DELETE) and stateless communication.

12. What is the difference between frontend and backend development
• Frontend: Client-side (UI/UX, HTML/CSS/JS)
• Backend: Server-side (databases, APIs, authentication)

13. What are common HTTP status codes
• 200 OK
• 404 Not Found
• 500 Internal Server Error
• 403 Forbidden
• 301 Moved Permanently

14. What is a promise in JavaScript
An object representing the eventual completion or failure of an async operation.
States: pending, fulfilled, rejected

15. What is the difference between synchronous and asynchronous code
• Synchronous: Executes line by line
• Asynchronous: Executes independently, doesn’t block the main thread

16. What is a CSS preprocessor
Tools like SASS or LESS that add features to CSS (variables, nesting, mixins) and compile into standard CSS.

17. What is the role of frameworks like React, Angular, or Vue
They simplify building complex UIs with reusable components, state management, and routing.

18. What is the difference between SQL and NoSQL databases
• SQL: Structured, relational (e.g., MySQL)
• NoSQL: Flexible schema, document-based (e.g., MongoDB)

19. What is version control and why is Git important
Version control tracks changes in code. Git allows collaboration, branching, and rollback. Platforms: GitHub, GitLab, Bitbucket

20. How do you optimize website performance
• Minify CSS/JS
• Use lazy loading
• Compress images
• Use CDN
• Reduce HTTP requests

👍 React for more Interview Resources
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
FREE AI COURSES🔥

1️⃣ Prompt Engineering Basics:
https://explore.skillbuilder.aws/learn/course/external/view/elearning/17763/foundations-of-prompt-engineering

2️⃣ ChatGPT Prompts Mastery: https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/

3️⃣ Intro to Generative AI: https://www.cloudskillsboost.google/course_templates/536

4️⃣ AI Introduction by Harvard: https://pll.harvard.edu/course/cs50s-introduction-artificial-intelligence-python/2023-05

5️⃣ Microsoft GenAI Basics: https://www.linkedin.com/learning/what-is-generative-ai/generative-ai-is-a-tool-in-service-of-humanity

6️⃣ Prompt Engineering Pro: https://learnprompting.org

7️⃣ Google’s Ethical AI: https://www.cloudskillsboost.google/course_templates/554

8️⃣ Harvard Machine Learning: https://pll.harvard.edu/course/data-science-machine-learning

9️⃣ LangChain App Developer: https://www.deeplearning.ai/short-courses/langchain-for-llm-application-development/

1️⃣0️⃣ Bing Chat Applications: https://www.linkedin.com/learning/streamlining-your-work-with-microsoft-copilot

1️⃣1️⃣ Generative AI by Microsoft: https://learn.microsoft.com/en-us/training/paths/introduction-generative-ai/

1️⃣2️⃣ Amazon’s AI Strategy: https://explore.skillbuilder.aws/learn/public/learning_plan/view/1909/generative-ai-learning-plan-for-decision-makers

1️⃣3️⃣ GenAI for Everyone: https://www.deeplearning.ai/courses/generative-ai-for-everyone/

1️⃣4️⃣ AWS GenAI Foundation: https://www.coursera.org/learn/generative-ai-with-llms

@CodingCoursePro
Shared with Love
➕
Please open Telegram to view this post
VIEW IN TELEGRAM