Bird
0
0

A WordPress dashboard navigation menu uses anchor tags with href='#section1'. What is the expected behavior when clicking this link?

medium📝 Predict Output Q5 of 15
Wordpress - WordPress Basics and Architecture
A WordPress dashboard navigation menu uses anchor tags with href='#section1'. What is the expected behavior when clicking this link?
AThe page reloads completely
BThe page scrolls to the section with id='section1'
CThe link opens a new browser tab
DThe link triggers a file download
Step-by-Step Solution
Solution:
  1. Step 1: Understand anchor tag with hash href

    Links with href='#id' scroll to the element with that id on the page.
  2. Step 2: Apply to dashboard navigation context

    Clicking the link scrolls to the section with id='section1'.
  3. Final Answer:

    The page scrolls to the section with id='section1' -> Option B
  4. Quick Check:

    Hash link = Scroll to section [OK]
Quick Trick: Hash links scroll within the same page [OK]
Common Mistakes:
  • Expecting page reload
  • Thinking it opens new tab
  • Assuming file download

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes