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