Conditional Rendering in React Complete Guide with Examples 2026

Image
  Conditional Rendering in React Conditional Rendering is one of the most useful concepts in React. It means showing different content on the screen depending on a condition. For example: If a user is logged in → show Logout If a user is not logged in → show Login If a student has passed → show Congratulations If a product is available → show Buy Now If data is loading → show Loading... React does not have a separate if rendering tag. Instead, we use normal JavaScript conditions such as if, the ternary operator, &&, and switch to decide what should appear in the UI.

audio tag in html



         html audio tag 


 1] Html <audio> tag used to define sound and music ,audio .

2]  audio tag  support file format  

            MP3

            WAV

            OGG

 3]  <audio> tag  contains one or more <source> tag .

   syntax  :-  audio tag

        <audio>

              :

       </audio>


 html <audio> tag :-

          Program 


<!DOCTYPE html>
  <html lang="en">
  <head>
    <title>html audio tag </title>
  </head>
  <body>
    <audio controls>
        <source src="cat.mp3" type="audio/mpeg">
        your browser does not
support the html audio tag.

    </audio>
  </body>
  </html>




 html <audio> tag :-
                
                     Output
HTML audio tag/output

Related Post 

inline css in html

bdo tag in html

php using leap year program

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example