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

CSS text-transform: Uppercase, Lowercase, Capitalize Full Guide

 CSS text-transform Property Tutorial

CSS text-transform Property Tutorial



This Blog You Will Learn

 ஃ CSS text-transform Property 

 ஃ Syntax 

 ஃCSS text-transform Property 

ஃ structure diagram examples

 ஃ Examples

ஃ  Output

CSS text-transform Property 

CSS text-transform property  is used to control capitalization of text. change text appears visually in browser without changing  the original HTML Content.

 HTML text actual in stays same, but CSS change how is displayed.

 CSS text-decoration-thickness: Complete Guide with Examples

Syntax 


selector {
  text-transform: value;
}

ஃ structure diagram examples


CSS text-transform Property Tutorial


CSS text-transform Property 

1) uppercase

2) lowercase

3)capitalize

CSS text-transform Property Tutorial
Example


<!DOCTYPE html>
<html>
<head>
<style>
  .upper{
    text-transform:uppercase ;
  }
.lower{
  text-transform:lowercase ;
}

.cap {
  text-transform: capitalize;
}
</style>
</head>
<body>

<h2 class="upper">css text transformation</h2>
<p class="lower">CSS TEXT TRANSFORMATION PROPERTY</p>
<p clas
s="cap">CSS Text Transformation Property</p>

</body>
</html>

CSS text-transform Property Tutorial

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>
  .upper{
    text-transform:uppercase ;
  }
.lower{
  text-transform:lowercase ;
}

.cap {
  text-transform: capitalize;
}
</style>

CSS text-transform Property 

1) .upper 

  • This is class  selector.
  • it applies to any element with class="upper".
  • text-transform: uppercase;
  • Converts all letters is capital letter.
CSS code

.upper {
  text-transform: uppercase;
}

Example 

<h2 class="upper">css text transformation</h2>

Output 

CSS TEXT TRANSFORMATION

2) .lower

  • applies to element with class="lower"
  • converts all letters into small letters.
  • Converts all letters to small letter.
css code

.lower{
  text-transform:lowercase ;
}

Example 

<p class="lower">CSS TEXT TRANSFORMATION </p>

Output

css text transformation

3) .cap

  • Applies to element with class="cap".
  • converts the first letter of each word into capital.
CSS code

.cap {
  text-transform: capitalize;
}

Example 

<p class="cap">CSS Text Transformation </p>

Output

Css Text Transformation

Step 5]

   Closing tag


<</style>
</head>

Step 6]

<body> section


<h2 class="upper">css text transformation</h2>
<p class="lower">CSS TEXT TRANSFORMATION PROPERTY</p>
<p class="cap">CSS Text Transformation Property</p>

1) Original text css text transformation

Because of upper  it display 

2) original text CSS TEXT TRANSFORMATION PROPERTY

  Because of lower it case

3) original text CSS Text Transformation Property

  Because of  capitalize it display 

Step 7]

closing the Tag

  </body>   </html>

CSS text-transform Property Tutorial
Output

CSS text-transform Property Tutorial


Related Post :-

What is css Test Spacing in html

css Attribute Selector Explained

Css Class Selector

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples