Learn JSX Expressions and Variables in React with Examples 2026

Image
JSX Expressions and Variables in React 1. Introduction to JSX Expressions and Variables React is a popular JavaScript library used to build modern and interactive user interfaces. While developing React applications, developers frequently work with JSX, which makes writing UI components easier and more readable. JSX stands for JavaScript XML. It allows developers to write HTML-like syntax inside JavaScript code. However, JSX is not limited to displaying static HTML elements. It also allows developers to use JavaScript expressions and variables to display dynamic information. JSX expressions and variables are important concepts for every React beginner. They help developers display usernames, product prices, calculations, messages, and other changing data on a webpage. For example, instead of writing the same text directly inside every component, developers can store information in variables and display it wherever required. In this tutorial, you will learn what JSX expressions and vari...

background color program CSS,


 


CSS  programe


1] background color program

<!doctype html>

<html>

<body>

<h1 style="background-color:rgb(255, 99, 71);">css apply </h1>

<h1 style="background-color:#ff6347;">css apply</h1>

<h1 style="background-color:hsl(9, 100%, 64%);">css apply </h1>


<h1 style="background-color:rgba(255, 99, 71, 0.5);">css apply </h1>

<h1 style="background-color:hsla(9, 100%, 64%, 0.5);">css apply </h1>

<h1 style="background-color:rgba(600,105,80,0.6);">css apply</h1>

</body>

</html> 


Output    



css apply



2] Table  apply css       

  <html>

<head>

<style>

table, th, td {

  border: 1px solid black;

  border-collapse: collapse;

}

th:nth-child(even),td:nth-child(even) {

  background-color: pink;

}

</style>

</head>

<body>

<h2>Striped Table</h2>

<p>For zebra-striped tables, use the nth-child() 

selector and add a background-color to all even (or odd) table rows:</p>

<table style="width:100%">

  <tr>

    <th>First Name</th>

    <th>Middle Name</th>

    <th>Last Name</th>

    <th>Marks</th>

    <th>Grade</th>

    <th>Percentage</th>

    <th>Remark</th>

  </tr>

  <tr>

   td> aishwarya</td>

    <td> sanjay </td>

    <td> jadha</td>

    <td>80 </td>

    <td> A</td>

    <td> 70%</td>

    <td>No </td>

  </tr>

  <tr>

</Head>

</Body>

</html>


Related Post 

line break html

file upload html

abbr tag in html

Output 

Striped Table

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples