Bird
0
0

What is wrong with this shortcode usage? [highlight color='yellow']Text

medium📝 Debug Q7 of 15
Wordpress - Shortcodes and Blocks
What is wrong with this shortcode usage? [highlight color='yellow']Text
ANo closing tag provided
BAttributes must be outside the shortcode
COpening and closing tags do not match
DShortcode cannot have attributes
Step-by-Step Solution
Solution:
  1. Step 1: Examine the shortcode

    The code is [highlight color='yellow']Text. Opening is [highlight color='yellow'], closing is .
  2. Step 2: Spot the mismatch

    Closing tag should be [/highlight], not HTML-style. Opening and closing tags do not match.
  3. Final Answer:

    Opening and closing tags do not match -> Option C
  4. Quick Check:

    Shortcode closing uses [/name] format [OK]
Quick Trick: Ensure closing tag matches opening tag name exactly [OK]
Common Mistakes:
  • Mismatching tag names
  • Placing attributes incorrectly
  • Omitting closing tag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes