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.

Top 10 HTML MCQ With Answers part(7)

 Top 10 HTML  MCQ With Answers 

Top 10 HTML  MCQ With Answers part(7)




1] What is the largest heading tag in HTML language

a) <h6>
b) <h4>
c) <h3>
d) <h1>

Answer:  d) <h1>

2] How many heading tags  in HTML language?

a) 4
b) 11
c) 6
d) 7

Answer:  c) 6

3] Which of the following is  smallest heading tag in html language?

a) <h1>
b) <h3>
c) <h6>
d) <h2>

Answer:  c) <h6>


4] Which HTML tag is used to define a main heading in html language?

a) <head>
b) <h1>
c) <title>
d) <p>

Answer: b) <h1>


5]correct sequence of heading tag from largest to smallest in html language  ?

a) <h1><h2><h3><h4><h5><h6>
b) <h6><h5><h4><h6><h2><h1>
c) <h3><h4><h1><h2><h5><h6>
d) <h1><h3><h2><h5><h4><h6>

Answer: a) <h1><h2><h3><h4><h5><h6>


6]  tag is most suitable for the main title of a webpage html ?

a) <h6>
b) <h3>
c) <h1>
d) <title>

Answer: c) <h1>

7]  tag is most suitable for the main title of a webpage html ?

a) <h6>
b) <h3>
c) <h1>
d) <title>

Answer: c) <h1>

8]  Which heading tag should be use for subheadings under html <h1> tag?

 a) <h2>
 b) <h3>
 c) <h4>
 d) <h7>

Answer: a) <h2>

9]  Which attribute is used to align a paragtaph in HTML language?

 a) align
 b) text-align
 c) position
 d) location

 Answer: a) align

10] which heading tags should be use for smallest subheading?

  a) <h1>
  b) <h3>
  c) <h6>
  d) <h5>

Answer c) <h6>


Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example