Create Your First Functional Component in React JS – Beginner's Guide

Image
Create Your First Functional Component in React JS  1. Introduction When you start learning React JS, one of the first things you will come across is the concept of components. At first, components may seem like just another programming concept, but they are actually the foundation of almost every React application. Think about a website you use every day. It may have a header, navigation menu, login form, product section, and footer. Instead of writing all these elements together in one large file, React allows us to create separate parts and manage them independently. These separate parts are called components. In this tutorial, we are going to create our first functional component in React. We will start with a very simple example and gradually understand how components are created, exported, imported, and displayed on a webpage.  2. What Is a Functional Component in React?   A functional component is simply a JavaScript function that returns a user interface using JSX...

What is CSS Text Shadow Syntax, Examples

CSS Text Shadow Property

CSS Text Shadow Property
 

This Blog You Will Learn

   ஃ What is CSS Text Shadow Property

   ஃ Why We Use Text Shadow

   ஃ Real World Use

   ஃ Why Use Text-shadow

   ஃ  Syntax

  ஃ structure diagram examples

  ஃ Examples

  ஃ  Output

What is CSS Text Shadow Property

CSS text-shadow is property used to add a shadow effect to text.

text look stylish ,attractive and sometimes easier to read.

Syntax of Text Shadow 


text-shadow: horizontal-shadow vertical-shadow blur-radius color;

✅ Horizontal  Shadow (Required)

  • Positive value  ➡  right
  • Negative value ➡  left

✅ Vertical Shadow (Required)

  • Positive value   ➡  down
  • Negative value  ➡  up

✅ Blur Radius (Optional)

  • Controls Softness of shadow
  • 0 ➡  sharp shadow

✅ Color (optional  but Recommended)

  • Defines shadow color

Why We Use Text Shadow

 ✔  Enhance website Ul
 ✔  Design attractive headings
 ✔  Create 3D or glowing effects.
 ✔  Improve text visibility

Real World Use

  • Website headings
  • Logo design
  • Hero section titles
  • Buttons
  • Banner text

Why Use Text-shadow

  1. Improve text visibility
  2. Create 3D effect
  3. Create glow effect
  4. Make headings stylish

ஃ structure diagram examples

CSS Text Shadow Property

CSS Text Shadow Property

Examples

<!DOCTYPE html>
<html>
<head>
<style>
h1 {
  text-shadow: 2px 2px  blue;
}
 h2{
   text-shadow:2px 2px 2px pink;
 }
</style>
</head>
<body>

<h1>CSS Text Shadow Property</h1>
<h2>https://webdesigningtheory.blogspot.com/ </h2>

</body>
</html>

CSS Text Shadow Property

Explain Program


Step  1] 

<!DOCTYPE html>

  • This declare the document type.
  • browser that the document is written in html

Step 2]  

<html>.... . </html>

  • html is the root element of the html page.
  •  Every thing inside it is part of the webpage.

Step 3]

<head>

  • <head> section  contains metadata and css styles,not visible content.

  • Contains styles, metadata and page setting 

Step 4] 

<style> tag Internal CSS Section

<style>
h1 {
  text-shadow: 2px 2px  blue;
}
 h2{
   text-shadow:2px 2px 2px pink;
 }

 Applies a text shadow all <h1> and <h2> element.

 ✔  2px   ➡   Horizontal shadow (moves right).

✔  2px   ➡   Vertical shadow (moves down).

✔  2px   ➡   Blue effect.

✔ Pink  ➡   Shadow color.


 CSS position property Web designing
 

Step 5]

   Closing tag


<</style>
</head>

Step 6]

<body> section


<h1>CSS Text Shadow Property</h1>
<h2>https://webdesigningtheory.blogspot.com/ </h2>

  • <h1> displays  main heading with blue shadow.
  • <h2> display website link text with soft pink shadow.

Step 7]

closing the Tag

  </body>   </html>

CSS Text Shadow Property
Output

CSS Text Shadow Property


Related Post :-

What is css Margin

CSS Conic Gradient Syntax

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples