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.

strike tag in html with example

 HTML <strike> tag

strike tag in html with example


What is the strike tag in html

HTML <strike> tag is use to draw a horizontal line through text.

<strike> tag show the text  no longer valid relevant or accurate.

 visual effect called a strikethrough.

 <strike> tag specifies strikethrough text.

<strike> tag used show deleted,incorrect or outdated content.

Syntax :- 

<strike> $700 </strike>

strike tag in html with example

Example :-

<!DOCTYPE html>
<html>
    <head>
        <title>HTML textarea tag</title>
    </head>
    <body>
        <h1>  HTML strike tag</h1>
       
        <h2> Car price  <strike>Rs100</strike> now only  Rs 99 </h2>
    </body>
</html>

strike tag in html with example

Output




Related Post :-

html button tag

How to create a reset button form using html

C Program to print Alphabet P Pattern

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example