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.

Article tag in html


         HTML Article Tag

 

  1]  html <article> tag independent self contained content.

  2] <article> tag content makes sense on its own.

  3]  article tag use

  1.  Blog post
  2. Comment
  3. News story
  4. Forum post  

   

Html Article Tag :-

                         Output 

html article tag/output






   Html Article Tag :-

                         Program                     


<!DOCTYPE html>
<html>
<head>
   
    <title>html article tag</title>

</head>
<body>
    <h3>HTML article tag</h3>
    <p>article tag defines independent self
contained <br>
      use to Blog post, comment etc .</p>
   <article>
    <h2> chhatrapati shivaji Maharaj</h2>
    <p>
        chhatrapati shivaji Maharaj Was the
founder of the Maratha<br>
         kingdom of India. studying Ramayana
and also Mahabharata etc .<br> his
         father shahji Bhosale.and his mother
jijabai was a great he was
         the founder<br> of the great Maratha
Kingdom of India.
    </p>
   </article>
       
</body>
</html>


Related Post

what is document.getElementById in javascript

how to create a footer page design

php program to print alphabet pattern Y

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example