WordPress Themes should be coded using the following standards:
- Use well-structured, error-free PHP and valid HTML. See WordPress Coding Standards.
- Use clean, valid CSS. See CSS Coding Standards.
- Follow design guidelines in Site Design and Layout.
Anatomy of a Theme
WordPress includes a default theme in each new installation. Examine the files in the default theme carefully to get a better idea of how to build your own Theme files.