Bird
0
0

Identify the error in this style.css metadata block:

medium📝 Debug Q6 of 15
Wordpress - Theme Structure and Basics
Identify the error in this style.css metadata block:
/*
Theme Name: My Theme
Version 1.0
Author: John Smith
*/
ATheme Name should be lowercase
BAuthor field is invalid
CMissing colon after 'Version'
DComments should use // instead of /* */
Step-by-Step Solution
Solution:
  1. Step 1: Check syntax of metadata fields

    Each metadata line must have a colon separating the field name and value, e.g., Version: 1.0.
  2. Step 2: Identify missing colon

    The line Version 1.0 lacks the colon, causing WordPress to ignore or misread it.
  3. Final Answer:

    Missing colon after 'Version' -> Option C
  4. Quick Check:

    Metadata fields require colon separator [OK]
Quick Trick: Always use colon after metadata field names [OK]
Common Mistakes:
MISTAKES
  • Omitting colon after field name
  • Using lowercase field names incorrectly
  • Using wrong comment style

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes