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

Image
  1. Introduction to Functional Components in React React JS is one of the most popular JavaScript libraries used to build modern and interactive user interfaces. It allows developers to create websites and web applications using small, reusable pieces of code called components. When learning React, one of the first important concepts is understanding functional components. Functional components provide a simple way to create different parts of a website, such as headers, navigation bars, buttons, login forms, and product cards. If you are new to React, creating your first functional component is an excellent starting point. You do not need advanced programming knowledge to understand this concept. Basic knowledge of HTML, CSS, and JavaScript is enough to get started. 2. What Is a Functional Component in React? A functional component in React is a JavaScript function that returns JSX to display elements on a webpage. It is used to create reusable sections of a user interface. In s...

CSS Border bottom property Web designing blog

 


    Border bottom property


Border bottom property

1. Border-bottom-style

The Border bottom style property set a style of element bottom Border.

Syntax

 Rear: border-bottom-style: none hidden | dotted | dashed | solid | double groove ridge | inset | outset | initial | inherit;


Border-bottom-style Example 

<!DOCTYPE html>

 <html>

 <head>

 <style>

h1{border-bottom-style: groove; 

border-bottom-color: coral; 

 border-bottom-width: 7px;

}

div { border-style: solid; 

border-bottom-style: groove;

 border-bottom-color: coral; 

border-bottom-width: 7px; }

 </style>

</head>

 <body>

<h1>A heading with a groove bottom border</h1> 

 <div> div element with  groove bottom border.</div>

 </body>

 </html>

Border-bottom-style output 

Border-bottom-style

2. Border-bottom-color

The border-bottom-color property set the color of an element bottom border. Always declare to the border-style or the border-bottom-style property before the border- bottom-color property. An element must have a border before you can change the color.


Border-bottom-color Example 


<! Doctype html>

<html> 

 <head>

<style>

h1 {border-bottom-style: solid;

 border-bottom-color: pink;

} 

h2 {

border-bottom-style: solid;

 border-bottom-color: rgb(20, 176,76);} 

h3 { border-bottom-style: solid;

 border-bottom-color: hsla(89, 45%, 10%,0.5);}

h4 {

border-style: solid;

 border-bottom-color: #92a8d1;} 

</style>

 </head> 

<body>

<h1>A head with a colored bottom border</h1>

<h2>A head with a colored bottom border</h2>

<h3>A head with a colored bottom border</h3>

 <h4>A head with a colored bottom border</h4> 

 </body>

</html>

Border-bottom-color output 


Border-bottom-color



3. border-top-right-radius Property: 


The border-top-right-radius property define the radius of  top-right corner. This property allow  add rounded borders to elements.


Syntax:

 border-top-right-radius: length | % [length | %] | Initial | inherit;

If you set two values  first one is for the top border, and the second one for the right border. If  second value is omitted it is copied from the first. If either length is zero corner is square, not rounded.


border-top-right-radius Example 


<IDOCTYPE html>
 <html>
<head>
<style>

 #border1{
border: 2px solid yellow;
 padding: 10px;
  border-top-right-radius: 25px;
}

#border2{
border: 2px solid red;
 padding: 10px;
 border-top-right-radius: 50px 20px;}

 #border3
 {

border: 2px solid red;
 padding: 10px; 
border-top-left-radius: 25px;
 border-top-right-radius: 25px; 
 border-bottom-left-radius: 25px; 
border-bottom-right-radius: 25px;}
 </style> </style></head> <body>

 <h2>border-top-right-radius: 25px: </h2> 
<div id="border1"> 
<p>The border-top-right-radius property defines  radius of  top-right corner. </p></div>

<h2>border-top-right-radius: 50px 20px:</h2> <div id="border2"> 
<p>If two values  set; the first one is for the top border, the second one for the right border,</p></div><br> 
 <div id="border3">third division </div>

 </body> </html>


border-top-right-radius Output



Border top right radius property


related post :-


html table border

html background color

create menu card

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples