Bird
0
0

Which of the following is the correct way to start the metadata block in style.css for a WordPress theme?

easy📝 Syntax Q12 of 15
Wordpress - Theme Structure and Basics
Which of the following is the correct way to start the metadata block in style.css for a WordPress theme?
A/* Theme Name: My Theme */
B// Theme Name: My Theme
C<!-- Theme Name: My Theme -->
D# Theme Name: My Theme
Step-by-Step Solution
Solution:
  1. Step 1: Identify CSS comment syntax

    CSS comments use /* ... */ to enclose text, including metadata.
  2. Step 2: Check WordPress metadata format

    WordPress expects metadata in a CSS comment block at the top of style.css.
  3. Final Answer:

    /*\nTheme Name: My Theme\n*/ -> Option A
  4. Quick Check:

    Metadata uses CSS comments /* ... */ [OK]
Quick Trick: Metadata must be inside CSS comment block /* ... */ [OK]
Common Mistakes:
  • Using // or # which are not CSS comments
  • Using HTML comments in CSS
  • Placing metadata outside comment block

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes